Opening a file using AutoIt -
Opening a file using AutoIt -
i using autoit script automate application. next command running:
fileopendialog ("file upload", "c:\documents , settings\abhishek.kumar\desktop\quadrillion work", "images (*.jpg;*.bmp)", "","westf12433.jpg","" ) send("{enter}")
the first command works opens file open dialog westf12433.jpg file selected. want click on open button. how can it?
send("{enter}")
not working.
send not method requires window focused, can't guarantee. have posted, best method this:
controlclick("file upload", "", "button1")
edit in response comments:
your problem: fileopendialog blocking execution. need think of though autoit reads line, runs it, reads next.
in case: autoit reads line 1. creates fileopendialog , waits close it. 1 time been closed reads next line, , runs that.
try following: create 2 au3 files, , set first line in 1.au3 , sec in 2.au3. run them in order , see happens. send struggle dialog doesn't have focus, controlclick versions should work.
autoit
Comments
Post a Comment