Jump to content

How can i change caption label of the form


Recommended Posts

How can i change caption label of the form for another software ?

CODE
#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

Opt("TrayIconHide", 1)

Opt("WinTitleMatchMode", 2)

$Form1 = GUICreate("Start Notepad", 431, 97, -1, 125, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS))

GUISetState(@SW_SHOW)

While 1

$nMsg = GUIGetMsg()

RunWait("Notepad.exe")

GUICreate("Start Paint", 431, 97, -1, 125, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS))

RunWait("mspaint.exe")

Exit

WEnd

After working the mspaint.exe I want to change the title of the form with Start Paint, but I do not know how to perform.

Can you help me ?

Regards :)

Edited by maxrealqnx
Link to comment
Share on other sites

CODE
#include <StructureConstants.au3>

#include <GuiConstantsEx.au3>

#include <WindowsConstants.au3>

#include <WinAPI.au3>

Opt("TrayIconHide", 1)

Opt("WinTitleMatchMode", 2)

$Form1 = GUICreate("Start Notepad", 431, 97, -1, 125, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS))

GUISetState(@SW_SHOW)

While 1

$nMsg = GUIGetMsg()

RunWait("Notepad.exe")

GUIDelete($Form1)

$Form1 = GUICreate("Start Paint", 431, 97, -1, 125, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS))

GUISetState(@SW_SHOW)

RunWait("mspaint.exe")

Exit

WEnd

Is that it may be better ?

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...