Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
image scan
#1
Hello, I'm very beginning to know about development.Also, it's not good at studying English because it's not good at English.So if you have duplicate questions, I'm so sorry, I would appreciate it if you understand.

1. macro execution
2. If Windows window window window window window is "A"
3. Check the duty of image A
4. When recognizes image A. Click Image A
5. If you don't have image A, wait until the image A
6. Check the duty of image B
7. When recognizes image B
8. When the trigger of "7" will be returned to "3"
9. spe 0

I don't know if I did well.The task I want a variable based on image recognition, and continue to press the Constitution, and continue to press the Constitution based on image recognition

The only phrases I can use are lef, goto, rep, if, mac, win, act, and spe. I've only tasted the tip of the iceberg in 2 years of using this macro. I live in a non-English speaking country, so it's hard to read the contents of the forum. Please help me. Thank you.
#2
Hi, i'm beginner too, so this code maybe help you.
2. If Windows window window window window window is "A
  (If window not active, then wait, then End Function1)
 
Code:
Copy      Help
int w
w = win("The_name")
rep 1
    ifa w
        out "Function1 - Window_activated"
        break
    wait(4.5 WA w)
    err
        out "Function1 - No_Window"
        ret
    out "Function1 - Window_active"
    1
    break
OnScreenDisplay "QA[]Window_game_actived" 5 1920 1080 0 18 0 8|0x100
3. Check the duty of image A
4. When recognizes image A. Click Image A
5. If you don't have image A, wait until the image A
Code:
Copy      Help
RECT r
SetRect &r 1112 639 1139 669        ;; Area picture "Image_A"
if(scan("image:Image_A" w r 1))
    out "Function1 - Image_A_1"
    lef
    OnScreenDisplay "Image_A_1" 1 0 0 0 24 0 2|0x100
    goto g2
out "Function1 - Fail - Image_A_1"

out "Function1 - Wait Image instead"
wait 3 S "image:Image_A" w r 1|2
err
    out "Function1 - Fail - Image_A_2 and End"
    end
out "Function1 - Image_A_2"
OnScreenDisplay "Image_A_2" 1 0 0 0 24 0 2|0x100

;g2
Do next


Forum Jump:


Users browsing this thread: 1 Guest(s)