Sign in to follow this  
Followers 0
cryton2707

help with gui please

5 posts in this topic

Im new to autoit and espcially the gui functions..

Can anyone please tell me the code to create a Gui with no border (no minimise icons or maximize icon or close icon) or with as little border as possible..

thanks


Welcome to the internet :) where men are men! Women are men! and 16 year old women are FBI agents!

Share this post


Link to post
Share on other sites



search help file for GuiCreate

from help file:

GUICreate ( "title" [,width [,height [,left (, top [,style [,ExtendedStyle] [,parent]]]]] )

try this but if you search the help file you'll find a mode that is more

to your liking:

GUICreate("a big window centered", 397, 450, -1, -1,$WS_DLGFRAME)

Share this post


Link to post
Share on other sites

Here is one with only a titlebar.

#include <GUIConstants.au3>

GUICreate("Information","300","100","","","0x00800000") ; Has titlebar only
GUISetState (@SW_SHOW)      ; will display an empty dialog box

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Here ya go

#include <GUIConstants.au3>
$Gui = GUICreate("Gui", @DesktopWidth, @DesktopHeight, -1, -1, $WS_POPUP)
GUISetState(@SW_SHOW)

While 1
   $msg = GUIGetMsg()
   
   If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

Enjoy

Edit : This has (no border no minimise icons or maximize icon or close icon and no title)

Edited by nova

Share this post


Link to post
Share on other sites

Might want to make it a bit smaller though:

#include <GUIConstants.au3>
$Gui = GUICreate("Gui", 400,100, -1, -1, "0x80000000")
GUISetState(@SW_SHOW)

While 1
  $msg = GUIGetMsg()
 
  If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

AutoIt3, the MACGYVER Pocket Knife for computers.

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