Skip to content

Instantly share code, notes, and snippets.

@Paxxi
Created September 6, 2017 06:36
Show Gist options
  • Save Paxxi/2472ecf6b43537ebacf1273211fb5951 to your computer and use it in GitHub Desktop.
Save Paxxi/2472ecf6b43537ebacf1273211fb5951 to your computer and use it in GitHub Desktop.
#include <StringConstants.au3>
Func recordF10()
$keys = StringSplit("b r e a k P o i n t ( ) {ENTER}", " ", $STR_NOCOUNT)
For $el In $keys
Send($el)
Sleep(50)
Next
For $el In StringSplit("{F10} {F10} {F10}", " ", $STR_NOCOUNT)
Send($el)
Sleep(200)
Next
EndFunc
Func recordF11()
For $el In StringSplit("b r e a k P o i n t ( ) {ENTER}", " ", $STR_NOCOUNT)
Send($el)
Sleep(50)
Next
For $el In StringSplit("{F10} {F11} {F10} {F10} {F10} {F10}", " ", $STR_NOCOUNT)
Send($el)
Sleep(200)
Next
EndFunc
Func recordF12()
For $el In StringSplit("b r e a k P o i n t ( ) {ENTER}", " ", $STR_NOCOUNT)
Send($el)
Sleep(50)
Next
For $el In StringSplit("{F10} {F11} +{F11} {F10} ", " ", $STR_NOCOUNT)
Send($el)
Sleep(200)
Next
EndFunc
Func recordCBP()
For $el In StringSplit("c o n d i t i o n a l B P ( ) {ENTER}", " ", $STR_NOCOUNT)
Send($el)
Sleep(50)
Next
;~ For $el In StringSplit("{F10} {F11} +{F11} {F10} ", " ", $STR_NOCOUNT)
;~ Send($el)
;~ Sleep(200)
;~ Next
EndFunc
Func stop()
Exit
EndFunc
HotKeySet("{F1}", "recordF10")
HotKeySet("{F2}", "recordF11")
HotKeySet("{F3}", "recordF12")
HotKeySet("{F4}", "recordCBP")
HotKeySet("{ESCAPE}", "stop")
While 1
Sleep(100)
Wend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment