Jump to content

Need somethin diffrent then WinSetOnTop


bogQ
 Share

Recommended Posts

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.

 
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.

 
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...