Jump to content

help with gui please


Recommended Posts

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!

Link to comment
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)

Link to comment
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.

Link to comment
Share on other sites

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
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...