AutoHotkey Community

It is currently May 26th, 2012, 9:29 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Quick GUI question
PostPosted: August 4th, 2009, 8:24 pm 
Offline

Joined: August 4th, 2009, 8:03 pm
Posts: 2
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 :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 4th, 2009, 8:31 pm 
Offline

Joined: August 20th, 2008, 4:25 pm
Posts: 256
It sure would help if you provided the code you were using, it's tough to debug using telekinetic powers.

_________________
-Chavez.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 4th, 2009, 9:08 pm 
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



Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: August 4th, 2009, 9:41 pm 
Offline

Joined: August 20th, 2008, 4:25 pm
Posts: 256
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 5th, 2009, 6:54 am 
Offline

Joined: August 4th, 2009, 8:03 pm
Posts: 2
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 5th, 2009, 7:54 am 
Offline

Joined: August 3rd, 2009, 9:20 am
Posts: 85
Location: Australia (Sydney)
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 5th, 2009, 2:41 pm 
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?


:roll:


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google [Bot], Yahoo [Bot] and 56 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group