Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 06, 2016, 02:19:47 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: AHK Help anyone?  (Read 11295 times)

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Donate to Member
AHK Help anyone?
« on: July 23, 2007, 09:57:57 PM »
EDIT 2: Once again, just reviving this with a new question. Not sure if anyone can fix this one, though (not fix, more like figure out how to do it...its confusing to explain much less code). If you can help, just scroll to the bottom - all things in the middle are past problems. Thanks all!

EDIT: I am reviving an old thread, so ignore the bottom part of this. Just scroll down until you see my post with the bold & underlined text, that is the new problem I am having. :)


Ok, assuming you have read the title, here is the skinny:

I am trying to make a program to replace an old, no longer supported program known as Giggles (the site is down, it appears, so I cannot link). It takes user input and holds it, until a Function key is pressed, where it then takes the input and types it out.

I can get the program I have made to STORE the data (as the AHK script window hides, as it should, as I don't have NoHide set), but I can't get it to SEND the text. Can anyone tell me what I am doing wrong??? I have been working on it for a while now and if I don't get it soon I am going to go crazy...

Here is the code- I don't know html or ... what's it called... well I can't make the button to hide/show the code on the post, so here it is (this is what I am up to now, I can't really advance until I get this problem sorted out):

;Replacement for Giggles Beta 9
;CompuTech Computer Maintenance and Coding Co
;Coded by Brandon Seal

Gui, Add, Tab,, Info|About|Setup F2|Setup F3|Setup F4|Setup F5|Setup F6|Setup F7|Setup F8|Setup F9|Setup F10|Setup F11|Setup F12
Gui, Font, Norm
Gui, Add, Text, , Welcome to WreckedGiggles, the Giggles Test Replacement.`nThis is still in development, and there are bugs to be expected.`nIf you have used Giggles before, you should understand the system here, so go ahead and get started!`nOtherwise, click the button below.
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Add, Button, gInstructions, Instructions
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Tab, 2
Gui, Add, Text, , WreckedGiggles is a replacement for the popular Giggles program developed for There.`nIt is coded by Brandon Seal, owner of CompuTech Computer Maintenance and Coding Co.`nThis program is known as DonationWare; it is free, but donations are requested if you like the program.
Gui, Tab, 3
Gui, Add, Edit, r5 vf2
Gui, Add, Button, gf2save, Apply
Gui, Tab, 4
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 5
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 6
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 7
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 8
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 9
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 10
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 11
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 12
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 13
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Show
return


;Command list

Instructions:
MsgBox, WreckedGiggles is simple to setup & use- you can be done in minutes!`nStep 1: Click each of the Function Key tabs and set your desired text and click Apply.`nStep 2: Close the main window of the WreckedGiggles program.`nStep 3: When in-world, press the desired Function key (F2 through F11) and your text and emotes will display!

f2save:
Gui, Submit
Return

{F2}:
GuiControlGet, v12

(End of script)

Any help is useful, even ideas...
-Wreckedcarzz
(script is attached)
« Last Edit: September 20, 2007, 04:01:05 PM by wreckedcarzz »

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #1 on: July 24, 2007, 12:43:46 AM »
Here is an download for your original Giggles:
Giggles Beta 9 - OracleOfDelphi's excellent software designed specifically for There.
http://www.thumdar.com/downloads.html
Giggles.pngAHK Help anyone?

##################################################################


Any help is useful, even ideas...

Quote from: You
f2save:
Gui, Submit
Return

I mean RETURN means "return at this point".
So you never will reach
Quote from: You
{F2}:
GuiControlGet, v12


Try instead

Quote
f2save:
Gui, Submit
{F2}:
GuiControlGet, v12
Return

