What am I doing wrong?
I can copy and paste my relevant data into notepad, word, and even point of sale software but I cannot seem to get my vbs script to paste into it's own input box.
I am very confuzzled.
First part copies item number to be pasted into script:
WshShell.AppActivate "Touchscreen Ticket Entry"
WshShell.SendKeys ("%a")
WshShell.SendKeys ("^C")
Safety Pause for copy to take hold:
wsh.sleep 1000
This part creates input box to paste into:
Itemno = InputBox("Enter Item Number:", "Item Number")
WshShell.AppActivate "Item Number"
WshShell.SendKeys "^V"
If I replace input box with notepad it pastes in even without the safety pause.
I have tried ("^V"), ("{^V}"), ("^{V}"), {paste} and many other ways to get this to paste into itself and have plum run our of ideas.
Please help advise me to my error or what I am missing if you can. I am just starting to thing vbs just wont paste to itself
And I can to a physical keyboard ctrl-v from the keyboard and it pastes just fine
I can copy and paste my relevant data into notepad, word, and even point of sale software but I cannot seem to get my vbs script to paste into it's own input box.
I am very confuzzled.
First part copies item number to be pasted into script:
WshShell.AppActivate "Touchscreen Ticket Entry"
WshShell.SendKeys ("%a")
WshShell.SendKeys ("^C")
Safety Pause for copy to take hold:
wsh.sleep 1000
This part creates input box to paste into:
Itemno = InputBox("Enter Item Number:", "Item Number")
WshShell.AppActivate "Item Number"
WshShell.SendKeys "^V"
If I replace input box with notepad it pastes in even without the safety pause.
I have tried ("^V"), ("{^V}"), ("^{V}"), {paste} and many other ways to get this to paste into itself and have plum run our of ideas.
Please help advise me to my error or what I am missing if you can. I am just starting to thing vbs just wont paste to itself
And I can to a physical keyboard ctrl-v from the keyboard and it pastes just fine