Jump to content

Recommended Posts

Posted

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!

Posted

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.

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
Posted

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.

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
  • Recently Browsing   0 members

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