Probleme pour fusionner 2 script

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Probleme pour fusionner 2 script

Re: Probleme pour fusionner 2 script

Post by Azza75 » 09 Feb 2021, 19:42

super merci beaucoup !!

Re: Probleme pour fusionner 2 script

Post by joedf » 09 Feb 2021, 17:18

Tu peux tout simplement faire ceci :thumbup:

Code: Select all

~*$XButton2::   
    Sendinput {LButton Down}{RButton Down}
    While GetKeyState("XButton2","P")
    {
    SendInput {d down}	    
    sleep, 500
    Sendinput {d up}
    sleep, 100
    Sendinput {q down}
    sleep, 500
    SendInput {q up}
    sleep, 100
    }
    Send {LButton Up}{RButton Up}
return

Probleme pour fusionner 2 script

Post by Azza75 » 09 Feb 2021, 11:53

Bonjour,

Je ne parviens pas a fusionner ces 2 scripts :

Le premier me permet de maintenir LButton et RButton

Code: Select all

~*$XButton2::
Sendinput {LButton Down}{RButton Down}
Keywait, XButton2	    
Send {LButton Up}{RButton Up}
return
Le second de créer une boucle pour les touche q et d

Code: Select all

~*$XButton2::   
    loop
    While GetKeyState("XButton2","P")
    {
    SendInput {d down}	    
    sleep, 500
    Sendinput {d up}
    sleep, 100
    Sendinput {q down}
    sleep, 500
    SendInput {q up}
    sleep, 100
    }

return
[Mod edit: [code][/code] tags added.]

J'aimerais donc que lorsque d’appuis sur XButton2 les 2 click de la souris sois enfoncer tout en répétant la boucle ci dessus.

Merci d'avance !!

Top