Advertisement
caffeine314

Untitled

Nov 13th, 2023 (edited)
1,173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Prevent my local browser from interpreting Escape: if it does, full screen
  2. ; Citrix becomes windowed, and that's almost never what I want.  But sending
  3. ; escape to work is important, so we want to short circuit the Escape key and
  4. ; send it to the application (Citrix) rather than the browser.
  5. ;
  6. #HotIf WinActive( "ahk_exe chrome.exe" )
  7. password1 := 'A password'
  8. password2 := 'Another password'
  9. SetTimer stop_logout, 5000
  10. ^F1::
  11. {
  12.     SendText password1
  13. }
  14. ^F2::
  15. {
  16.     SendText password2
  17. }
  18. $Esc::
  19. {
  20.     Send '^b'
  21. }
  22. ^b::
  23. {
  24.     Send '{Esc}'
  25. }
  26.  
  27.  
  28. stop_logout()
  29. {
  30.     ; Move mouse slowly by 20px to the right, 30px down from current position.
  31.     MouseMove 20, 20, 50, "R"
  32.     MsgBox "Hello!"
  33. }
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement