Assigner deux touches claviers a un bouton souris ? Topic is solved

Poser vos questions de programmation en AutoHotkey
Fkp

Assigner deux touches claviers a un bouton souris ?  Topic is solved

27 Jun 2018, 13:33

Bonjour,

Comme l'indique le titre de mon post je cherche la commande à taper afin d'assigner deux touches de mon clavier à mon clique gauche de souris. Je pense que c'est une commande pas trop difficile, mais je n'arrive pas à trouver ou je ne sais pas bien chercher. J'ai tenté LButton:: a + b en fait je cherche le signe correct a utiliser pour exprimer deux touches pressées en même temps.

Je vous remercie d'avance.
Bonne soirée.
User avatar
joedf
Posts: 8949
Joined: 29 Sep 2013, 17:08
Location: Canada
Contact:

Re: Assigner deux touches claviers a un bouton souris ?

28 Jun 2018, 21:47

qqch comme ca?

Code: Select all

~LButton::
sleep, 200
loop,
{
if GetKeyState("LButton","p") {
    Send {a down}{b down}
} else {
    Send {a up}{b up}
    break
}
sleep, 200
}
return
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x16GB Kingston FURY Beast - DDR4 3200 MHz | [About Me] | [About the AHK Foundation] | [Courses on AutoHotkey]
[ASPDM - StdLib Distribution] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library]

Return to “J'ai besoin d'aide”

Who is online

Users browsing this forum: No registered users and 19 guests