Note, i am no coder and didn't have test your code, just an suggestion.
« Last Edit: July 24, 2007, 04:24:55 PM by AbteriX »

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #2 on: July 24, 2007, 01:15:42 AM »
It is a good theory, but those are 2 different commands. :(
The 1st stores the text that you put in, and the F2 is the one that *should* output it.
Good idea, though.

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #3 on: July 24, 2007, 05:19:00 AM »

...and the F2 is the one that *should* output it.
I don't get it.... where's the output?
"GuiControlGet" is to GET an info .... not to output ??!?!? isn't it?

What output do you aspect?
And where should the output appear?

You should use better var names then
Gui, Add, Edit, r5 vf2
or/and make heavy use of comments like
Gui, Add, Edit, r5 vf2  ; here is an comment, r5 = 5 rows, vf2 = var f2
Later if your script works or you have no more question to others
you can remove the comments (but you should keep an version with comments!  :Thmbsup:)


---

I think it should be smtg like (is v12 a variable?)

F2::
{
GuiControlGet, v12 ; get the info (but from where???) and store it into the var v12
MsgBox v12 is: %v12% ; output the stored info
}
Return


See the help
Quote
GuiControlGet
----------------------------------------------------------------------------
Retrieves various types of information about a control in a GUI window.
GuiControlGet, OutputVar [, Sub-command, ControlID, Param4]


OK, i download the script and will see what i can get.
Maybe you will get quicker success if you ask in the http://www.autohotkey.com/forum/:D
« Last Edit: July 24, 2007, 12:58:37 PM by AbteriX »

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #4 on: July 24, 2007, 05:33:47 AM »
And you have no code to store and get the settings?
See the help for inwrite and iniread

IniWrite, %f2%, %A_ScriptName%.ini, Settings, f2
IniRead, f2,   %A_ScriptName%.ini, Settings, f2
« Last Edit: July 24, 2007, 12:55:04 PM by AbteriX »

ak_

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 223
    • View Profile
    • wopah
    • Read more about this member.
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #5 on: July 24, 2007, 05:35:46 AM »
Yeah, Abterix is right, there's no code to send the variable in your script, so it's pretty normal it doesn't work :)

Abterix's code should work to test the script, then if it displays the variable correctly, replace the MsgBox line with :
Send %v12%

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #6 on: July 24, 2007, 06:04:02 AM »
Add this to the end of your script:

F2::
  sendraw,%v12%
  return

That should send the text that is on variable V12. Also, i've used "sendraw" because "send" doesn't send the text, sends keystrokes. This means that something like: !r would actually be sent as alt+R.

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #7 on: July 24, 2007, 09:09:46 AM »
OK, i looked on the script.
1) why v12 ?
The one and only var is vf2 ?
And you have to refer to this var for an GUI without the 'v' as %f2%

2)
f2save:
Gui, Submit
Return

is  not complied because you do nowhere store your text and the infos are gone if you close the script

 
3)
{F2}:
GuiControlGet, v12

is wrong because
a] an HotKey is followed by two columns :: ( instead of only one : )
b] the hotkey need no currly brackets {}  (...as you still would need for "send {F2}" )
c] "GuiControlGet," has to be moved to "f2save:" section
d] there is no var "v12"
e] you don't have to use the 'v' before the '12' (but there is no 12 ... only an var 'f2')
f] the 'Return' is missed

Try this instead:
f2save:
Gui, Submit
; GuiControlGet, f2
Loop 11
{
GuiControlGet, f%A_Index%  ; i hope this is correct?
}
Return

F2::
MsgBox %f2%  ; test only .... while pressing the hotkey 'F2' send the contend of the var f2
sendraw %f2% ; output to current editor
return



.
HTH ? (i am no coder)
« Last Edit: July 24, 2007, 01:02:13 PM by AbteriX »

jgpaiva

  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #8 on: July 24, 2007, 09:40:23 AM »
You're right, absterix.. I hadn't noticed there were no variables to store the information.
All there needs to be done is to add something like vNAMEOFVARIABLE to the gui,add,edit lines.
Something like this:
Gui, Add, Edit, r5 vfirstvariable
And the text will be stored in a variable named "firstvariable". Also, use a different variable for each editbox, or you will end up with only the text of one of them.

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #9 on: July 24, 2007, 09:49:14 AM »
I had a quick look on the script and think you pretty much had it... just some minor errors.

I guess the most serious problem was the missing ",nohide" after "Gui,submit". The GUI just disappeared and that's it... Not cool. The second main error, Abterix pointed out, was the wrong hotkey {f2}:

Anyway, here's a working version of your script. It's a different approach than from AbteriX. Just take the best and use what you want.

Hint: To make your script more useful, store the entries in the registry or an ini file (in the ApplyButton: segment) and load it while starting your script. AHK help file is of great help, but feel free to ask if you've problems.

#SingleInstance force

;Replacement for Giggles Beta 9
;CompuTech Computer Maintenance and Coding Co
;Coded by Brandon Seal

