Advertisement
congdantoancau

Unicode Notepad

Nov 28th, 2018
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoTrayIcon
  2. #If WinActive("ahk_class #32770") and WinActive("Notepad")
  3.     ~LButton::
  4.     ~NumpadEnter::
  5.     ~Enter::
  6.     ~Space::
  7.         Sleep, 200
  8. #IfWinActive, ahk_class Notepad
  9.     ~^s::
  10.         WinWaitActive, ahk_class #32770
  11.         IfWinActive, ahk_class #32770
  12.         {
  13.             ControlFocus, ComboBox3, ahk_class #32770
  14.             Loop, 4
  15.             {
  16.                 Send, u
  17.                 Sleep, 10
  18.                 ControlGetText, text, ComboBox3, ahk_class #32770
  19.                 If (text == "Unicode")
  20.                     break
  21.             }
  22.             ControlFocus, Edit1, ahk_class #32770
  23.         }
  24.            
  25.     return
  26. #IfWinActive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement