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 

So when will we have a working gui

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Tue Sep 14, 2004 6:37 am    Post subject: So when will we have a working gui Reply with quote

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



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Tue Sep 14, 2004 7:52 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Tue Sep 14, 2004 7:56 am    Post subject: Reply with quote

Thanks beardboy ..
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Wed Sep 15, 2004 10:09 am    Post subject: Reply with quote

While supporting Bobheart on another issue I had checked the GUI "manual" Wink for the first time. And guess what ?
That GUI thing - it's amazing simple Shocked

Exclamation I'm getting more & more expressed by AHK, and especially Chris and his supporters Exclamation

Damn good job Mr. Green
Thx to all of you Very Happy

Cool
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat 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