lugaru 0 Posted April 15, 2012 Share Posted April 15, 2012 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! Link to post Share on other sites
Moderators Melba23 3,799 Posted April 15, 2012 Moderators Share Posted April 15, 2012 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. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to post Share on other sites
lugaru 0 Posted April 15, 2012 Author Share Posted April 15, 2012 (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 expandcollapse popup#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 April 15, 2012 by lugaru Link to post Share on other sites
Moderators Melba23 3,799 Posted April 15, 2012 Moderators Share Posted April 15, 2012 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to post Share on other sites
Recommended Posts