首先谢谢您能花宝贵的时间来看我的提问。是这样的。我想用易语言把这个VBS文件写到某盘然后运行他。我想问的是如何用易语言把这个代码写到桌面。最重要的问题是VBS里面那个账号用易语言的变量赋值进去。
Dim Program1
Progrm1= "D:\Program Files\Tencent\QQ\QQ.exe"
Set WshShell=createobject("wscript.shell")
Set oExec=WshShell.Exec(Program1)
WScript.Sleep 400
WshShell.AppActivate "cncn"
WshShell.SendKeys "+{TAB}"
WshShell.SendKeys "账号"
WScript.Sleep 200
WshShell.SendKeys "{TAB}"
WshShell.SendKeys "pcadingh"
WScript.Sleep 200
WshShell.SendKeys "{ENTER}"