When sending commands to Powershell, any time a character appears multiple times in a row, only the first is kept.
Example command:
ObjectSendtext>3476822,.'%BKscripts%\SetVoltage.ps1' -portName COM7 -voltage 500
This will be changed to:
ObjectSendtext>3476822,.'%BKscripts%\SetVoltage.ps1' -portName COM7 -voltage 50
I tried using SK_DELAY, but that doesn't seem to apply to this command. Using SendText works fine, even without the delay, but I want to be able to keep Powershell minimized when sending commands.
Is there another setting that may alleviate this issue, or will I have to come up with some kludgey way to make my variables into a series of single-key entries?
Thanks in advance for any replies.
ObjectSendText dropping characters
Moderators: JRL, Dorian (MJT support)
Re: ObjectSendText dropping characters
Bob,
I currently don't have Windows 10, so I can't truly test this. But I tried it with a dialog and it is accepted.
ObjectSendtext>3476822,{".'%BKscripts%\SetVoltage.ps1' -portName COM7 -voltage 500"}
Hope this works,
PepsiHog
I currently don't have Windows 10, so I can't truly test this. But I tried it with a dialog and it is accepted.
ObjectSendtext>3476822,{".'%BKscripts%\SetVoltage.ps1' -portName COM7 -voltage 500"}
Hope this works,
PepsiHog
Windows 7
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!
- Dorian (MJT support)
- Automation Wizard
- Posts: 1417
- Joined: Sun Nov 03, 2002 3:19 am
Re: ObjectSendText dropping characters
I tested too and was able to replicate the problem. It seems the problem is specifically related to PowerShell, as characters weren't clipped in test applications such as NotePad. I'm wondering if that is a feature of PowerShell, as if I try "voooooltaaaaage" it is corrected to "voltage". This suggests it's a PowerShell thing and not a Macro Scheduler thing.
Unless there is a setting for this in Powershell, the workaround would be the SendText / SK_Delay option, but I do understand you said was undesirable.
Unless there is a setting for this in Powershell, the workaround would be the SendText / SK_Delay option, but I do understand you said was undesirable.