Jump to content

gui noob


Recommended Posts

1st time i try to code a program...but now i wanna make a simple gui that

- allow user to input the coords

- allow user to bind hotkeys

- a start button

- a pause button

- a exit button

can someone help me out? can guide me? i wan to make it simple if can...also the help file was really confuesing.....i need an example if can.

Link to comment
Share on other sites

#include <GUIConstants.au3>

$Form1 = GUICreate("GUI", 269, 107, 487, 412)

$Input1 = GUICtrlCreateInput("Coordinates", 59, 13, 71, 21)

$Input2 = GUICtrlCreateInput("HOTKEYBIND", 60, 39, 121, 21)

$Button1 = GUICtrlCreateButton("&Pause", 9, 72, 75, 25, 0)

$Button2 = GUICtrlCreateButton("&Start", 99, 72, 75, 25, 0)

$Button3 = GUICtrlCreateButton("&Exit", 186, 73, 75, 25, 0)

GUICtrlCreateLabel("Hotkey", 10, 43, 38, 17)

GUICtrlCreateLabel("Coords", 8, 19, 37, 17)

GUISetState(@SW_SHOW)

While 1

$msg = GuiGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case Else

;;;;;;;

EndSelect

WEnd

Exit

For binding Hotkeys you will need Hotkeyset()

To make the exit button work use a case statement

e.g: case $msg = $exit

exit

The rest is for you to figure out

F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]
Link to comment
Share on other sites

wow......to me is kinda hard...i am not sure which to replace....abt the coord do i need to replace my code like tis?

MouseClick("right",392,416,1)

to

MouseClick("right",$Input1,1)

or can the coord box seperate into to? for each like X and Y so that it can become MouseClick("right",$Input1,$Input2,1)

and abt the hotkey...i am not sure wat u mean there....

the coord...is it each time the program launches the user need to retype the same coord everytime? i wanna make it static and only change when the user wanna change it.....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...