Messagebox
      
Buttons

  • 0 or mb_ok = ok_button
  • 1 or mb_okcancel = ok/cancel_button
  • 2 or mb_abortretryignore = abort/retry/ignore_button
  • 3 or mb_yesnocancel = yes/no/cancel_button
  • 4 or mb_yesno = yes/no_button
  • 5 or mb_retrycancel = retry/cancel_button
  • 6 or mb_canceltryagaincontinue = cancel/try again/continue_button
  •       
          Type of box

  • 0   or mb_normal = normal box
  • 16 or mb_error = error box
  • 32 or mb_question= question box
  • 48 or mb_alert = alert box
  • 64 or mb_information= information box
  •       
    Default button

  • 0                           =First button
  • 256 or mb_default2 =Second button
  • 512 or mb_default3 =Third button
  •       
    Box
    box=buttons+type of box+default button

    example: if you want error box with reply/cancel button in type of box and with the second button as default (cancel) do
    5+16+256=277

    Code:
    Messagebox('my caption','my body text',277)
    or
    Messagebox('my caption','my body text', 5+16+256)

    Return

  • 1   or mb_res_ok        =Ok button
  • 2   or mb_res_cancel  =Cancel button
  • 3   or mb_res_abort    =Abort button
  • 4   or mb_res_repeat   =Repeat button
  • 5   or mb_res_ignore   =Ignore button
  • 6   or mb_res_yes       =Yes button
  • 7   or mb_res_no         =No button
  • 10 or mb_res_tryagain =Try again button
  • 11 or mb_res_continue =Continue button
  •       
     
    Gm Handle

      First you need to know about gm handle, normaly a window have one handle and it shows on taskbar the same text that it have in caption and everything you do is related with that handle
  • window_handle() - Gm function- the handle of the window use this for maximize the window and many other functions
  • task_andle() - Function created my me  - this is the handle of the taskbar icon ofgm window use it to minimize the window or for hide it from taskbar
  •  
     
    ShowWindow

      ShowWindow is a very cool functions and very usefull
    Synthax ShowWindow(handle,constant)

    Constants

  • 0   or sw_hide          =Hide the window
  • 5   or sw_show         =Show the window
  • 3   or sw_maximize   =Maximize the window
  • 9   or sw_restore       =Restore the window
  • 6   or sw_minimize    =Minimize the window
  • 1   or sw_normal       =Normalizethe window
  •       
    Return

  • 1   or true  =Operation sucesseful
  • 0   or false =Can't conclude the operation
  •       
    Examples
    ShowWindow(window_handle(),sw_maximize) //This will maximize the gm window change window_handle() with other handle and it will maximize the window
       
    ShowWindow(window_handle(),sw_restore) //This will restore the gm window change window_handle() with other handle and it will maximize the window
       ShowWindow( task_handle() ,sw_minimize) //This will minimize the gm window change task_handle() with other handle and it will maximize the window
       ShowWindow( task_handle() ,sw_hide) //This will hide the gm window from taskbar change task_handle() with other handle and it will maximize the window in other handles it will hide all the window
       ShowWindow( task_handle() ,sw_show) //This will show the gm window from taskbar change task_handle() with other handle and it will maximize the window in other handles it will hide all the window

    T
    here are more possibilities
     
        
     
    FindWindow

      Find window will return a handle of the window with the caption with the defined text
    Synthax FindWindow(caption text)
    Examples
         handle=FindWindow("Notepad - Untilited.txt")

     
    GetActiveWindow

      Return the active window
    Synthax GetActiveWindow()
    Examples
         handle=GetActiveWindow()

     
    SetActiveWindow

      Set the active window
    Synthax SetActiveWindow(handle)
    Examples
         handle=SetActiveWindow(window_handle() )
    Notes dont work , dunno why

     
    GetForegroundWindow

      Return the handle of the foreground window
    Synthax GetForegroundWindow()
    Examples
         handle=GetForegroundWindow()
     
    SetForegroundWindow

      Return the handle of the foreground window
    Synthax SetForegroundWindow(handle)
    Examples
         SetForegroundWindow(window_handle() )

     
    GetWindowText

      Return the handle of the foreground window
    Synthax GetWindowText( handle )
    Examples
         text=GetWindowText( window_handle() )
     
    SetWindowText

      Return the handle of the foreground window
    Synthax SetWindowTex(handle,text)
    Examples
         SetWindowTex( task_handle(),"yey it works")