AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Quick GUI question

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Code Monkey



Joined: 04 Aug 2009
Posts: 2

PostPosted: Tue Aug 04, 2009 7:24 pm    Post subject: Quick GUI question Reply with quote

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 Very Happy
Back to top
View user's profile Send private message
Chavez



Joined: 20 Aug 2008
Posts: 256

PostPosted: Tue Aug 04, 2009 7:31 pm    Post subject: Reply with quote

It sure would help if you provided the code you were using, it's tough to debug using telekinetic powers.
_________________
-Chavez.
Back to top
View user's profile Send private message MSN Messenger
Guest






PostPosted: Tue Aug 04, 2009 8:08 pm    Post subject: Reply with quote

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

PostPosted: Tue Aug 04, 2009 8:41 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Code Monkey



Joined: 04 Aug 2009
Posts: 2

PostPosted: Wed Aug 05, 2009 5:54 am    Post subject: Reply with quote

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
View user's profile Send private message
HeWhoWas



Joined: 03 Aug 2009
Posts: 86
Location: Australia (Sydney)

PostPosted: Wed Aug 05, 2009 6:54 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address MSN Messenger
Guest






PostPosted: Wed Aug 05, 2009 1:41 pm    Post subject: Reply with quote

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?


Rolling Eyes
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group