when startet it will press F2
then it will grap an item at x,y
and drag it to x1,y1 and release
then it will wait for 6 sec and start all over again
it would be nice if it could be started and stop from this window
Code: Select all
#SingleInstance, Force
Gui, Add, Button, x0 y21 w121 h29 gstartstop vsstoggle, Start
Gui, Add, Button, x160 y21 w121 h29 gover, E&xit
gui, show, w281 h50
loop {
while toggle {
if !toggle
break
sleep, 500
if !toggle
break
}
}
return
startstop:
toggle := !toggle
GuiControl,, sstoggle, % toggle ? "Stop" : "Start"
return
over:
GuiClose:
GuiEscape:
ExitApp
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
[Mod action: Topic moved from "Ask for Help (v2)" since this is v1 code.]