Quantcast
Channel: Questions in topic: "command line"
Viewing all articles
Browse latest Browse all 123

How can I change the window title of my game during runtime? (multiple applications running).

$
0
0
Hello! I have a very experimental game I am building wherein the User will have 4 instances of the game running simultaneously. When I launch the instances of the game through the commandline, each instance is named "MyGame". **What I would like to be able to do is change each instance's window title name to be something like "Game01" "Game02" "Game03" and "Game04".** I can change the window name using the user32.dll "SetWindowText", but I am having trouble finding the window, because each window is named "MyGame" so user32.dll "FindWindow" seems to grab the first random one it finds. GetForegroundWindow doesn't seem to help either as I am launching all applications at once, so again, Im not sure which window I am getting first. Any thoughts?

Viewing all articles
Browse latest Browse all 123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>