Sign in to follow this  
Followers 0
boltc

gui always on top

5 posts in this topic

i want my gui always in top.. cant find any code in the help.. can someone help me?

Share this post


Link to post
Share on other sites



Global Const $GUI_ONTOP = 2048


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

i want my gui always in top.. cant find any code in the help.. can someone help me?

Hi,

maybe have a look at WinSetOnTop in the help file, too.

So long,

Mega

Edited by th.meger

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Global Const $GUI_ONTOP = 2048

got a error..

ERROR: $GUI_ONTOP previously declared as a 'Const'

Global Const $GUI_ONTOP = 2048

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

how can i fix this?

Share this post


Link to post
Share on other sites

got a error..

ERROR: $GUI_ONTOP previously declared as a 'Const'

Global Const $GUI_ONTOP = 2048

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

how can i fix this?

See this

#include <GUIConstants.au3>
; == GUI generated with Koda ==
$Form1 = GUICreate("AForm1", 622, 448, 192, 125, -1, $WS_EX_TOPMOST)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;;;;;
    EndSelect
WEnd
Exit

Whenever I am not sure what to do with GUI's I play with Koda until it behaves as I want it to.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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  
Followers 0