lyledg Posted December 5, 2004 Posted December 5, 2004 (edited) Guys I am trying to open a "Filopendialog" with the "always on top attribute set" so that it opens above all others, and after reading through these forums found Valik's piece of code to work quite well, except for when using it in the following manner: GUICreate(" Appname", 700,680, @DesktopWidth/2-340, @DesktopHeight/2-380,-1, 0x00000218); WS_EX_ACCEPTFILES, $WS_EX_TOPMOST, $WS_EX_CLIENTEDGE Func FileODialog () Opt("WinWaitDelay", 1) WinActivate(AutoItWinGetTitle()) WinSetState(AutoItWinGetTitle(), "", @SW_HIDE) $file = FileOpenDialog("Choose file...", @ScriptDir & "\Jobs","All (*.cmd)") EndFunc Etc.. Problem I am having is because the GUICreate is set to 0x00000218 (WS_EX_ACCEPTFILES, $WS_EX_TOPMOST, $WS_EX_CLIENTEDGE), any window I open after the GUI is created, will always appear behind it. How do I overcome this? Using WinSetState does not seem to work for me. Also, I am trying to do the same for a *.CHM (help file) to have the same attribute when launched, but having the same result.. PS: The GUICreate HAS to have the $WS_EX_TOPMOST set, As the user needs to drag and drop files to this window Any Ideas? Cheers Edited December 5, 2004 by lyledg
CyberSlug Posted December 5, 2004 Posted December 5, 2004 You might be able to call WinSetOnTop($title, "", 1) after the window appears. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
lyledg Posted December 5, 2004 Author Posted December 5, 2004 Thanks Cyberslug, I forgot to mention that WinSetOnTop($title, "", 1) does not work either
lyledg Posted December 5, 2004 Author Posted December 5, 2004 Do any guru's out there see what I am doing wrong here, please? Cheers
lyledg Posted December 6, 2004 Author Posted December 6, 2004 Uh..Thanks Larry..I think? How do I go about getting around this problem then? I need to have the initial GUI set with the Topmost attribute, (the user needs to drag and drop files to it) and any other windows that are opened subsequently need to be on top of the 1st GUI? Sorry to be pain in asking so many questions...
this-is-me Posted December 6, 2004 Posted December 6, 2004 Set the window NOT on top before calling the dialog, msgbox or other, and then set it BACK on top afterwards. Who else would I be?
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