Guest User

C2

a guest
Oct 10th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.98 KB | None | 0 0
  1. $rules="These are the Rules[...]";Definition for Rules
  2. $startinfo="Quickfire Starts in";Definition for startinfo
  3. $moreinfo="More Info goes here!";More Info goes here
  4.  
  5. HotKeySet("{ESC}", "HotKeyPressed");Set ESC to call the Function
  6. HotKeySet("{F1}", "HotKeyPressed");Set F1 to call the Function
  7.  
  8. $minuteInput=InputBox("Quickfire Tool?", "Time till Quickfire starts ? (in Minutes)");When does Quickfire start? in XXX Minutes
  9.  
  10. Func HotKeyPressed()
  11.     Switch @HotKeyPressed ; The last hotkey pressed.
  12.  
  13.         Case "{ESC}"
  14.             Exit;Exits the Program
  15.  
  16.         Case "{F1}"
  17.             ClipPut($rules);Insert Rules to Clipboard with F1
  18.  
  19.     EndSwitch
  20. EndFunc   ;==>HotKeyPressed
  21.  
  22. while $minuteInput>0 ;if the Minutes are bigger than 1 minute
  23.     Sleep(60000);Wait 60 Seconds
  24.     ClipPut($startinfo & " " & $minuteInput & " Minutes" & " " & $moreinfo ) ; e.g Quickfire Starts in 30 Minutes More Info goes here!
  25.  
  26.     $minuteInput=$minuteInput-1;substract 1 from the remaining Minutes
  27. WEnd
Add Comment
Please, Sign In to add comment