Mouse+Keyboard combination key
Mouse+Keyboard combination key
Newbie here. I do have a problem regarding on making a mouse+keyboard combination key. lately, I messed up my right click because of my script because I'm trying to combine these keys RButton & Letter(S). I don't have any programming or scripting background for this. I need your help.
Last edited by gregster on 16 Jan 2022, 22:44, edited 1 time in total.
Reason: Topic moved from 'Forum Issues'.
Reason: Topic moved from 'Forum Issues'.
Re: Mouse+Keyboard combination key
Hallo,
try:
try:
Code: Select all
RButton & s::ComObjCreate("SAPI.SpVoice").Speak(A_ThisHotkey)
RButton Up::Click,% (A_PriorKey = "RButton")?"Right":0
Re: Mouse+Keyboard combination key
Thank you, sir! btw, what if I want to have a key trigger for that combination key? like I'd want to press letter V to toggle that combo key. What changes should I do for this script?
Re: Mouse+Keyboard combination key
Always these meaning riddles!
Do you want to switch the combination Hotkey RButton & s:: off/on with the Hotkey v::?
Then:
Do you want to switch the combination Hotkey RButton & s:: off/on with the Hotkey v::?
Then:
Code: Select all
v::Hotkey, RButton & s,% RBS:=!RBS?"Off":"On"
RButton & s::ComObjCreate("SAPI.SpVoice").Speak(A_ThisHotkey)
RButton Up::Click,% (A_PriorKey = "RButton")?"Right":0
Re: Mouse+Keyboard combination key
I see… Thank you sir!