Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [void] [System.Reflection.Assembly]::LoadWithPartialName("'Microsoft.VisualBasic")
- #[Microsoft.VisualBasic.Interaction]::AppActivate("Test.ps1 - Notepad")
- [void] [System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms")
- Start-Sleep -s 5
- [System.Windows.Forms.SendKeys]::SendWait("Hello")
- Start-Sleep -m 1000
- [System.Windows.Forms.SendKeys]::SendWait("^o")
- Start-Sleep -s 10
- [System.Windows.Forms.SendKeys]::SendWait("{F1}")
- <#
- SHIFT
- +
- CTRL
- ^
- ALT
- %
- BACKSPACE
- {BACKSPACE}, {BS}, or {BKSP}
- BREAK
- {BREAK}
- CAPS LOCK
- {CAPSLOCK}
- DEL or DELETE
- {DELETE} or {DEL}
- DOWN ARROW
- {DOWN}
- END
- {END}
- ENTER
- {ENTER}or ~
- ESC
- {ESC}
- HELP
- {HELP}
- HOME
- {HOME}
- INS or INSERT
- {INSERT} or {INS}
- LEFT ARROW
- {LEFT}
- NUM LOCK
- {NUMLOCK}
- PAGE DOWN
- {PGDN}
- PAGE UP
- {PGUP}
- RIGHT ARROW
- {RIGHT}
- SCROLL LOCK
- {SCROLLLOCK}
- TAB
- {TAB}
- UP ARROW
- {UP}
- F1
- {F1}
- Keypad add
- {ADD}
- Keypad subtract
- {SUBTRACT}
- Keypad multiply
- {MULTIPLY}
- Keypad divide
- {DIVIDE}
- #>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement