Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
883 connectés 

  FORUM HardWare.fr
  Programmation
  Divers

  Autohotkey besoin d'une astuce

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Autohotkey besoin d'une astuce

n°1572059
daninew
Posté le 08-06-2007 à 11:01:33  profilanswer
 

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 :)

mood
Publicité
Posté le 08-06-2007 à 11:01:33  profilanswer
 

n°1572798
daninew
Posté le 09-06-2007 à 21:04:24  profilanswer
 

up

n°1573414
daninew
Posté le 11-06-2007 à 18:59:26  profilanswer
 

up

n°1573959
daninew
Posté le 12-06-2007 à 17:27:50  profilanswer
 

up

n°1622142
phosphorel​oaded
Posté le 11-10-2007 à 11:24:18  profilanswer
 

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.
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Divers

  Autohotkey besoin d'une astuce

 

Sujets relatifs
besoin d aide en matlab pr la data acquisition toolboxBesoin aide migration serveur Access
Besoin d'aide afin d'orienter mon développementbesoin d'aide pour creation textbox et label en dynamique
[Divers] Quel éditeur de texte pour mon besoinPetit programme en VBA... besoin d´aide
Besoin d'aide pour un script de DoSGnu Scientific Library : besoin d'aide avec la génération de nombre al
Besoin d'aide pour un petit programme de rien... :)Shell-script (Besoin d'aide)
Plus de sujets relatifs à : Autohotkey besoin d'une astuce


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR