Sign in to follow this  
Followers 0
Guest shaggy2k7

Mouse Clicks Arent Working.....help A Newb

6 posts in this topic

ok well here is the code i got the x and y coords read the directions and came with this with no luck

Sleep(6000)

While 1 = 1

HotKeySet("{Esc}", "MyExit")

MouseClick("left", 0, 535, 22)

Sleep(2000)

MouseClick("Left", 302, 323)

Sleep(700)

MouseClick("Left", 296, 394)

Sleep(2500)

MouseClick("Left", 568, 22)

Sleep(2000)

MouseClick("Left", 302, 323)

Sleep(700)

MouseClick("Left", 296, 394)

Sleep(2500)

MouseClick("Left", 635, 22)

Sleep(2000)

MouseClick("Left", 302, 323)

Sleep(700)

MouseClick("Left", 296, 394)

Sleep(2500)

MouseClick("Left", 664, 22)

Sleep(2000)

MouseClick("Left", 302, 323)

Sleep(700)

MouseClick("Left", 296, 394)

Sleep(2500)

MouseClick("Left", 694, 22)

Sleep(2000)

MouseClick("Left", 302, 323)

Sleep(700)

MouseClick("Left", 296, 394)

Sleep(2500)

MouseClick("Left", 726, 22)

Sleep(2000)

MouseClick("Left", 302, 323)

Sleep(700)

MouseClick("Left", 296, 394)

Sleep(2500)

Wend

Func MyExit()

    Exit

EndFunc

PLEASE HELP ME OUT I"M NEW!!!!! :D

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I would make a few changes, first I would move the mouse very fast, so I put the default click of 1 and the speed of 1. ( Meaning that it moves very very fast)

I would also look at if you are doing it full screen or in a window.

Last I like to declare my hotkeys once, not on every pass.

Your code seemed to work, but because you move your mouse so slow, I think your times might be way off.

HotKeySet("{Esc}", "MyExit")
Opt("MouseCoordMode", 1)       ;1=absolute, 0=relative
Sleep(6000)

While 1; same as what you did.

MouseClick("Left", 535, 22,1,1); figured you didn't want 22 clicks of it.
Sleep(2000)
MouseClick("Left", 302, 323,1,1)
Sleep(700)
MouseClick("Left", 296, 394,1,1)
Sleep(2500)

MouseClick("Left", 568, 22,1,1)
Sleep(2000)
MouseClick("Left", 302, 323,1,1)
Sleep(700)
MouseClick("Left", 296, 394,1,1)
Sleep(2500)

MouseClick("Left", 635, 22,1,1)
Sleep(2000)
MouseClick("Left", 302, 323,1,1)
Sleep(700)
MouseClick("Left", 296, 394,1,1)
Sleep(2500)

MouseClick("Left", 664, 22,1,1)
Sleep(2000)
MouseClick("Left", 302, 323,1,1)
Sleep(700)
MouseClick("Left", 296, 394,1,1)
Sleep(2500)

MouseClick("Left", 694, 22,1,1)
Sleep(2000)
MouseClick("Left", 302, 323,1,1)
Sleep(700)
MouseClick("Left", 296, 394,1,1)
Sleep(2500)

MouseClick("Left", 726, 22,1,1)
Sleep(2000)
MouseClick("Left", 302, 323,1,1)
Sleep(700)
MouseClick("Left", 296, 394,1,1)
Sleep(2500)

Wend

Func MyExit(); nice and clean :)
    Exit
EndFunc
Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

i'm making this for SWG the game and i have it in windowed mode and it wont click on the resources and macro tabs. any help? ast school atm so when i get home i'll try that code.

Share this post


Link to post
Share on other sites

A lot of people have said they can't get AutoIt to work with that game. You can probably find some of the posts in the now read-only gaming forum if you search for "Star Wars" or "SWG" or "Galaxies". There might be something helpful in one of them.

Share this post


Link to post
Share on other sites

I have this exact same problem! my clicks work sometimes but not all the time(like the server isnt reading it) its very wierd....

Sleep(9000)

Send(3)

Sleep(1200)

MouseClick("right", 60, 80, 1, 1)

Sleep(500)

Send(2)

Sleep(1200)

MouseClick("right", 500, 500, 1, 1)

Sleep(2000)

MouseClick("left", 50, 55)

Sleep(110)

MouseClick("left", 50, 55)

Sleep(110)

MouseClick("left", 50, 55)

Sleep(110)

MouseClick("left", 50, 55)

Sleep(110)

MouseClick("left", 50, 55)

Sleep(110)

MouseClick("left", 50, 55)

Sleep(110)

MouseClick("left", 50, 55)

Sleep(110)

MouseClick("left", 50, 55)

Sleep(110)

MouseClick("left", 50, 55)

Sleep(500)

Share this post


Link to post
Share on other sites

Stop posting this same thing everywhere. If you had read the post above yours (Valik's), you would know your answer already.

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  
Followers 0