Skip to content

Commit 01dacc5

Browse files
committed
ui interaction with powershell
1 parent 6f265d5 commit 01dacc5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Focus Assist Off
2+
Add-Type -AssemblyName System.Windows.Forms
3+
[System.Windows.Forms.SendKeys]::SendWait("(^{ESC})")
4+
Start-Sleep -Milliseconds 500
5+
[System.Windows.Forms.SendKeys]::SendWait("(Focus Assist)")
6+
Start-Sleep -Milliseconds 200
7+
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
8+
Start-Sleep -Milliseconds 700
9+
[System.Windows.Forms.SendKeys]::SendWait("{TAB}{TAB} ")
10+
Start-Sleep -Milliseconds 500
11+
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
12+
Start-Sleep -Milliseconds 500
13+
[System.Windows.Forms.SendKeys]::SendWait("(%{F4})")

0 commit comments

Comments
 (0)