Sign in to follow this  
Followers 0
firebug_50

Anyone help please

4 posts in this topic

Does anyone know how to create a button without a GUI window behind it, so theres no window or title bar, just a button that can be clicked and that can be placed where ever on the screen?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Create a gui the same size as ur button

$Form1 = GUICreate("AForm1", 115, 34, 192, 125,$WS_POPUP,$WS_EX_TOOLWINDOW)
$Button1 = GUICtrlCreateButton("Button", 0, 0, 115, 34, 0)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
;;;;;;;
    EndSelect
WEnd
Exit

$WS_Popup makes it so you dont have the window bar and $WX_EX_TOOLWINDOW makes it so there isnt a title bar in the taskbar

Edited by death pax

Share this post


Link to post
Share on other sites

Does anyone know how to create a button without a GUI window behind it, so theres no window or title bar, just a button that can be clicked and that can be placed where ever on the screen?

Wow, I thought I'd seen them all... If Death Pax doesn't answer you question then ask it right.

[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

You have to understand that a button control need to be defined on a windows/GUI.

So the GUI creation cannot be avoid and death pax is suggesting the right way to do it. :)

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