Autohotkey besoin d'une astuce

Autohotkey besoin d'une astuce - Divers - Programmation

Marsh Posté le 08-06-2007 à 11:01:33    

Voila je débute sur autohotkey.
 
J'ai réussi à me créer quelques trucs utiles mais je n'arrive pas à trouver comment nommé le clic molette.
 
Je voudrais tapé la commande du script pour faire en sorte que quand je clic sur la molette, sa revienne à la meme chose que quans je clic sur ctrl.
 
En bref imaginons un petit exemple: clic molette en restant appuyé + c   suivi de clic molette + v nous ferait un copier coller
 
merci de m'aider :)

Reply

Marsh Posté le 08-06-2007 à 11:01:33   

Reply

Marsh Posté le 09-06-2007 à 21:04:24    

up

Reply

Marsh Posté le 11-06-2007 à 18:59:26    

up

Reply

Marsh Posté le 12-06-2007 à 17:27:50    

up

Reply

Marsh Posté le 11-10-2007 à 11:24:18    

up de ~4 mois:
 

Citation :

Mouse Wheel Hotkeys [Windows NT/2000/XP or later]
Hotkeys that fire upon turning the mouse wheel are supported via the key names WheelDown and WheelUp. For example:
 
MButton & WheelDown::MsgBox You turned the mouse wheel down while holding down the middle button.
^!WheelUp::MsgBox You rotated the wheel up while holding down Control+Alt.In v1.0.43.03+, the built-in variable A_EventInfo contains the number of notches by which the wheel was turned, which is always at least 1. Integers higher than 1 typically occur when the wheel is being turned quickly (though how common this is depends on the granularity of the mouse hardware). Example usage: ~WheelDown::ToolTip %A_EventInfo%
 
Some of the most useful hotkeys for the mouse wheel involve alternate modes of scrolling a window's text. For example, the following pair of hotkeys scrolls horizontally instead of vertically when you turn the wheel while holding down the left Control key:
 
~LControl & WheelUp::  ; Scroll left.
ControlGetFocus, fcontrol, A
Loop 2  ; <-- Increase this value to scroll faster.
    SendMessage, 0x114, 0, 0, %fcontrol%, A  ; 0x114 is WM_HSCROLL and the 0 after it is SB_LINERIGHT.
return
 
~LControl & WheelDown::  ; Scroll right.
ControlGetFocus, fcontrol, A
Loop 2  ; <-- Increase this value to scroll faster.
    SendMessage, 0x114, 1, 0, %fcontrol%, A  ; 0x114 is WM_HSCROLL and the 1 after it is SB_LINELEFT.
returnFinally, since mouse wheel hotkeys generate only down-events (never up-events), they cannot be used as key-up hotkeys.
 

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed