AutoHotkey Community

It is currently May 27th, 2012, 9:37 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: RButton not working?
PostPosted: September 4th, 2006, 8:36 pm 
Offline

Joined: January 1st, 2006, 6:26 pm
Posts: 55
Hi.. I bet this is something silly but I can't figure it out..

I have a script that creates a shortcut for the right button. When right button is pressed, it runs another script that creates a GUI with buttons. One of the buttons is called Rclik and it activates Illustrator window and does "send, {RButton}", and then closes the GUI program.

What happens is that everything goes as it should except that right click does not seem to be sent, at least it does not get accepted by Illustrator, and Illustrator does not show context menu as it should.

I tried both {RButton} and {RButton down}{RButton up}, and I also tried adding '$' in front of the original shortcut in the first file, even though that shouldn't have helped anyway.

Please help.. :?

_________________
-AK


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 8:54 pm 
Offline

Joined: November 17th, 2005, 10:14 pm
Posts: 196
Location: Leicester, UK
Hello Rainy-Day

Have you tried inserting a small sleep before sending {RButton}?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 9:22 pm 
Offline

Joined: January 1st, 2006, 6:26 pm
Posts: 55
Yes, I did try it and also tried it now.. In fact, I noticed someting that's probably causing it, after WinActivate, Illustrator is activated but my program is still visible on top of it. So, for keyboard shortcuts that's fine cause they still go to active window, but for mouse click that's a problem - it goes to the inactive but visible window..

_________________
-AK


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2006, 9:24 pm 
Offline

Joined: January 1st, 2006, 6:26 pm
Posts: 55
Yay, that fixed it.. thx msgbox!

_________________
-AK


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: migz99, tomoe_uehara, Yahoo [Bot] and 62 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