Sign in to follow this  
Followers 0
maxrealqnx

How can i change caption label of the form

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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 ?

Share this post


Link to post
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
Sign in to follow this  
Followers 0