; 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 ; NOTE: annoyingly ControlFocus crashes SMART Notebook, so have to WinActivate then send instead $PgDn:: if WinExist("Whiteboard | The Maths Universe") && WinExist("ahk_exe Notebook.exe") { ;ControlFocus,, ahk_exe Notebook.exe WinActivate ahk_exe Notebook.exe Send, {Down} ;ControlSend,, {Down}, ahk_exe Notebook.exe WinActivate Whiteboard | The Maths Universe 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 Notebook.exe") { ;ControlFocus,, ahk_exe Notebook.exe WinActivate ahk_exe Notebook.exe Send, {Up} ;ControlSend,, {Up}, ahk_exe Notebook.exe WinActivate Whiteboard | The Maths Universe ControlFocus, Chrome_RenderWidgetHostHWND1, Whiteboard | The Maths Universe ControlSend,, w, Whiteboard | The Maths Universe } else SendInput {PgUp} return