Gui, Add, Tab,, Info|About|Setup F2|Setup F3|Setup F4|Setup F5|Setup F6|Setup F7|Setup F8|Setup F9|Setup F10|Setup F11|Setup F12
Gui, Font, Norm
Gui, Add, Text, , Welcome to WreckedGiggles, the Giggles Test Replacement.`nThis is still in development, and there are bugs to be expected.`nIf you have used Giggles before, you should understand the system here, so go ahead and get started!`nOtherwise, click the button below.
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Add, Button, gInstructions, Instructions
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Tab, 2
Gui, Add, Text, , WreckedGiggles is a replacement for the popular Giggles program developed for There.`nIt is coded by Brandon Seal, owner of CompuTech Computer Maintenance and Coding Co.`nThis program is known as DonationWare; it is free, but donations are requested if you like the program.
Gui, Tab, 3
Gui, Add, Edit,r5 vf2
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 4
Gui, Add, Edit, r5 vf3
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 5
Gui, Add, Edit, r5 vf4
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 6
Gui, Add, Edit, r5 vf5
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 7
Gui, Add, Edit, r5 vf6
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 8
Gui, Add, Edit, r5 vf7
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 9
Gui, Add, Edit, r5 vf8
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 10
Gui, Add, Edit, r5 vf9
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 11
Gui, Add, Edit, r5 vf10
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 12
Gui, Add, Edit, r5 vf11
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 13
Gui, Add, Edit, r5 vf12
Gui, Add, Button, gApplyButton, Apply
Gui, Show
return


;Command list

Instructions:
MsgBox, WreckedGiggles is simple to setup & use- you can be done in minutes!`nStep 1: Click each of the Function Key tabs and set your desired text and click Apply.`nStep 2: Close the main window of the WreckedGiggles program.`nStep 3: When in-world, press the desired Function key (F2 through F11) and your text and emotes will display!
return

ApplyButton:
Gui, Submit,nohide
Return

F2::
SendInput,%f2%
return

F3::
SendInput,%f3%
return

F4::
SendInput,%f4%
return

F5::
SendInput,%f5%
return

F6::
SendInput,%f6%
return

F7::
SendInput,%f7%
return

F8::
SendInput,%f8%
return

F9::
SendInput,%f9%
return

F10::
SendInput,%f10%
return

F11::
SendInput,%f11%
return

F12::
SendInput,%f12%
return


wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #10 on: July 24, 2007, 10:15:35 AM »
Well, I'm bored...  :) Here's a version which stores and loads the settings in "giggles.ini".

Spoiler
#SingleInstance force

;Replacement for Giggles Beta 9
;CompuTech Computer Maintenance and Coding Co
;Coded by Brandon Seal


Loop,12
   IniRead,F%A_Index%,giggles.ini,Settings,F%A_Index%,%A_Space%


Gui, Add, Tab,, Info|About|Setup F2|Setup F3|Setup F4|Setup F5|Setup F6|Setup F7|Setup F8|Setup F9|Setup F10|Setup F11|Setup F12
Gui, Font, Norm
Gui, Add, Text, , Welcome to WreckedGiggles, the Giggles Test Replacement.`nThis is still in development, and there are bugs to be expected.`nIf you have used Giggles before, you should understand the system here, so go ahead and get started!`nOtherwise, click the button below.
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Add, Button, gInstructions, Instructions
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Tab, 2
Gui, Add, Text, , WreckedGiggles is a replacement for the popular Giggles program developed for There.`nIt is coded by Brandon Seal, owner of CompuTech Computer Maintenance and Coding Co.`nThis program is known as DonationWare; it is free, but donations are requested if you like the program.
Gui, Tab, 3
Gui, Add, Edit, r5 w250 vf2,%f2%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 4
Gui, Add, Edit, r5 w250 vf3,%f3%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 5
Gui, Add, Edit, r5 w250 vf4,%f4%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 6
Gui, Add, Edit, r5 w250 vf5,%f5%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 7
Gui, Add, Edit, r5 w250 vf6,%f6%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 8
Gui, Add, Edit, r5 w250 vf7,%f7%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 9
Gui, Add, Edit, r5 w250 vf8,%f8%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 10
Gui, Add, Edit, r5 w250 vf9,%f9%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 11
Gui, Add, Edit, r5 w250 vf10,%f10%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 12
Gui, Add, Edit, r5 w250 vf11,%f11%
Gui, Add, Button, gApplyButton, Apply
Gui, Tab, 13
Gui, Add, Edit, r5 w250 vf12,%f12%
Gui, Add, Button, gApplyButton, Apply
Gui, Show
return


;Command list

Instructions:
MsgBox, WreckedGiggles is simple to setup & use- you can be done in minutes!`nStep 1: Click each of the Function Key tabs and set your desired text and click Apply.`nStep 2: Close the main window of the WreckedGiggles program.`nStep 3: When in-world, press the desired Function key (F2 through F11) and your text and emotes will display!
return

