Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. PID := getPID("GravitDesigner.exe")
  2. WinGetText, text, ahk_pid %PID%
  3. Msgbox, % "PID: " PID "`nText:`n" text
  4.  
  5.  
  6. getPID(name)
  7. {
  8. Process, exist, %name% ;Sets ErrorLevel to the PID or 0 if it doesn't exist
  9. Return ErrorLevel
  10. }
  11.  
  12. #IfWinActive ahk_class illustrator
  13.  
  14. {
  15.  
  16. $wheeldown::!wheeldown
  17.  
  18. $wheelup::!wheelup
  19.  
  20. return
  21.  
  22. }
  23.  
  24. #IfWinActive ahk_class "Chrome Legacy Window"
  25.  
  26. {
  27.  
  28. $wheeldown::^wheeldown
  29.  
  30. $wheelup::^wheelup
  31.  
  32. return
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement