Sign in to follow this  
Followers 0
lugaru

Winsetontop Problem

4 posts in this topic

Hey,

if got a strange Problem - i have a GUI with a dropdown on it. Now i want the GUI also to be on Top (WinSetOnTop) But the Problem is, that the Gui is set onto the back of the GUI then ... I've already testet to set it in an IF with WinVisivble - that works some times but not always.

Someone got a hint for me?

Thanks!

Share this post


Link to post
Share on other sites



lugaru,

Welcome to the AutoIt forum. :)

Someone got a hint for me?

Yes, please post the code you are using - your explanation does not give us enough information to offer any sensible help. Plus you talk of a non-existent WinVisible function. ;)

When you post your code please use Code tags - put [autoit] before and [/autoit] after the code. :D

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hey Melba23, sorry here comes the code - and I ment the Function WinGetState sry ;)

Hope i Haven't forgot anything - the whole code has arround 3500 Lines

And yeah - I've made all includes on Top

#region Gui
$Form2 = GUICreate("Handel-Helferlein", 438, 125, $WinX, $WinY,  BitOR($WS_POPUP,$WS_THICKFRAME))
GUISetBkColor(0xF2F8FB)
$exitButton = GUICtrlCreateButton("X", 415, 1, 20, 18)
GUICtrlSetBkColor($exitButton,0xDE031C)
$Tab1 = GUICtrlCreateTab(0, 0, 440, 110)


$TabSheet1 = GUICtrlCreateTabItem("Handel")
$Label1 = GUICtrlCreateLabel("Ich gebe:", 8, 25, 130, 20)
$geben = GUICtrlCreateCombo("Ich gebe:", 8, 40, 130, 25)
GUICtrlSetData(-1, "----- Steine -----|Steine|Marmor|Kohle|Granit|----- Metalle -----|Kupfererz|Bronze|Eisenerz|Eisen|Stahl|Golderz|Goldbarren|Titanerz|Titan|----- Waffen -----|Bronzeschwerter|Eisenschwerter|Stahlschwerter|Damaszenerschwert|Bögen|Langbogen|Armbrust|Kanone|----- Holz -----|Nadelholz|Nadelholzbretter|Laubholz|Laubholzbretter|Edelholz|Edelholzbretter|----- Natur -----|Fische|Wasser|Getreide|Bier|Mehl|Brot|Fleisch|Würste|----- Sonstiges -----|Goldmünzen|Werkzeuge|Pferde|Salpeter|Schießpulver|Rad|Fuhrwerk|Kürbisse|Geschenke|Eier")
_GUICtrlComboBox_SetCurSel($geben, $aGeben)
$Label5 = GUICtrlCreateLabel("Stück", 146, 25, 30, 20)
$Input1 = GUICtrlCreateInput($aInput1,  146, 40, 30, 21)

//Some more code

GUICtrlCreateTabItem("")
$StatusBar1 = _GUICtrlStatusBar_Create($Form2)
_GUICtrlStatusBar_SetSimple($StatusBar1)
_GUICtrlStatusBar_SetText($StatusBar1, "Bereit")
GUISetState(@SW_SHOW)



While 1
    $nMsg = GUIGetMsg()

    If Not BitAND(WinGetState("Handel-Helferlein"), 8) Then
    WinSetOnTop("Handel-Helferlein","",1)
    EndIf
    Switch $nMsg

        //Some Cases

     EndSwitch
WEnd

Greetigns

Edited by lugaru

Share this post


Link to post
Share on other sites

lugaru,

Unfortunately you appear to have missed the Forum Rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. ;)

See you soon with a legitimate question I hope. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0