Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] save as dialog is hard to automate
#3
I got acc object to work. I added more code and then it stopped working. I can't figure this out. Can you please look at this?


Macro Macro2
Code:
Copy      Help
spe 200

int i
int w=win("" "Mozilla*WindowClass" "" 0x4)
act w


'Af             ;; Alt+F
'"a"            ;; "a"

int w1=win("Save As" "#32770")
act w1



spe 300

;pick filename area
Acc a.Find(w1 "TEXT" "File name:" "class=Edit[]state=0x100000 0x20000040" 0x1005 2)


;pick save button
Acc a1.Find(w1 "PUSHBUTTON" "Save" "class=Button[]id=1" 0x1005 2)


'Z              ;; Esc
'Z              ;; Esc


act w
'Af             ;; Alt+F
'"a"            ;; "a"


1
act w1


Keeps telling me on the last line "Error (RT) in Macro2: window not found. ? "


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)