| View previous topic :: View next topic |
| Author |
Message |
Code Monkey
Joined: 04 Aug 2009 Posts: 2
|
Posted: Tue Aug 04, 2009 7:24 pm Post subject: Quick GUI question |
|
|
Hello every one, I am new to AutoHotKey. I have been checking guides, but none of them go into detail about check boxes, buttons, drop downs, radios etc... I have been trying to create a GUI for a friend of mine who plays a game. He launches several programs to play the game including the game itself. So I tried to make it simple by making a GUI with check boxes/buttons so he could pick and choose which of the several programs to launch. but every time I run the script it just runs the programs with out any boxes or buttons being checked/pushed at all. Is there a way I can fix this? And can some one please tell me the proper way to use check boxes etc...
thanks  |
|
| Back to top |
|
 |
Chavez
Joined: 20 Aug 2008 Posts: 256
|
Posted: Tue Aug 04, 2009 7:31 pm Post subject: |
|
|
It sure would help if you provided the code you were using, it's tough to debug using telekinetic powers. _________________ -Chavez. |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Aug 04, 2009 8:08 pm Post subject: |
|
|
or... just make a hotkey that runs multiple stuff.
| Code: | #r:: ;win+r
run, C:\Program Files\Internet Explorer\iexplore.exe
sleep, 500
run, http://www.CuteKittens.org
sleep, 500
;run, something else & repeat
|
|
|
| Back to top |
|
 |
Chavez
Joined: 20 Aug 2008 Posts: 256
|
Posted: Tue Aug 04, 2009 8:41 pm Post subject: |
|
|
| Anonymous wrote: | or... just make a hotkey that runs multiple stuff.
| Code: | #r:: ;win+r
run, C:\Program Files\Internet Explorer\iexplore.exe
sleep, 500
run, http://www.CuteKittens.org
sleep, 500
;run, something else & repeat
|
|
Lemonparty? Interesting.. _________________ -Chavez. |
|
| Back to top |
|
 |
Code Monkey
Joined: 04 Aug 2009 Posts: 2
|
Posted: Wed Aug 05, 2009 5:54 am Post subject: |
|
|
| Chavez wrote: | | It sure would help if you provided the code you were using, it's tough to debug using telekinetic powers. |
I don't have any real code, (as I stated before I'm new) I deleted everything after it didn't work. I don't recall asking for help with a program that will run multiple things at once, I wanted to be able to choose. Can any one else here please help me out? |
|
| Back to top |
|
 |
HeWhoWas
Joined: 03 Aug 2009 Posts: 86 Location: Australia (Sydney)
|
Posted: Wed Aug 05, 2009 6:54 am Post subject: |
|
|
| Code Monkey wrote: | | Chavez wrote: | | It sure would help if you provided the code you were using, it's tough to debug using telekinetic powers. |
I don't have any real code, (as I stated before I'm new) I deleted everything after it didn't work. I don't recall asking for help with a program that will run multiple things at once, I wanted to be able to choose. Can any one else here please help me out? |
If you're looking for help, a little politeness is probably a good idea. However, while I'm no whiz at GUI's, are you using SmartGUI to create it? Once you've created the GUI, you'll need to edit in the variables. If you check the help file (Both AHK And SmartGUI) - paying particular attention to how you need to use variables. There are working examples.
Here's a freebie though.
| Code: | | Gui, Add, ListBox, vMyListBox gMyListBox w640 r10 |
This is adding a listbox control, that will save the contents to MyListBox (The v in front of it declares that it's a variable), the gMyListBox means that when a selection is made it will go to the labe MyListBox (Which is represented as MyListBox: <Code>) and w640 and r10 are size/placements.
All variables used in a GUI need to be global, so make sure you declare them first as global MyListBox |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Aug 05, 2009 1:41 pm Post subject: |
|
|
| Code Monkey wrote: | | I don't have any real code, (as I stated before I'm new) I deleted everything after it didn't work. I don't recall asking for help with a program that will run multiple things at once, I wanted to be able to choose. Can any one else here please help me out? |
 |
|
| Back to top |
|
 |
|