Titan
Joined: 11 Aug 2004 Posts: 5026 Location: imaginationland
|
Posted: Sat Aug 21, 2004 6:09 am Post subject: Change Button Names terrible problem... |
|
|
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. |
|
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Aug 21, 2004 12:15 pm Post subject: |
|
|
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. |
|