Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Prevent my local browser from interpreting Escape: if it does, full screen
- ; Citrix becomes windowed, and that's almost never what I want. But sending
- ; escape to work is important, so we want to short circuit the Escape key and
- ; send it to the application (Citrix) rather than the browser.
- ;
- #HotIf WinActive( "ahk_exe chrome.exe" )
- password1 := 'A password'
- password2 := 'Another password'
- SetTimer stop_logout, 5000
- ^F1::
- {
- SendText password1
- }
- ^F2::
- {
- SendText password2
- }
- $Esc::
- {
- Send '^b'
- }
- ^b::
- {
- Send '{Esc}'
- }
- stop_logout()
- {
- ; Move mouse slowly by 20px to the right, 30px down from current position.
- MouseMove 20, 20, 50, "R"
- MsgBox "Hello!"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement