[quote="pain";p="47597"][quote="toothpaste";p="47583"]... how would I go about writing a script that would right click until I tell it to stop? Would I just write
Code: Register to unlock hidden link
RMouseDown
RMouseUp
?
Also, could anybody tell me how I could find the coordinates of the cursor on screen please?[/quote]
Getting the cursor position is:
XUScriptHost.GetCursorPos(oX As Variant, oY As Variant)
And your script should look like this:
Dim PosX, PosY 'define Variables
Do
XUScriptHost.GetCursorPos(PosX, PosY) ' Get actual screen position
XUScriptHost.RMouseDown PosX, PosY ' click right mouse button
XUScriptHost.Sleep 300 ' wait for 300ms to get the system ready
XUScriptHost.RMouseUp PosX, PosY 'release right mouse button
XUScriptHost.Sleep 300 ' wait for 300ms to get the system ready
Loop
This script should run continously until you press F12 (which is the default exit key for the script launcher)
Regards,
Pain[/quote]
I cant get this to work -_- Did u get it to work in soma Tooth?
And could u plz tell me exactly what to write in the vbs file? plz :/
ty
