Jump to content
Sign in to follow this  
Regency

Anyway to make mouse movements hidden?

Recommended Posts

Regency

Can i make the movements hidden so that i can still do stuff while running the autoit script?

Share this post


Link to post
Share on other sites
therks

?????

Yes? No? Maybe? I think you need to clarify a little. I'm guessing you are using MouseMove or MouseClick to automate something, and you'd prefer to have it working in the background so you can do something else while it's going.. correct? If so, have a look at ControlClick.

Share this post


Link to post
Share on other sites
Regency

I tried getting the control id from the autoit window tool but cant get the id for Firefox. I cant get a number for it to click on the login box and type the words in.. anyone know how to fix this with this type of script?

Run("C:\Program Files\Mozilla Firefox\firefox.exe http://www.Themafianetwork.net www.google.com")
AutoItSetOption("WinWaitDelay", 250)
WinWaitActive("TheMafiaNetwork - Mozilla Firefox")
Sleep(2000)
;Moves and clicks on Accout login.
MouseMove(572, 334, 10)
MouseClick("left")
Send("Amped")
Sleep(1000)
;Moves mouse away for my own cool reasons.
MouseMove(741, 335)
MouseClick("left")
Sleep(1000)
;Moves and clicks password login.
MouseMove(575, 359, 10)
MouseClick("left")
Send("****")
Sleep(1000)
;Clicks login
MouseMove(597, 437, 10)
MouseClick("left")
Sleep(4000)
;Scrolls down so it can click Crimes, and GTA's.
MouseClick("left", 169, 713, 33)

$begin = ""
$begin2 = ""
MyFunction()
$begin = TimerInit()
$begin2 = TimerInit()

While 1
    Sleep(10)
    $dif = Int(TimerDiff($begin)/1000)
    If $dif >= (2 * 60) Then 
        MyFunction()
        $begin = Timerinit()
        Endif
WEnd



Func MyFunction()
    MouseClick("left", 35, 416, 2);Crimes       Noted line down to other noted line
    Sleep(1000)
    MouseClick("left", 419, 414, 1);Sells Pirated Software
    Sleep(3000)
    $dif2 = Int(TimerDiff($begin2)/1000)
    If $dif2 >= (4 * 60) Then
        MouseClick("left", 36, 430, 1);Clicks Gta's
        $begin2 = TimerInit()
    EndIf
    Sleep(1000)
    MouseClick("left", 447, 413, 1);Clicks Residental Area
    Sleep(900)
    MouseClick("left", 604, 541, 1); Steals Car
EndFunc  ;==>MyFunction

Share this post


Link to post
Share on other sites
DW1

There is a HUGE IE.au3 UDF for Internet Explorer.

Is there a reason you MUST use firefox for automation?

Share this post


Link to post
Share on other sites
Regency

There is a HUGE IE.au3 UDF for Internet Explorer.

Is there a reason you MUST use firefox for automation?

Not exactly, but its what i mainly use and dont have sp2 installed and dont have IE7 so will the IE func still work and be worth writing in?

Share this post


Link to post
Share on other sites
Nahuel

Not exactly, but its what i mainly use and dont have sp2 installed and dont have IE7 so will the IE func still work and be worth writing in?

Dude, I gave you a working script for IE that doesn't need the mouse...

Share this post


Link to post
Share on other sites
jefhal

Do you mean that this question was asked earlier under a different topic and you gave him some code in response?

Dude, I gave you a working script for IE that doesn't need the mouse...


...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post


Link to post
Share on other sites
Regency

I am using FF and i need it to do other stuff not just login and this is the easiest way instead of learning for IE which i dont even use

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×