AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

rename visual studio windows

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
TimGradwell



Joined: 29 Jan 2010
Posts: 1

PostPosted: Fri Jan 29, 2010 4:00 pm    Post subject: rename visual studio windows Reply with quote

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
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 8255
Location: Maywood, IL

PostPosted: Fri Jan 29, 2010 10:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group