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 

underlined letters in a menu item's name

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
umek



Joined: 02 Oct 2004
Posts: 74

PostPosted: Mon Nov 08, 2004 12:23 pm    Post subject: underlined letters in a menu item's name Reply with quote

hi,
the question mark gets not removed in the selected item.
Code:
Menu, App, Add, &Test, Test
Menu, App, Add
Menu, App, Add, Exit, Quit
Menu, App, NoStandard
Menu, App, Show
Return
;===================
Test:
MsgBox, %A_ThisMenuItem%
Return
;===================
Quit:
   ExitApp
Return


I think it is not intended ... I hope ...
regards umek
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Nov 08, 2004 1:24 pm    Post subject: Reply with quote

It's normal for the ampersand to be included in A_ThisMenuItem. You can remove them with:

StringReplace, ThisMenuItem, A_ThisMenuItem, &
MsgBox %ThisMenuItem%
Back to top
View user's profile Send private message Send e-mail
umek



Joined: 02 Oct 2004
Posts: 74

PostPosted: Mon Nov 08, 2004 2:57 pm    Post subject: Reply with quote

... nothing is impossible in AHK. Thx for the solution.

I'm still engaged to study your code which is searching for urls.
The recursion is my problem, but I will post in the relevant thread.

umek
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports 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