Advertisement
Plue

Untitled

Jun 10th, 2014
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. ;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
  2.  
  3.  
  4. Loop
  5. {
  6. Close i30.ahk
  7. Code here to clear the screen, reload etc and get you to a point where you can freely launch an instance.
  8. Sleep(3, "min")
  9. ;this makes sure that you don't have a i30 instance still going before you try and launch a trial
  10.  
  11. Run, C:\Users\....\Trial.ahk
  12. ;This launches the trial script, which has a 'ExitApp' line at the end of it.
  13.  
  14. Sleep(30, "m")
  15. ;change the time here to however long your trials takes at most. Put some leeway in here.
  16.  
  17.  
  18. Run, C:\Users\....\Restricted.ahk
  19. ;same as the above, but for restricted
  20.  
  21. Sleep(1.5, "h")
  22. ;change the time here to however long your restricted takes at most. Put some leeway in here.
  23.  
  24. Run, C:\Users\....\i30.ahk
  25.  
  26. Sleep(21.95, "h")
  27. ;work out the math on your own here, but add the previous times and subtract them from 24 hours total. So the script loops.
  28. }
  29.  
  30.  
  31. Sleep(n,u)
  32. {
  33. ;Sleep in seconds, minutes, hours or days. By Learning one, SKAN and MasterFocus.
  34.  
  35. Sleep, % ( n*1000* (((u:=SubStr(u,1,1))="s") ? 1 : (u="m") ? 60 : (u="h") ? 3600 : (u="d") ? 86400 : 0 ))
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement