Hi,
It's my program :
Why :confused: Please help me.
Thanks.
It's my program :
But, when i press any hotkeys....nothing :(Quote:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.8.1
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Aegis = GUICreate("Aegis", 205, 165, 597, 270)
$InputShield = GUICtrlCreateInput("1 To 10", 104, 24, 81, 24)
$InputHP = GUICtrlCreateInput("1 To 10", 104, 56, 81, 24)
$InputLife = GUICtrlCreateInput("1 To 10", 104, 88, 81, 24)
$Save = GUICtrlCreateButton("Save", 72, 120, 75, 25)
$Shield = GUICtrlCreateLabel("Shield", 16, 24, 42, 20)
$HP = GUICtrlCreateLabel("HP ( beacon )", 16, 56, 86, 20)
$Life = GUICtrlCreateLabel("Life", 16, 96, 25, 20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Save
$AegisShield = GUICtrlRead($InputShield)
$AegisHP = GUICtrlRead($InputHP)
$AegisLife = GUICtrlRead($InputLife)
GUIDelete("Aegis")
EndSwitch
WEnd
Global $Send
HotKeySet("s","Go")
HotKeySet("{ESC}","Exit2")
HotKeySet ("p", "Pause")
While 1
Sleep(100)
WEnd
Func Pause()
$Send = Not $Send
While $Send
Sleep(100)
WEnd
EndFunc
Func Go()
While 1
Send($AegisShield)
Send($AegisHP)
Send($AegisLife)
Sleep(30000)
WEnd
EndFunc
Func Exit2()
Exit 0
EndFunc
Why :confused: Please help me.
Thanks.