Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.35 KB | None | 0 0
  1. #RequireAdmin
  2. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  3. #AutoIt3Wrapper_icon=ct3.ico
  4. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  5. #include <Misc.au3>
  6.  
  7. Opt("SendKeyDelay", 0) ;5 milliseconds
  8. Opt("SendKeyDownDelay", 0) ;1 millisecond
  9.  
  10.  
  11. $dll = DllOpen("user32.dll")
  12. HotKeySet("{pgup}", "Start")
  13. HotKeySet("{pgdn}", "Pause")
  14. Opt("SendKeyDelay", 1)
  15. While 1
  16. Sleep(5)
  17. WEnd
  18.  
  19.  
  20.  
  21.  
  22.  
  23. Func Start()
  24. While 1
  25.  
  26.         if _IsPressed("70", $dll) Then ;70 = solange F1 gedrückt ist
  27.         $x=1
  28.         while $x=1
  29.             send ("{F1}") ;f1 drücken
  30.             sleep(15) ;5ms warten
  31.                 MouseClick("left") ;mausklick links
  32. ;~              MouseClick("left") ;mausklick links
  33.  
  34.                             sleep(100) ; x ms warten
  35.  
  36.                             Send("{ALT down}")
  37.                             sleep(5)
  38.                             Send("{1 down}")
  39.                             sleep(5)
  40.  
  41.                             Send("{1 up}")
  42.                             sleep(5)
  43.                             Send("{ALT up}")
  44.                             sleep(5)
  45.  
  46.                             sleep(100)
  47.  
  48.  
  49.             if _IsPressed("70", $dll)=0 Then $x=2;70 = solange F1 gedrückt ist
  50.         WEnd
  51.     EndIf
  52.  
  53.  
  54. ;~     if _IsPressed("71", $dll) Then
  55. ;~         $x=1
  56. ;~         while $x=1
  57. ;~             send ("{F2}")
  58. ;~              MouseClick("left")
  59. ;~             if _IsPressed("71", $dll)=0 Then $x=2
  60. ;~      WEnd
  61. ;~                      MouseClick("left")
  62. ;~     EndIf
  63.  
  64.  Sleep(1)
  65. WEnd
  66. EndFunc
  67.  
  68.  
  69. Func Pause()
  70.  
  71.     While 1
  72.     Sleep(100)
  73.     WEnd
  74. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement