Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need support in iteration loop
#1
Hello guys !

Currently I am writing a macro with the flow like this:

1. Click => Save file as 1.spm => Click => save file as 2.spm.

I do the save manually by guide the mouse to save icon on my software and press key 1Y. I try to use for loop but I cannot get the i value than I want to loop become the word to use in key. 

This is my current code. It works but I want to use and understand for loop 

int w=win("NanoView - Nanosystem   *EXE Ver : 9, 0, 0, 1   *OCX Ver : 9, 0, 0, 1    *Comments : Standard  *Create Day : Copyright © 2010.11.30" "Afx:*" "" 0x8)
lef 1199 520 w 1
lef 41 59 0 1
key 1        => I want to increase this 1 to be 2, 3, 4 . . . after each loop.
key Y         
key AF4 

int w1=win("NanoView - Nanosystem *EXE Ver : 9, 0, 0, 1 *OCX Ver : 9, 0, 0, 1 *Comments : Standard *Create Day : Copyright © 2010.11.30" "Afx:*" "" 0x8)
lef 1199 520 w 1
lef 41 59 0 1
key 2
key Y
key AF4

.... go on to key 30 ....

Thank you for your support !


Messages In This Thread
Need support in iteration loop - by kensius272 - 03-02-2024, 08:05 AM
RE: Need support in iteration loop - by Gintaras - 03-02-2024, 12:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)