Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;start this script at noon or something, keep in mind this is psudo code for part of it, so yea, look up the proper code to close another script
- Loop
- {
- Close i30.ahk
- Code here to clear the screen, reload etc and get you to a point where you can freely launch an instance.
- Sleep(3, "min")
- ;this makes sure that you don't have a i30 instance still going before you try and launch a trial
- Run, C:\Users\....\Trial.ahk
- ;This launches the trial script, which has a 'ExitApp' line at the end of it.
- Sleep(30, "m")
- ;change the time here to however long your trials takes at most. Put some leeway in here.
- Run, C:\Users\....\Restricted.ahk
- ;same as the above, but for restricted
- Sleep(1.5, "h")
- ;change the time here to however long your restricted takes at most. Put some leeway in here.
- Run, C:\Users\....\i30.ahk
- Sleep(21.95, "h")
- ;work out the math on your own here, but add the previous times and subtract them from 24 hours total. So the script loops.
- }
- Sleep(n,u)
- {
- ;Sleep in seconds, minutes, hours or days. By Learning one, SKAN and MasterFocus.
- Sleep, % ( n*1000* (((u:=SubStr(u,1,1))="s") ? 1 : (u="m") ? 60 : (u="h") ? 3600 : (u="d") ? 86400 : 0 ))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement