Guillermo Posted October 24, 2005 Share Posted October 24, 2005 $glos1 = FileOpenDialog("Select Main Glossary", "::{450D8FBA-AD25-11D0-98A8-0800361B1103}", "Plain Text (*.txt)", 3) If I use that in my script, for no apparent reason the open dialog opens in the background. How can I give it the focus? If tried WinActivate(), but it seems that FileOpenDialog() pauses execution until it gets feedback from the user... Guillermo Link to comment Share on other sites More sharing options...
peethebee Posted October 24, 2005 Share Posted October 24, 2005 Hi! Yes, your script is paused if you have a fileOpenDialog open. You could run another script, that just has the line "WinActivate("File Open")" in it. Otherwise you could post your code, so that we can have a look on it. peethebee vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv Link to comment Share on other sites More sharing options...
CyberSlug Posted October 24, 2005 Share Posted October 24, 2005 Here's an old thread, but I think the workarounds still work:http://www.autoitscript.com/forum/index.php?showtopic=1788 Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
peter1234 Posted October 24, 2005 Share Posted October 24, 2005 I had that problem and solved it by using WinSetOnTop ( $title, "", 0 ). This prevents the GUI from always being on top. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now