Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find text inside existing files
#16
Maby i should make a new tred named "help a noob" hehe but here is some more code that is giving me trouble. :oops:
What im trying to do here is make a loop that will break once it finds the image it's waiting for and repeat all actions from the begining if it doesen't in set amount of time. Right now the macro doesnot restart after 100s looking for the image (or maby it does :? ), it just gives me a time out error and stops - Error (RT) in first: wait timeout. . Maby im doing the code wrong?

Code:
Copy      Help
rep
    if(scan("first.bmp" 0 0 1 65)) ;;zuta nula
        2
        rig ;; getting the drop down menue
        2
        wait 10 S "second (2).bmp" 0 0 1|0x400 65  ;;
        2
        lef ;; click the image on the dropdown menue
        6
        if(wait( 100 S "third.bmp" 0 0 1|0x400 65)) break ;; here is the image he is waiting for 100s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)