Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Issue with combobox in an app

$
0
0
Automating searches in Foxit Reader, and there's a dropdown that lets you select common folders to search in, and one of the options is "<Browse...>". I use ControlCommand() to select browse and a window "Browse For Folder" appears. This is what's interesting... my script pauses...

I put in a consolewrite() after the ControlCommand() and it nvr prints to the console. I even put an AdLibRegister() function prior to the ControlCommand() and THAT never runs either. The script DOES continue AFTER I close the "Browse For Folder" window... WTH!?

[ autoit ]      
Func _FoxitWindow()     Opt("WinTitleMatchMode", 2) ; Perform a string-in-string type search for window titles.     Opt("CaretCoordMode", 0) ; Define window coordinates relative to the defined window     AdlibRegister("_Browse")     ControlCommand("Foxit Reader", "", "[CLASS:ComboBox; INSTANCE:1]", "SelectString", "<Browse...>")     ;At this point the Browse For Window appears     consolewrite("test 1" & @CRLF) ; never populates EndFunc Func _Browse()     ConsoleWrite("BROWSE" & @CRLF) ; never populates     If WinExists("Browse For Folder") Then         AdlibUnRegister("_Browse")         ControlSetText("Browse For Folder", "", "[CLASS:Edit; INSTANCE:1]", "\\test\folder", 1)     EndIf EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>