well,But still I find it doesn't work.
I test the code below:
Code: Select all
RButton up::
MouseClick,right
return
when I run the code in a new script file ,then I fount the context menu didn't come up.
why? it's a very strange puzzle.
maybe My ahk_L's vesion?
My ahk_L's version is the latest ,v1.1.28.
What I want is that when I hold Rbutton down,if I press other key ,such as wheelup,it will run the responsive function,without Context menu popup.
But If I losen the Rbutton without press any other key,the Context Menu will come up normally.
How can I complete this ?
I have searched the whole forum for my puzzle,then I find this topic below:
https://autohotkey.com/board/topic/5501 ... mporarily/
And I have tried the code below:
Code1:
Code: Select all
$RButton::
ScriptActive = 0
SetTimer, TRButton, 15
Return
$RButton Up::
SetTimer, TRButton, Off
ScriptActive = 1
Return
TRButton:
Send {RButton}
Return
code2:
Code: Select all
LButton & RButton::send,Keys{Home}
RButton & LButton::send,Keys{end}
$LButton::
if !("$Rbutton" = A_PriorHotkey && A_TimeSincePriorHotkey < 500)
Click Left
return
$RButton::
if !("$Lbutton" = A_PriorHotkey && A_TimeSincePriorHotkey < 500)
Click Right
return
unfortunately,I found the code was no use for me.Especially the code2,I found that My Lbutton and Rbutton were both invalid.
Finally I closed the process of Autohotkey.exe to exit the script.
I had tried many times.but failed at last.
So Any one know if there is a perfect soulution?
Thx for the reply!