Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

VB Script

$
0
0

Hello, I created a vb script to automate mouse clicks for an application. The script works all along but the last line is not working. I am really confused why would that be if the rest of it is working. I want to click CTRL+K, but somehow this is not working. Here is the code. Need some somehelp. Thanks.1

Option Explicit
Dim x
set x=createobject("wscript.shell")

x.run"C:\OnBasewebsite\obclnt32.exe"
wscript.sleep 2000
x.sendkeys"MANAGER"
x.sendkeys"{tab}"
x.sendkeys"PASSWORD"
x.sendkeys"{enter}"
wscript.sleep 2000
x.sendkeys"{TAB}"
x.sendkeys"{UP}"
x.sendkeys"{TAB}"
x.sendkeys"{TAB}"
x.sendkeys"{TAB}"
x.sendkeys"{TAB}"
x.sendkeys"{TAB}"
x.sendkeys"{TAB}"
x.sendkeys"{TAB}"
x.sendkeys"{TAB}"
x.sendkeys"{TAB}"
x.sendkeys"*-*"
x.sendkeys"{enter}"
x.sendkeys"{TAB}"
x.sendkeys"{enter}"
wscript.sleep 1000
x.sendkeys"{CLICK LEFT,50,60}"
x.sendkeys"^k"


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>