Skip to content

Commit

Permalink
autohotkey scripts for connecting to miracast
Browse files Browse the repository at this point in the history
  • Loading branch information
nosuchtim committed Jul 15, 2024
1 parent 3c802bf commit 72e203e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
17 changes: 17 additions & 0 deletions scripts/miracastconnect.ahk
Original file line number Diff line number Diff line change
@@ -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}"
}
15 changes: 15 additions & 0 deletions scripts/miracastdisconnect.ahk
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit 72e203e

Please sign in to comment.