09-01-2013, 03:52 AM
Here probably need to:
Remove "button @ 100% (About, RGB/8) *" or just " *".
Remove " (100%)".
If sometimes the 'Save' dialogs are shown with a longer delay, change code like "wait(6" to eg "wait(60".
If sometimes does not enter text, maybe the macro is too fast. For example, if it's a function. It should be macro, not function. In any case, try to add wait or spe.
Here is how the macro could look after editing. May also need to insert 'wait' commands in some other places.
Macro Macro2143
Remove "button @ 100% (About, RGB/8) *" or just " *".
Remove " (100%)".
If sometimes the 'Save' dialogs are shown with a longer delay, change code like "wait(6" to eg "wait(60".
If sometimes does not enter text, maybe the macro is too fast. For example, if it's a function. It should be macro, not function. In any case, try to add wait or spe.
Here is how the macro could look after editing. May also need to insert 'wait' commands in some other places.
Macro Macro2143
spe 500 ;;set to wait 500 ms after keyboard and mouse commands. Default is 100 for macros, 0 for functions.
;---- Recorded 8/31/2013 10:31:28 PM ----
int w1=act(win("Adobe Photoshop CS4 Extended -" "Photoshop"))
'Cs ;; Ctrl+S
int w2=wait(30 win("Save for Web & Devices" "PSExport_WindowClass"))
lef 630 675 w2 1 ;;push button 'Save'
int w3=wait(30 win("Save Optimized As" "#32770"))
1 ;;wait 1 s
'"about" ;; "about"
lef 596 498 w3 1 ;;push button 'Save'
int w4=win("" "OWL.Dock")
dou 74 447 w4 1 ;;PSViewC
1 ;;wait 1 s
'"Contact" ;; "Contact"
lef 74 447 w4 1 ;;PSViewC
'Cs ;; Ctrl+S
int w5=wait(30 win("Save for Web & Devices" "PSExport_WindowClass"))
'Y ;; Enter
int w6=wait(30 win("Save Optimized As" "#32770"))
1
'"contact" ;; "contact"
lef 590 507 w6 1 ;;push button 'Save'
dou 71 453 w4 1 ;;PSViewC
1 ;;wait 1 s
'"Email" ;; "Email"
lef 79 452 w4 1 ;;PSViewC
'Cs ;; Ctrl+S
int w7=wait(30 win("Save for Web & Devices" "PSExport_WindowClass"))
1 ;;wait 1 s
'Y ;; Enter
int w8=wait(30 win("Save Optimized As" "#32770"))
1 ;;wait 1 s
'"emaiil" BBB "il" ;; "emaiil" Backspace Backspace Backspace "il"
lef 599 506 w8 1 ;;push button 'Save'
;----------------------------------------