AnonymousX Posted March 1, 2017 Share Posted March 1, 2017 (edited) Hello, I'm wondering if there is a way to remove all windows with the status set on top? I know this can be easily done if you know the title or have the window as an active window, but I'm wondering if there is something that will apply to all windows at once to remove this status? Thanks Edited March 1, 2017 by AnonymousX Link to comment Share on other sites More sharing options...
spudw2k Posted March 1, 2017 Share Posted March 1, 2017 (edited) You can try using the WinList function in conjuntion with the _WinAPI_SetWindowPos function. https://www.autoitscript.com/autoit3/docs/functions/WinList.htm https://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_SetWindowPos.htm Edited March 1, 2017 by spudw2k AnonymousX 1 Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
AnonymousX Posted March 1, 2017 Author Share Posted March 1, 2017 15 hours ago, spudw2k said: You can try using the WinList function in conjuntion with the _WinAPI_SetWindowPos function. https://www.autoitscript.com/autoit3/docs/functions/WinList.htm https://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_SetWindowPos.htm Thanks that was exactly what I needed. For future reference here's the function I used: HotKeySet("^\", "Toggletop"); toggles window from being set to top Global $topstatus = 0; determins if a window has been set on top while true wend Func Toggletop() if $topstatus== 0 Then;No window is on top $hWnd = WinGetHandle("[ACTIVE]") $topstatus=1 WinSetOnTop($tWnd,"",$topstatus) Else;A window is on top $topstatus=0 $allwind = WinList() For $i=0 to UBound($allwind)-1 step 1 WinSetOnTop($allwind[$i][0],"",$topstatus) Next EndIf ;WinSetOnTop($window,"",1);My GUI that I permanently want on top EndFunc spudw2k 1 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