Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] save as dialog is hard to automate
#7
I tried adding a delay to ensure the save as window has enough time to show up and it still gives the same error.

Macro Macro2
Code:
Copy      Help
spe 200

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


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

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)


clo                ;;tried using 'ZZ and I still get the same error, "window not found"

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

1
act w1          ;;I can verify that the save as window does appear and act w1 still gives the "window not found" error


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)