; This script allows you to control PowerPoint via Page up/down ; regardless of which app currently has focus. ; Ideal when using mathsuniverse.com/whiteboard to cast your ; PowerPoint screen over an extended desktop ; NOTE: with "doosl" (Prezi?) wireless presenter, by default up and down button do 'Up' and 'Down' ; but we want 'PgUp' and 'PgDn' ; switch mode by long-holding up/down together on the remote ; toggles between Up/Down, Left/Right and PgUp/PgDn - we want the latter ; TODO: stuff with other 3 buttons ('enter' and volume up/down) $PgDn:: if WinExist("Whiteboard | The Maths Universe") && WinExist("ahk_exe POWERPNT.EXE") { ControlSend, mdiClass1, {PgDn}, ahk_exe POWERPNT.EXE ControlFocus, Chrome_RenderWidgetHostHWND1, Whiteboard | The Maths Universe ControlSend,, w, Whiteboard | The Maths Universe } else SendInput {PgDn} return $PgUp:: if WinExist("Whiteboard | The Maths Universe") && WinExist("ahk_exe POWERPNT.EXE") { ControlSend, mdiClass1, {PgUp}, ahk_exe POWERPNT.EXE ControlFocus, Chrome_RenderWidgetHostHWND1, Whiteboard | The Maths Universe ControlSend,, w, Whiteboard | The Maths Universe } else SendInput {PgUp} return