remove extra goto
I shouldn't have put that there in the first place, was trying to get it so you could just call functions and #Include flag.ahk in your own script. Figured that wasn't a good idea
|8 months ago|
|LICENSE||8 months ago|
|README.md||8 months ago|
|flag.ahk||8 months ago|
This AHK script simply interacts with the API, not directly interacting with the flag.
The recommended way to use this is to launch it with command line parameters. I wouldn't advise
#Includeing it since it contains quite a few
I didn't want to have you specify the UserID when you call the script, that's super annoying. Just go in there and put it in at the very top.
How to do it from within AHK
Run %A_AhkPath% "flag.ahk" "param" "param" "param"
Additional patterns accepted on Windows only:
Just specify how long you want it to hold said action in seconds. I haven't tested out decimals, but it isn't that exact anyway, takes a few seconds to turn on the light as is.
If you don't specify this for solid colors it will just tell it to go to that color and end. If you don't set it for blinking or patterns it goes on for 1000000 seconds (11.57 days, so essentially until the script gets stopped)
Only specify the parameter
off and it will turn off the flag
Run %A_AhkPath% "flag.ahk" "b" "red" "10"
Run %A_AhkPath% "flag.ahk" "p" "police"
Run %A_AhkPath% "flag.ahk" "s" "magenta" "35"
Run %A_AhkPath% "flag.ahk" "off"