Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PID := getPID("GravitDesigner.exe")
- WinGetText, text, ahk_pid %PID%
- Msgbox, % "PID: " PID "`nText:`n" text
- getPID(name)
- {
- Process, exist, %name% ;Sets ErrorLevel to the PID or 0 if it doesn't exist
- Return ErrorLevel
- }
- #IfWinActive ahk_class illustrator
- {
- $wheeldown::!wheeldown
- $wheelup::!wheelup
- return
- }
- #IfWinActive ahk_class "Chrome Legacy Window"
- {
- $wheeldown::^wheeldown
- $wheelup::^wheelup
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement