Meshios Posted July 3, 2006 Posted July 3, 2006 hey boys , I made this script and it works fine. I just aint sure how to 'change' it into gui I want a simple gui with a button that starts and a button that stops. I want it to say -Meshios's Auto Loot Creation - Version .13 and this picture of my son on the gui. remember just 2 simple buttons.
Meshios Posted July 3, 2006 Author Posted July 3, 2006 hey boys , I made this script and it works fine. I just aint sure how to 'change' it into guiI want a simple gui with a button that starts and a button that stops. I want it to say -Meshios's Auto Loot Creation - Version .13and this picture of my son on the gui. remember just 2 simple buttons.HotKeySet("{F1}", "Begin")HotKeySet("{F2}", "Pause")TrayTip("AutoLoot Version .11 ", "F1 start, F2 pause", 5, 1)Func Begin () While 1 Send(" ") WEndEndFuncFunc Pause () While 1 Sleep(1) WEndEndFuncWhile 1 Sleep(1)WEnd
Xenobiologist Posted July 3, 2006 Posted July 3, 2006 Hi, have a look at HotKeySet , GuiCtrlCreateButton and GuiCreate in the helpfile. There you'll find everything you need. Good luck! Otherwise asked again. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
Meshios Posted July 3, 2006 Author Posted July 3, 2006 ohh , I was hoping someone could give me a template or something , and gratz on 1k posts
Meshios Posted July 3, 2006 Author Posted July 3, 2006 what is the command to make a picture the whole back ground of the gui ? GuiCtrlCreateButton ?
Josbe Posted July 3, 2006 Posted July 3, 2006 what is the command to make a picture the whole back ground of the gui ?GuiCtrlCreateButton ?Read the docs -> GUICtrlCreatePic AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
Meshios Posted July 3, 2006 Author Posted July 3, 2006 do I put the path of the file ? GUICtrlCreatePic ( filename, left, top [, width [, height [, style [, exStyle]]]] ) or just the name ?
Xenobiologist Posted July 3, 2006 Posted July 3, 2006 (edited) Hi, thanks! Hope that helps... expandcollapse popup#include <GUIConstants.au3> HotKeySet("{F1}", "start") HotKeySet("{F2}", "stop") HotKeySet("{ESC}", "_exit") TrayTip("AutoLoot Version .11 ", "F1 start, F2 pause", 5, 1) Global $status GUICreate("My GUI", 300, 100, 5, 5) GUICtrlCreatePic('son.jpg',0,0, 300,100) GUICtrlSetState(-1, $GUI_DISABLE) $start = GUICtrlCreateButton("Start", 5, 5, 100, 40) $exit = GUICtrlCreateButton("Stop", 5, 45, 100, 40) GUISetState(@SW_SHOW) ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $start start() Case $msg = $exit stop() EndSelect If $status = 1 Then ToolTip("Running") WEnd Func start() $status = 1 EndFunc Func stop() $status = 0 ToolTip('') EndFunc Func _exit() Exit(0) EndFunc So long, Mega Edited July 3, 2006 by th.meger Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now