Ill try and be as informational as possible and explain what I am trying accomplish.
What I want the script to do!
*Have a toggle on and off "pause" or "suspend" until I need it again.
*GUI Text pref that I can not Interact with. I have only been able to create a box but its something .
* WHILE the toggle is true and I have the left mouse button down, replicate that click over and over "with somewhat of a delay" until released.
I got the mouse click and the GUI but for some reason the mouse click IGNORES the if statement.
CODE!
Code: Select all
End::
ExitApp
Return
Gui, Add, Text, , Some Text
Space::
toggle := !toggle
If (toggle = true)
{
GuiWidth := 100
Guiheight := 10
Guixpos := A_ScreenWidth - GuiWidth - 10
Guiypos := A_ScreenHeight - Guiheight - 15
Gui, 1:Show, x%guixpos% y%guiypos% h382 w120
Gui, +AlwaysOnTop
LButton::
While GetKeyState("LButton","P") = 1
{
send,{LButton}
sleep,25
}
return
}
else
{
Gui, hide
}
return