I am thinking of an GUI that looks like a Cheat engine trainer (e.g. http://gtrainers.com/_ld/35/54340520.jpg). So it should list my functions in the script with white color and when I activate a toggle in my script the text turns green (or something different) that indicates that this function is on and turn white (or invisible when color chnage isn't possible) when I turn of the function again.
My GUI so far (I'm 200% noob at this)
Code: Select all
#NoEnv
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
Gui +Resize
Gui Add, Text, x30 y47 w120 h23 +0x200, F2 - Auto click
Gui Add, Text, x31 y91 w120 h23 +0x200, F3 - e spam
Gui Add, Text, x33 y138 w120 h23 +0x200, Function 3,4,5,...
Gui Show, w481 h381, Window
Return
GuiSize:
If (A_EventInfo == 1) {
Return
}
Return
GuiEscape:
GuiClose:
ExitApp
How can I connect this gui with my script?
Code: Select all
toggle = 0
#MaxThreadsPerHotkey 4
F2::Toggle:=!Toggle
#If toggle
~LButton::
While GetKeyState("LButton", "P"){
Click
Sleep 5 ; milliseconds
}
return
#If ; this will be on at all times
F3::Boggle:=!Boggle
#If Boggle
$e::
While GetKeyState("e","P")
{
Send, e
sleep 10
}
Return
;etc.
Thanks in advance for any help