Jump to content

Trying to make an ULTRA-simple script.


Recommended Posts

Guest XiangChu
Posted

I'm just trying to make a simple script that double clicks my mouse twice, then repeats every 10 seconds.

Here's what I have so far, it will move the mouse, but it won't actually click. I'm using version 2.64. Thanks for any help :whistle:

WinActivate, SwgClient

Sleep,8000

start:

MouseMove,105,245

Sleep,500

LeftClick,105,245

LeftClick,105,245

Sleep,1000

LeftClick,105,245

LeftClick,105,245

Sleep,10000

goto,start

Posted

try adding a sleep between the 2 clicks, 250 should work

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Posted

just get version 3 and the script is cut down to this,

MouseClick("left")

MouseClick("left")

this is to just double click the mouse but you can add in the rest just put mouse move,mousedown,mouseup,mouseclick thats all and you will have a more stable script.

Posted

just get version 3 and the script is cut down to this,

MouseClick("left")

MouseClick("left")

this is to just double click the mouse but you can add in the rest just put mouse move,mousedown,mouseup,mouseclick thats all and you will have a more stable script.

Actually, with AutoIt 3, it would be as simple as:

WHILE 1=1
    MouseClick("left", 105, 245, 2); This is a double click
    Sleep(1000)
    MouseClick("left", 105, 245, 2); This is a double click, too
    Sleep(10000)
WEND
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...