Jump to content

gui shownoactivate + NOT ACTIVATABLE by clicks?

Recommended Posts

hey guys,

i want to print text on the screen, while an other window is active. so i managed to get close to my goal by using a "GUISetState(@SW_SHOWNOACTIVATE)"

but there is one thing not going as i wish:

when i accidentaly click the label it gets activated, which i dont want, because i want the other window to stay active at any time...


so i need something to display my var on top of everything, but it should be NOT ACTIVATABLE


here is an example, when you click the green label, which displays the text, it gets activated (what i DONT want):

(press END to exit)

#include <GUIConstantsEx.au3>


Global $DisplayText = "!!!!!!!!!!!!!!!!!!! TEXT TO DISPLAY !!!!!!!!!!!!!!!!!!!     'END' -> exit"

HotKeySet("{END}", "Leave")

while 1

Func CreateDisplay()
   Global $GUI4LABEL = GUICreate("Display", 200, 200, 800, 3, 0x80000000, 128);$WS_POPUP = 0x80000000, $WS_EX_TOOLWINDOW = 128
    ;Create Label with text
    Global $Label = GUICtrlCreateLabel($DisplayText, 3, 3)    
    $cgp = ControlGetPos($GUI4LABEL, "", $Label);get label size
    WinMove($GUI4LABEL, "", $X, $Y, $cgp[2], $cgp[3]);form gui perfectly
    ;Show no activate

Func Leave()

i hope anyone of you got my intention and can help me, since im really stuck there

it would be possible to disable clicks while the gui is active, or when the gui is active ->WinActivate($mymainwindow)...

but that is not the smart way imo. it would be better to not even let the text/label/gui activate.


so is there any smart solution to print text on screen which will not activate when u click it????




Link to post
Share on other sites
  • Moderators


I see you did not read the Forum rules to which you were referred very carefully - you missed the part that says:


"Do not repost the same question if the previous thread has been locked - particularly if you merely reword the question to get around one of the prohibitions listed above"

Do NOT start another thread on this - our patience has limits. :naughty:


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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:


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


Link to post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...