Autoit script HELP

02/19/2016 14:27 nozomiozama#1
hi, i just made a Autoit Script, its not working properly, can anyone pls help me, this is my first time to make an autoit script, my goal is,

after i log-in my toon, it should auto sign-in my daily attendance if i click my autoit script, but its not doing it right, kindly correct me pls.

here is my script:

HotKeySet ("{F1}", "myExit")

$x = WinActivate("Perfect World International: Eclipse")

while(1)

LC(1205,206)
LC(677,98)
Exit
WEnd

Func LC($x, $y)
MouseClick("left", $x, $y, 1, 1)
EndFunc


Func myExit()
MsgBox(0,"Exiting", "Bot is Quitting")
Exit
EndFunc
02/19/2016 20:42 jasty#2
It looks like it will do 2 clicks and then exit the script. How far does it get?
02/20/2016 01:22 nozomiozama#3
yeah, it must first click the calendar then click the sign in attendance, but nothing happens when I start it, is there any problem in my script? thank you
02/20/2016 04:07 sasukezero#4
You probably miss some sleep times between your Leftclicks. Another thing would be to use WinWait("Perfect World International: Eclipse") after WinActivate. That way you're waiting till the window is actually activated.

If you want to use the method of sending packages then i put a test code together which does your DailySign here:

With this you can do your Sign in via F1 and close the program again with the delete key :)

A completely different way would be to use ImageSearch to find the buttons, that way it would work basically always.
02/25/2016 07:37 nozomiozama#5
Quote:
Originally Posted by sasukezero View Post
You probably miss some sleep times between your Leftclicks. Another thing would be to use WinWait("Perfect World International: Eclipse") after WinActivate. That way you're waiting till the window is actually activated.

If you want to use the method of sending packages then i put a test code together which does your DailySign here:

With this you can do your Sign in via F1 and close the program again with the delete key :)

A completely different way would be to use ImageSearch to find the buttons, that way it would work basically always.
wow, I never though someone will help me this far, this is not a simple coding and it worked :) thank you very much, :) :) thank you so much :)
now I would like to add this on your code, but I don't know how since this coding is very complicated for me, I would like to add: when press "F3" it must double click Jolly Old Jones (257,689 city of the lost) then "quest related" then "daily bounty orders" then "not bad. and you?" then "i would be willing to help if you share the rewards with me" then "that's what I like to hear! we have a deal" then "sounds good" to auto daily get may jolly old jones reward. of course I am beside the NPC jolly old jones b4 I press "F3". thank you, I hope you can help me with this. thank you very much. I love your work. tytyty :):handsdown::o
02/25/2016 18:30 sasukezero#6
Never checked Jones but its just another interaction with a NPC. The DailySign i made was just a kickstart, the rest for whatever you'd like to do is on you. For informations you can check the Forum, also a lot is found here [Only registered and activated users can see links. Click Here To Register...]
Other than that others including me are glad to help when you encounter a Problem after trying it first on your own :)
02/26/2016 11:02 nozomiozama#7
ok, i will do it, i will post my first project here :) thank you very much for your help :) :)