- (#35) Add the new function:
sendvkey(VIRTUAL_KEYCODE)
. (Thanks to @chrisdonlan)- It sends a virtual key code
- Fix the Go language version used for building to 1.20.14 for Windows 7,8,Server2008, and 2012R1/R2
Example for sendvkey
local pid = spawn("cmd.exe")
if not pid then
os.exit(1)
end
send("rem exit")
sleep(1)
sendvkey(0x24) -- HOME
sendvkey(0x2E) -- DELETE
sendvkey(0x2E) -- DELETE
sendvkey(0x2E) -- DELETE
sendvkey(0x2E) -- DELETE
sendln("")
wait(pid)