Jump to content
Sign in to follow this  
Guillermo

How to bring FileOpenDialog() to the foreground

Recommended Posts

Guillermo

$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... B)

Guillermo

Share this post


Link to post
Share on other sites
peethebee

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

Share this post


Link to post
Share on other sites
peter1234

I had that problem and solved it by using WinSetOnTop ( $title, "", 0 ). This prevents the GUI from always being on top.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×