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 

Change Button Names terrible problem...

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



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Sat Aug 21, 2004 6:09 am    Post subject: Change Button Names terrible problem... Reply with quote

This is the code I'm using...
Code:
ChangeButtonNames:
IfWinNotExist, AutoMagic Auto-Spinner , , return  ; Keep waiting.
SetTimer, ChangeButtonNames, off
WinActivate
ControlSetText, &Yes, &Yes
ControlSetText, &No, &No
ControlSetText, Cancel, &Manual


Quote:
ControlSetText, Cancel, &Manual


If you notice in the last line the 'Cancel' doesn't have the & sign before it because when I use the & sign it doesn't work, and if I remove the & sign form the other ControlSetText's then it doesn't work.

This worries me, why is it that the 'Cancel' won't accept the & sign before it like normal when other's can. Will this affect users with other computers? Please help me rectify the problem.
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Aug 21, 2004 12:15 pm    Post subject: Reply with quote

The & symbol is used to indicate which letter of the button is underlined (underlined letters represent keyboard shortcuts that can be used instead of pressing that button). Because the Cancel button lacks an underlined letter, there is no ampersand in that case.

By the way, the title of each button can be determined more exactly by looking in WindowSpy's "Visible Window Text" section.
Back to top
View user's profile Send private message Send e-mail
Titan



Joined: 11 Aug 2004
Posts: 5026
Location: imaginationland

PostPosted: Sat Aug 21, 2004 9:36 pm    Post subject: Thanks. Reply with quote

Thankyou.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   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