Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Persistent
- SendMode Input
- Start: // this line is never being used
- p::
- Toggle := !Toggle
- if Toggle {
- SetTimer, CheckCondition, 100
- }
- else{
- SetTimer, CheckCondition, Off
- }
- return
- CheckCondition:
- FileReadLine, FileContent, rotation.txt, 1
- if (Toggle){
- Loop, Parse, FileContent, %A_SPACE%{
- if (!Toggle){
- Break
- Goto, Start // this will never execute because you are breaking out of the loop before this step
- }
- else (A_LoopField = "{Tab}"){
- Send %A_LoopField%
- Sleep 500
- }
- }
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement