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 

Menu & Hotstring

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





PostPosted: Sun Aug 29, 2004 5:49 pm    Post subject: Menu & Hotstring Reply with quote

There seems to be a problem using a menu with a hotstring (v1.0.18).
The hotstring is called, not the menu. The following code demonstrates:

Menu amenu, add, anitem

::ahotstring::
MsgBox ahotstring
return

^m::Menu amenu, Show

anitem:
MsgBox anitem
return

The message box displays "ahotstring", with "anitem" not displayed at all.
The only way around it seems to be to create a dummy hotstring that simply returns.

Jason.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Sun Aug 29, 2004 9:08 pm    Post subject: Reply with quote

I ran the example you posted and it seems to work as expected and as documented. Can you verify by trying the example exactly as posted?

If there's still a problem, please let us know.
Back to top
View user's profile Send private message Send e-mail
jmh
Guest





PostPosted: Thu Sep 02, 2004 5:47 pm    Post subject: Reply with quote

I copied that code from a test script in the first place. But anyway, after
copying the posted code to a new script, I still get the same result:
press ^m to bring up the menu, select "anitem" and "ahotstring" is called,
not "anitem". Am I missing something?

Jason <jadoxa @ yahoo.com.au>
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Thu Sep 02, 2004 6:20 pm    Post subject: Reply with quote

That's strange (I still get the correct result on my system). Are you using v1.0.18? Which OS?

To help isolate this, you might try it on a different PC if you have easy access to one.
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Sat Sep 04, 2004 4:25 pm    Post subject: Reply with quote

Not another computer, but I dual boot XP/98, so I tried in 98 and it did
indeed work correctly. After going through all my startup programs I
discovered it to be a problem with Barclock. The weird thing is, it only
happens on startup - if it's loaded manually immediately after startup,
or exited and restarted, then AutoHotkey works fine. Since I'm probably
the only person using Barclock, there's nothing to worry about. Smile
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Sat Sep 04, 2004 6:09 pm    Post subject: Reply with quote

Thanks for following up on that.
Back to top
View user's profile Send private message Send e-mail
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