diff --git a/scripts/miracastconnect.ahk b/scripts/miracastconnect.ahk new file mode 100644 index 00000000..18bd58a0 --- /dev/null +++ b/scripts/miracastconnect.ahk @@ -0,0 +1,17 @@ +#Requires AutoHotkey v2.0 + +monitorCount := SysGet(80) + +MsgBox("Number of monitors: " monitorCount) + +if ( monitorCount < 2 ) { + + MsgBox("Trying to connect Miracast display") + Send '#k' + Sleep 1000 + Send "{Tab}" + Sleep 1000 + Send "{Enter}" + Sleep 1000 + Send "{Esc}" +} diff --git a/scripts/miracastdisconnect.ahk b/scripts/miracastdisconnect.ahk new file mode 100644 index 00000000..d7031f57 --- /dev/null +++ b/scripts/miracastdisconnect.ahk @@ -0,0 +1,15 @@ +#Requires AutoHotkey v2.0 + +MsgBox("Trying to disconnect Miracast display") + +Send '#k' +Sleep 1000 +Send "{Tab}" +Sleep 1000 +Send "{Tab}" +Sleep 1000 +Send "{Tab}" +Sleep 1000 +Send "{Enter}" +Sleep 1000 +Send "{Esc}"