Skip to content

Instantly share code, notes, and snippets.

Last active September 11, 2019 22:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AgentOak/7260a48d06890af82d1391c5a0f9efbe to your computer and use it in GitHub Desktop.
AutoHotKey script for writing long passwords into VNCviewers with broken paste
SendMode Input
SetBatchLines -1
; Ask for username and password
InputBox, username, VNCViewer Login, Username, , , , , , , , root
if Errorlevel ; User cancelled
InputBox, password, VNCViewer Login, Password, HIDE
if ErrorLevel ; User cancelled
MsgBox, 1, VNCViewer Login, After pressing OK, you will have 3 seconds`nto click inside the applet to give it focus.`n`nCancel will exit the program.
IfMsgBox, Cancel
Sleep, 3000
; Send username and password
SendRaw, %username%
Send, {ENTER}
Sleep, 3000
SendRaw, %password%
Send, {ENTER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment