firebug_50 Posted March 15, 2006 Share Posted March 15, 2006 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? Link to comment Share on other sites More sharing options...
death pax Posted March 15, 2006 Share Posted March 15, 2006 (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 March 15, 2006 by death pax Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 15, 2006 Moderators Share Posted March 15, 2006 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. 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. Link to comment Share on other sites More sharing options...
jpm Posted March 15, 2006 Share Posted March 15, 2006 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now