 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Candle
Joined: 19 Aug 2004 Posts: 334
|
Posted: Tue Sep 14, 2004 6:37 am Post subject: So when will we have a working gui |
|
|
I know you have one working now but something that will be what is used for awhile ?
And will the gui be something like how autoit is setup .
Not sure how you are going to do it .
Like here you have a button and then at the
Case $msg = $button_1 so if you want to run say notepad.exe
you would do run("notepad.exe") right under the Case $msg = $button_1 ,what do you use for the autohotkey ?
Just trying to get an idea of how it works with no help file yet .
Sorry if this somewhere I didn't see it .
| Code: | #cs - ### Generated by AutoBuilder 0.4 -- do not modify ###
394 271
010000000000000 0
button $button_1 Button 1 30 50 100 30 0 0
#ce - ### End of Dump ###
;Script generated by AutoBuilder 0.4
Opt("GUICoordMode", 1)
Opt("GUINotifyMode", 1)
GuiCreate("MyGUI", 392,266,(@DesktopWidth-392)/2, (@DesktopHeight-266)/2 , 0x04CF0000)
$button_1 = GUISetControl("button", "Button 1", 30, 50, 100, 30)
GuiShow()
While 1
sleep(100)
$msg = GuiMsg(0)
Select
Case $msg = -3
Exit
Case $msg = 1
;;;
Case $msg = $button_1
Run("notepad.exe")
EndSelect
WEnd
Exit
|
|
|
| Back to top |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Tue Sep 14, 2004 7:52 am Post subject: |
|
|
If you download the latest version and open up the help file and go to Index and type in the keyword GUI you can see the help for it. Or...
http://www.autohotkey.com/docs/commands/Gui.htm
Here is a sample script to run programs. You can type in a name of an .exe as long as it is in your path and you can run it. Or select one from the list.
| Code: | Gui, Add, Text, x10 y10 w50 h20, Program
Gui, Add, ComboBox, x57 y8 w110 vCombo, notepad.exe|calc.exe|cmd.exe
Gui, Add, Button, x27 y38 w110 h20, Run
Gui, Show, x170 y110 h68 w174, Run Program
Return
GuiClose:
ExitApp
Return
ButtonRun:
Gui, submit, NoHide
if Combo =
MsgBox, Please select or type in a program.
else
{
path = %path%`;c:`;d:
Loop, parse, path, `;
{
IfExist, %a_loopfield%\%combo%
program = %a_loopfield%\%combo%
}
IfExist, %program%
Run, %program%
else
MsgBox, Program does not Exist.
}
return |
thanks,
beardboy |
|
| Back to top |
|
 |
Candle
Joined: 19 Aug 2004 Posts: 334
|
Posted: Tue Sep 14, 2004 7:56 am Post subject: |
|
|
| Thanks beardboy .. |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Wed Sep 15, 2004 10:09 am Post subject: |
|
|
While supporting Bobheart on another issue I had checked the GUI "manual" for the first time. And guess what ?
That GUI thing - it's amazing simple
I'm getting more & more expressed by AHK, and especially Chris and his supporters
Damn good job
Thx to all of you
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|