#include <GuiButton.au3>
#include <GUIConstantsEx.au3>#include <WindowsConstants.au3>
GUICreate ("Title", Width , Height, Left , Top)Title = عنوان النافذةWidth = عرض النافذةHeight = إرتفاع النافذةLeft = موقع النافذة من يسار الشاشةTop = موقع النافذة من أعلى الشاشة
GUISetState(@SW_SHOW)
While 1 ;---> show the window for ever$nMsg = GUIGetMsg() ;----> get the state of the window for everSwitch $nMsg ;----> switch the control state to $nMsg Case $GUI_EVENT_CLOSE ;----> case you clicked X to close the window Exit ;------> Exit your program here we can add the (Case) commands for the tools ;EndSwitch ;-----> end code that controls switching Wend ;-----> end code that shows the window
#include <GUIConstantsEx.au3>#include <WindowsConstants.au3>GUICreate("My Program", 235, 328, -1, -1)GUISetState(@SW_SHOW)While 1$nMsg = GUIGetMsg()Switch $nMsg Case $GUI_EVENT_CLOSE ExitEndSwitchWend