-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
autohotkey scripts for connecting to miracast
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |