Jump to content
Sign in to follow this  
bogQ

Need somethin diffrent then WinSetOnTop

Recommended Posts

bogQ

R there commands like TOPMOST priority lvl? lets say that i have 2 windows on top they r on top of all other windows but they arnt on top one to another only to other windows, i need something to be (your first on top, your scond) and that they dont mix

and is there command to set window to be the last window on desktop (like move it to background of all windows)

pls, if you know how do tell, or m i looking for something that is not posible to do?

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites
dbzfanatic

There was a discussion about this a bit back. Something about using WinActivate() and then do it in reverse order,as in activate the window you want on top last.

Share this post


Link to post
Share on other sites
bogQ

There was a discussion about this a bit back. Something about using WinActivate() and then do it in reverse order,as in activate the window you want on top last.

well i dont see why they done that, becose what will hapend if i have 20 windows ^^

is there way to get win list with listing there order?

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites
martin

well i dont see why they done that, becose what will hapend if i have 20 windows ^^

is there way to get win list with listing there order?

I think WInList lists windows in their Z order. If you have 2 windows A and B and you want A to be above B and B to be above all others apart from A, set them to topmost with WInSetOnTop in reverse order, ie B then A.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
bogQ

sry 4 not posting my codes

my problem is that i try to attached one gui window ("tools") to another normal window ("192"), but when i try to maximize new third random window when clicking on it in taskbar, gui window ("tools") is still visible becose his WinSetOnTop("Tools", "", 0) react after activating third window, so i tught that there is some command in autoit to set it on the next top of the ("192") window, so that "Tools" will go behinde 3 window :/

so i used

WinSetOnTop(WinGetTitle(""), "", 1)
            WinSetOnTop(WinGetTitle(""), "", 0)

to set active window 3 on top and detoped it and now 3 window will b infront of it. i whas hopeing for better solution if there whas some other commands for on top function like some kinde ontop lvl :/

While 1
    $r = WinGetState("192")
    Sleep(10)
;~  If WinGetTitle("") = "Tools" Then WinActivate("192")
    Select
        Case $r = 15 And $r <> $ls
            If $ws = "e" then
                WinSetState("Tools", "", @SW_SHOW)
                $ws = ""
            EndIf
            WinSetOnTop("Tools", "", 1)
            WinActivate("192")
            $ls = 15
        Case $r = 7 
            If $ws = "e" then
                WinSetState("Tools", "", @SW_SHOW)
                $ws = ""
            EndIf
            WinSetOnTop("Tools", "", 0)
            $ls = 7
            WinSetOnTop(WinGetTitle(""), "", 1)
            WinSetOnTop(WinGetTitle(""), "", 0)
        Case Else
            If $r <> $ls Then
            WinSetOnTop("Tools", "", 0)
            WinSetState("Tools", "", @SW_HIDE)
            $ws = "e"
            $ls = ""
            EndIf
    EndSelect
    $msg = GUIGetMsg()
    Sleep(1000)
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd

sry 4 edit this kboard is crazy :P

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites
martin

Lok at _WinAPI_SetWindowPos in WinAPI.au3.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
PsaltyDS

Lok at _WinAPI_SetWindowPos in WinAPI.au3.

In particular, the $hAfter parameter for that function. Another topic of interest: Z-Order, how to restore a window's position?

:P


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.