Jump to content

gui help


Recommended Posts

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.

Link to comment
Share on other sites

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.

HotKeySet("{F1}", "Begin")

HotKeySet("{F2}", "Pause")

TrayTip("AutoLoot Version .11 ", "F1 start, F2 pause", 5, 1)

Func Begin ()

While 1

Send(" ")

WEnd

EndFunc

Func Pause ()

While 1

Sleep(1)

WEnd

EndFunc

While 1

Sleep(1)

WEnd

Link to comment
Share on other sites

Hi,

have a look at HotKeySet , GuiCtrlCreateButton and GuiCreate in the helpfile. There you'll find everything you need.

Good luck! Otherwise asked again. :D

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

Link to comment
Share on other sites

Hi,

thanks!

Hope that helps...

#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 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

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...