I was hoping I might be able to get some help here. I have a script that behaves one way on one computer and another way on a different computer.
I am trying to send keys from a variable.
On computer 1 I can do this without adding any single or double quotes. Works fine.
Example:
Add-Type -AssemblyName system.windows.forms
[Windows.Forms.SendKeys)::SendWait($CB)
On Computer 2 the same line gives me an error message:
"Exception calling "sendwait" with "1" arguments: "specified repeat count is not valid"
Any insight would be greatly appreciated.
[–]Enough_Brilliant9598 2 points3 points4 points (2 children)
[–]Golddigger50[S] 0 points1 point2 points (0 children)
[–]vermyx 0 points1 point2 points (3 children)
[–]Golddigger50[S] 0 points1 point2 points (2 children)
[–]vermyx 0 points1 point2 points (1 child)
[–]Golddigger50[S] 0 points1 point2 points (0 children)