Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On
> Behalf
> Of Tom Glod via use-livecode
> Sent: Saturday, October 13, 2018 1:06 AM
> To: How to use LiveCode
> Cc: Tom Glod
> Subject: Re: vbscript sendkeys()
>
> SOLVED. I split the vbs
e-livecode
Sent: Saturday, October 13, 2018 1:06 AM
To: How to use LiveCode
Cc: Tom Glod
Subject: Re: vbscript sendkeys()
SOLVED. I split the vbscript in 2 parts focused the desire application
then wait then send keys
it now works every time. if i could delay the script using a"Wscript
SOLVED. I split the vbscript in 2 parts focused the desire application
then wait then send keys
it now works every time. if i could delay the script using a"Wscript"
less solution, that would be ideal.
>From the dictionary
"Any which contains a reference to WScript will fail to run,
It seems like the problem is indeed with sendkeys happening too
quickly..but i have also concluded that when I try the Wscript.Sleep 500
command it is not compiling and my vbscript, and the sendkeys are never
sent. when i take the wait out...it works, but too quickly.
so i just need to find a
Hi Brian, thanks.I have tried that, seems to work even less than
without it.
but you might be onto something here because sometimes "most" of the
text gets written... mostly none.and other times all of them. will
keep on testing to see if i can find the cause of this inconsistency.
Have you tried adding a delay? It could be that the sendkeys is happening
before the app is ready for input. (Have not tried from LC, but I do something
similar in a .vbs file.)
Wsh.AppActivate "Notepad" : WScript.Sleep 500
Thanks,
Brian
On Oct 12, 2018, 4:38 PM -0500, Tom Glod via