 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
TimGradwell
Joined: 29 Jan 2010 Posts: 1
|
Posted: Fri Jan 29, 2010 4:00 pm Post subject: rename visual studio windows |
|
|
I want to rename visual studio windows. I have several open at once, each with the same project name appearing on the taskbar. I want to rename each of them individually to make them more easily identifiable.
This works on an explorer window, but fails on almost everything else.
| Code: | #f2::
InputBox NewName, Rename Window, Enter a new name for this window:
WinGet CurrentWindow, ID, A
WinSetTitle, ahk_id %CurrentWindow%, , %NewName%
return |
Any suggestions? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 8255 Location: Maywood, IL
|
Posted: Fri Jan 29, 2010 10:45 pm Post subject: |
|
|
Unfortunately, Visual studio tends to use bleeding edge or completely custom UI elements. I'm not sure, but the latest versions are probably using WPF or something equally fancy to display things, so they may not have a place to change the window title.
You might try getting the control list from the window to see if there is a hidden control that you can change that affects the title. You could also use the script to check the title after you set it to see if an invisible title bar was actually changed.
You could also see if errorlevel indicates that AHK couldn't set the title.
What version of Visual Studio are you using on what OS? I think I have 2008. _________________
(Common Answers) |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|