Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help needed
#1
am writing a very simple macro, but I cannot figure out how to set up the most important function.
I have a screen with 10 prompts, each entry can have anywhere from 1-10 of those needing an answer (Y or N) to move to the next field. How can I make the script continue moving if the field is not needed?


How can I get my script to keep moving?

---- Recorded 7/8/2012 10:04:09 PM ----
'AT; 1.83 ;; Alt+Tab
int w1=act(win("Microsoft Excel - MergeMe0708" "XLMAIN"))
'Cc; 1.25 ;; Ctrl+C
'AT; 1.19 ;; Alt+Tab
int w2=act(win("MRI.GOT (G/LIVE.MIS/529/GMH) - SCRIPT - \\Remote" "Transparent Windows Client"))
'Av; 1.56 ;; Alt+V
'AT; 1.21 ;; Alt+Tab
act w1
'R Cc; 1.37 ;; Right Ctrl+C
'AT; 3.46 ;; Alt+Tab
act w2
'Av; 3.59 ;; Alt+V
'Y; 0.70 ;; Enter
'"y" Y; 0.57 ;; "y" Enter 2
4 win("Confirmation - \\Remote" "Transparent Windows Client")
'"y"; 2.73 ;; "y"
3
rep 100
act w2
'AT; 1.49 ;; Alt+Tab
act w1
'DL Cc; 1.00 ;; Down Left Ctrl+C
'AT; 1.02 ;; Alt+Tab
act w2
'Av; 1.59 ;; Alt+V
'AT; 1.16 ;; Alt+Tab
act w1
'R Cc; 1.68 ;; Right Ctrl+C
'AT; 1.66 ;; Alt+Tab
act w2
'Av; 1.91 ;; Alt+V
'Y; 0.74 ;; Enter
'"y" Y; 0.42 ;; "y" Enter
2
3 win("Confirmation - \\Remote" "Transparent Windows Client")
'"y" ;; "y"
---------------------------------------
3
#2
Quote:How can I make the script continue moving if the field is not needed?

How script can know whether the field is needed? Does the program shows a message box if the field is needed, and does not show if the field is not needed?
#3
The cursor will stop in the field.
#4
Where in the script it happens? And what happens? What exactly should the script do in that place?


Forum Jump:


Users browsing this thread: 2 Guest(s)