ApplyButton:
Gui, Submit,nohide
IniWrite,%F2%,giggles.ini,Settings,F2
IniWrite,%F3%,giggles.ini,Settings,F3
IniWrite,%F4%,giggles.ini,Settings,F4
IniWrite,%F5%,giggles.ini,Settings,F5
IniWrite,%F6%,giggles.ini,Settings,F6
IniWrite,%F7%,giggles.ini,Settings,F7
IniWrite,%F8%,giggles.ini,Settings,F8
IniWrite,%F9%,giggles.ini,Settings,F9
IniWrite,%F10%,giggles.ini,Settings,F10
IniWrite,%F11%,giggles.ini,Settings,F11
IniWrite,%F12%,giggles.ini,Settings,F12
Return

F2::
SendInput,%f2%
return

F3::
SendInput,%f3%
return

F4::
SendInput,%f4%
return

F5::
SendInput,%f5%
return

F6::
SendInput,%f6%
return

F7::
SendInput,%f7%
return

F8::
SendInput,%f8%
return

F9::
SendInput,%f9%
return

F10::
SendInput,%f10%
return

F11::
SendInput,%f11%
return

F12::
SendInput,%f12%
return

« Last Edit: July 24, 2007, 10:29:05 AM by wr975 »

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #11 on: July 24, 2007, 10:27:06 AM »
Onces started it is easy to continue
so i playing around a while with this code :D

Spoiler
;Replacement for Giggles Beta 9
;CompuTech Computer Maintenance and Coding Co
;Coded by Brandon Seal
#SingleInstance force


/*
;TEST  .... i didn't get this part to work --- but i have to go now
Ifexist %A_ScriptName%.ini
{
Loop 5
{
IniRead, readMe ,   %A_ScriptName%.ini, Settings, f%A_Index%
MsgBox %readMe% = f%A_Index% ;control
f%A_Index% := readMe
}
}
*/



myINFO =
(
Welcome to WreckedGiggles, the
Giggles Test Replacement.
This is still in development,
and there are bugs to be expected.
If you have used Giggles before,
you should understand the
system here, so go ahead and
get started!
Otherwise, click the button below.
)

myABOUT =
(
WreckedGiggles is a replacement for the popular
Giggles program developed for There.
It is coded by Brandon Seal, owner of
CompuTech Computer Maintenance and Coding Co.
This program is known as DonationWare
; it is free, but donations are requested if
you like the program.
)

myTABS = Info|About|Setup F2|Setup F3|Setup F4|Setup F5|Setup F6|
myTABS = %myTABS%Setup F7|Setup F8|Setup F9|Setup F10|Setup F11|Setup F12

Gui, Add, Tab,, %myTABS%
Gui, Font, Norm
Gui, Add, Text, , %myINFO%
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Add, Button, gInstructions, Instructions
Gui, Add, Text, , -------------------------------------------------------------------------
Gui, Tab, 2
Gui, Add, Text, , %myABOUT%
Gui, Tab, 3
Gui, Add, Edit, r5 vf2
Gui, Add, Button, gfsave, Apply
Gui, Tab, 4
Gui, Add, Edit, r5 vf3
Gui, Add, Button,gfsave, Apply
Gui, Tab, 5
Gui, Add, Edit, r5 vf4
Gui, Add, Button, gfsave, Apply
Gui, Tab, 6
Gui, Add, Edit, r5 vf5
Gui, Add, Button, gfsave, Apply
Gui, Tab, 7
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 8
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 9
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 10
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 11
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 12
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Tab, 13
Gui, Add, Edit, r5
Gui, Add, Button, Apply
Gui, Show
return


;Command list

