google chrome - How to move the mouse pointer to the center of the screen and apply left click? -
i have kiosk google chrome browser running on boot. when boots not work unless left click generated on center (because of google chrome bug). tried following not working.
how tell go center of screen , click left (not right click).
set wshshell = wscript.createobject("wscript.shell") wshshell.sendkeys("+{f10}")
edit: runme.bat
timeout 10 > nul "c:\program files (x86)\google\chrome\application\chrome.exe" --kiosk
edit: centerme.vbs
(failed)
set = createobject("wscript.shell") private declare function setcursorpos lib "user32" (byval x long, byval y long) long private sub somesub() dim somex long, somey long somex = 400 somey = 400 setcursorpos somex, somey end sub wscript.quit
vbscript doesn't allow moving mouse cursor or applying mouse clicks. "vbscript" code posted vb/vba code , not work in vbscript. need autoit you're trying do.
Comments
Post a Comment