maxrealqnx Posted February 22, 2009 Posted February 22, 2009 (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 February 22, 2009 by maxrealqnx Visit My Website
maxrealqnx Posted February 22, 2009 Author Posted February 22, 2009 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 ? Visit My Website
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now