Jump to content

Recommended Posts

Posted

Hi, I need help on using delay on my code here

Func TriDot ()
    While 1
        $TriDot = _ImageSearchArea ($pict, 1, $x1, $y1, $x2, $y2, $returnX, $returnY, 0,0)
        If $TriDot = 1 Then
            for $i = 1 to 10
                MouseWheel ("down", 4)
                Sleep ( 500 )
            Next
            ExitLoop
         Else
            Sleep (500)
        EndIf
    WEnd
EndFunc

What do I add into my code if I want to execute a MouseDrag, if The  "ImageSearch" wasn't found within 10 seconds ?

But it will still execute this func if its < 10 seconds.

And after a MouseDrag it will run this func again.

Thank You.

Posted

Firstly, like your other post this looks suspiciously like game automation which is not permitted here. The post will probably be locked unless you state otherwise.

It is a little unclear from your description where you want the delays. As I read it your code executes mouse movement if the image IS  found but you don't want ti to do that.

Try rewording your question.

 

Phil Seakins

Posted

I dont play games, I do this code for my work, where I got my money from......, which I think I have explained to one of the Administrator here.....

I dont have a good english, I will try to explain as best as I can

I want to run func "TriDot", but I want to add a 10 seconds time, where if in 10 seconds that func is not run, it will do something else like a MouseDrag and then run func "TriDot" again.

and if its possible to loop all of that, the loop end if func "TriDot" is executed and continue with the rest of the code.

hope that explains it, thanks.

Posted
4 hours ago, altop said:

I dont play games, I do this code for my work

Are they hiring?  
I could probably do a QuadDot or better depending on the gig :)

Code hard, but don’t hard code...

  • Developers
Posted (edited)
8 hours ago, altop said:

I dont play games, I do this code for my work, where I got my money from......, which I think I have explained to one of the Administrator here.....

Doubt that as you failed to be clear last time if I remember well so why should I believe you now? 
2 options: Be very clear about what this script is for or this thread will also be closed, as also our PM conversation we didn't  come to consensus about the TOS of the app you are trying to automate. So either prove I am wrong or stop asking these type of questions related to that closed topic. 

Jos

@everbody else: Please stay out for the moment!

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

It's just as I have explained before via PM, as clear as that, I just dont understand what that i need to explain more to you, but that is all everything that i have explained to you before

and i am not lying about anything, but if u will always not trust me, fine then, i will apreciate your decision.

l am very sorry for causing you trouble, and i want to thank those who have helped me before.

  • Developers
Posted
1 hour ago, altop said:

and i am not lying about anything, but if u will always not trust me, fine then, i will apreciate your decision.

I am not saying anything like that but merely asked the proof that what you are doing isn't against their TOS and I indicated I have sincere doubts about that.
... and correct, I won't just take your word for it. ;) 

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
  • Recently Browsing   0 members

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