Hi All!
I'm wanting to make a GUI out of my simple script that I made, however there are few stuff that I need to understand first.
HotKeySet("{End}", "End")
HotKeySet("{Home}", "Start")
While 1
Sleep(5000)
WEnd
;;heals
Func Start() ; command to start
While 1
$pixel = PixelSearch (245, 214, 812, 566, 0x8C2A3)
$Attack = 2
If Not @error Then
Send($Attack) ; send attack
Send($Attack)
Send($Attack)
EndIf
Sleep(100)
;;mana
$pixelmana = PixelSearch (227, 146, 227, 146, 0x000000)
$mana = 5
If Not @error Then
Send ($mana)
Send ($mana)
Send ($mana)
EndIf
Sleep(100)
;;hp
$pixelhp = PixelSearch (242, 119, 242, 119, 0x000000)
$hp = 6
If Not @error Then
Send ($hp)
Send ($hp)
Send ($hp)
EndIf
WEnd
EndFunc
Func End() ; command to kill
Exit
EndFunc
I'm wanting to make a very simple GUI for the script, esp for pixel search functions (location, and colours) also for the $ variables ><
Unsure where to start I'm new to GUIs, thanks before!