AutoHotkey Community

It is currently May 27th, 2012, 1:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: January 29th, 2010, 5:00 pm 
Offline

Joined: January 29th, 2010, 4:58 pm
Posts: 1
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 11:45 pm 
Online
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8667
Location: Salem, MA
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.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Bing [Bot], engunneer, JSLover, nimda, rbrtryn, sjc1000 and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group