Instructions:
myINSTRUC =
(
WreckedGiggles is simple to setup & use- you can be done in minutes!`n
Step 1: Click each of the Function Key tabs and set your desired text and click Apply.
Step 2: Close the main window of the WreckedGiggles program.
Step 3: When in-world, press the desired Function key (F2 through F11)
              and your text and emotes will display!
)
MsgBox, %myINSTRUC%

fsave:
Gui, Submit
;GuiControlGet, f2
Loop 11
{
GuiControlGet, f%A_Index%
storeMe := f%A_Index%
IniWrite, %storeMe%, %A_ScriptName%.ini, Settings, f%A_Index%
}
/* TEST
IniWrite, %f2%, %A_ScriptName%.ini, Settings, f2
IniWrite, %f3%, %A_ScriptName%.ini, Settings, f3
IniWrite, %f4%, %A_ScriptName%.ini, Settings, f4
*/
Return



F2::
MsgBox %f2%  ; test only
;sendraw %f2% ; output to current editor
return

F3::
MsgBox %f3%  ; test only
;sendraw %f3%
Return

F4::
MsgBox %f4%  ; test only
;sendraw %f4%
Return


AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #12 on: July 24, 2007, 10:28:05 AM »
Upppsss, to late  :(
any way .... FUN  ;D :beerchug:

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #13 on: July 24, 2007, 10:30:36 AM »
> Gui, Submit,nohide

I think the GUI should hide?????????????????
Just go to all field and fill in your text
and press 'Apply' at the last field only ?!

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #14 on: July 24, 2007, 10:38:26 AM »
But what happens if he wants to change another key? He can always exit or minimize the GUI. Anyway, that's up to wreckedcarzz.

BTW, really like this solution...  :Thmbsup:

Loop,11
{
storeMe := f%A_Index%
IniWrite, %storeMe%, %A_ScriptName%.ini, Settings, f%A_Index%
}

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #15 on: July 24, 2007, 11:13:00 AM »
Ok, while I am skimming through I see a couple things that I think will work, and to answer the repeated question...
v is for variable, so vf2 is for Variable of Function (Key) 2
I have learned from experience to TEST before doing the WHOLE thing...as it can be a pain in the behind if all your things are wrong because you entered the wrong word, or put that comma in one bad spot, or that ! was really a keystroke... :-[ ;D

I am going to go ahead and try basically every idea here, and will reply soon if one works, and will add credit as needed in the top area of the script (at the little ; )
Thanks for the help/ideas!!!!!

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #16 on: July 24, 2007, 11:14:37 AM »
> Gui, Submit,nohide

I think the GUI should hide?????????????????
Just go to all field and fill in your text
and press 'Apply' at the last field only ?!
I don't want the GUI to hide, but that is going to be fixed. And no, Apply must be hit on every window, so I need variables for each window.

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #17 on: July 24, 2007, 11:18:57 AM »
Ok, yea I see my hotkey problem, and the nohide was in my to-do list, but I am going to test out w975's script that uses the .ini file, see how that works. Haven't done it before, I am assuming it creates the file in %A_WorkingDir% automatically?

wr975

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 369
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #18 on: July 24, 2007, 11:51:02 AM »
>  %A_WorkingDir% automatically

Yes, the .ini file gets generated.

About "apply"... GuiSubmit is for the whole GUI... all fields. You don't have to hit apply for each variable. I don't know how this can be changed, and if doing so would be useful at all. What you'd need is a different GUI with just ONE apply button outside the tabbed box, not eleven apply buttons, doing all the same. Try using the SmartGUI creator (if you're not already doing so): http://www.autohotke...ownload/smartgui.zip




wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #19 on: July 24, 2007, 12:07:06 PM »
I went ahead and tested it out. It works perfectly! :) I am downloading the SmartGUI now, and am going to give that a try.

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #20 on: July 24, 2007, 12:44:51 PM »


> Gui, Add, Edit, r5 w250 vf2,%f2%

That is the trick,   :greenclp: of course :read: :wallbash:

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #21 on: July 28, 2007, 01:21:15 PM »
Reviving a dead thread here with a new question, and this one I don't *think* is possible. Worth a shot anyways, though.

I have been scanning the AHK site (using the search, reading everything I can, trying everything I can imagine) for info on how to add a graphic into a button. I have seen it done (maybe not in AHK, but I don't see why not), and after a week of searching I haven't found anything. Any ideas (or knowledge that I am lacking bad enough that after searching for a week I still can't find anything :-[)?

AbteriX

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,115
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #22 on: July 28, 2007, 02:16:29 PM »
I have been scanning the AHK site (using the search, reading everything I can, trying everything I can imagine) for info on how to add a graphic into a button.


http://www.autohotke...ghlight=image+button

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #23 on: July 28, 2007, 08:48:27 PM »
How did I miss that?!?!? :o :-[

Thanks a lot, reading now.... :read:

wreckedcarzz

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,623
    • View Profile
    • Donate to Member
Re: Request for AHK help...I feel so dumb...
« Reply #24 on: August 16, 2007, 01:42:42 AM »
New request (I didn't want to clutter the forum so I figured I would just bump this with a possibly unanswerable (if that is a word) question. Also, I would have asked this in the DC Chat room, but my browser crashes when I try to go there (IE 7 and Firefox 2.0.0.6!)

I am making a replacement for my favorite DC program, Dr. Windows. I have the Gui (partially), the tray menu, and most of the system planned. The problem is that...

I have looked around the AHK site/help file (extensively, maybe just the wrong search terms?), and I cannot find a command to run a random program (random every time). Now, I am not sure if I am answering my own question here, but ideally shouldn't it look something like...

Activate:
Run %ProgramFiles%\Dr. Windows 2\errors\*.*
Return
And have all the usual "errors" in there as separate, tiny .exes? Or would that run ALL the errors? :-\ :tellme: :read: