Home > front end >  VBS SENDKEYS invalid
VBS SENDKEYS invalid

Time:09-19

What do you want to be an automatic fixed on an application level menu click on the script, because this action we need manual processing, every morning to automation
Script as follows, at present to the WSH. The sendKeys "% W" this step can't see the effect, the great god, please give directions, thank you

Dim the WSH
Set the WSH=createobject (" wscript. Shell ")
WSH. Appactivate (" Shanghai new generation program trading system a-share concentrated offer ")
Wscript. Sleep (100)
'clear interface
The WSH. SendKeys "% W
"Wscript. Sleep (100)
The WSH. Sendkeys "{RIGHT}
"The WSH. Sendkeys "{DOWN}
"The WSH. Sendkeys "{ENTER}
"Wscript. Sleep (100)
The WSH. Sendkeys "{TAP} 2"
The WSH. Sendkeys "{ENTER}
"Wscript. Sleep (100)
The WSH. Sendkeys "{ENTER}
"Wscript. Sleep (100)
The WSH. Sendkeys "{ENTER}
"'the launcher
The WSH. SendKeys "% OS
"Set the WSH=Nothing

CodePudding user response:

Ha ha, I met,,, the sendkey can only use in Windows 7 and more system earlier,,, if is doing or win10, has been banned for,,, you try on your Windows 7 or winxp system can use

CodePudding user response:

Can refer to "prevent AFK. VBX" in this sharing scripts:
https://pan.baidu.com/s/1mYCKI9FzI2MwsdJJr3TaHQ
You need to download NScript:
https://github.com/milaoshu1020/NScript
  • Related