04-28-2014, 12:46 AM
Hi, the macro stops by itself because my QM code does not see the "Open file window",
even if I click right on top of it with a lef command.
This is a piece of code that I inserted in a larger program that was running fine.
Even after pasting the file name manually, the rest of the code gets disrupted.
As a curiosity, the "Open file window" always opens up in a different temporary folder.
int w=wait(3 WV win("Describe tu producto - Windows Internet Explorer" "IEFrame"))
;; begins new code
Htm e=htm("INPUT" "picturesNative" "" w "0" 27 0x121 3)
out sImageUrl ;; test file name, which is a public variable
wait 3
e.Click
wait 3
int w1=win("Choose File to Upload" "#32770")
act w1
wait 5
key sImageUrl
key Ao ;; open file
wait 10
act w
;; ends new code
e=htm("INPUT" "title" "" w "0" 37 0x121 3)
e.SetText(sMercadoTitle)
even if I click right on top of it with a lef command.
This is a piece of code that I inserted in a larger program that was running fine.
Even after pasting the file name manually, the rest of the code gets disrupted.
As a curiosity, the "Open file window" always opens up in a different temporary folder.
int w=wait(3 WV win("Describe tu producto - Windows Internet Explorer" "IEFrame"))
;; begins new code
Htm e=htm("INPUT" "picturesNative" "" w "0" 27 0x121 3)
out sImageUrl ;; test file name, which is a public variable
wait 3
e.Click
wait 3
int w1=win("Choose File to Upload" "#32770")
act w1
wait 5
key sImageUrl
key Ao ;; open file
wait 10
act w
;; ends new code
e=htm("INPUT" "title" "" w "0" 37 0x121 3)
e.SetText(sMercadoTitle)