Skip to content

Conversation

@mtelvers
Copy link

Update VMKeystrokes.ps1 to allow a full range of modifiers such as alt-f4 and control-alt-delete. The syntax is now similar to Windows Script Host's SendKeys.

@lamw lamw force-pushed the master branch 2 times, most recently from bb0a8e4 to 8d6b184 Compare September 10, 2023 19:46
.PARAMETER StringInput
The string of characters to send to VM
The string of tokens to send to the VM
.PARAMETER DebugOn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be better to not have this variable and just use Write-Debug

# Verify we have a VM or fail
if (!$vm) {
Write-host "Unable to find VM $VMName"
return

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Write-Error instead?

@tvarohohlavy
Copy link

Except my comments I really love this : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants