Problème avec la touche Shift

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: Problème avec la touche Shift

Problème avec la touche Shift

Post by Rakluh » 25 Jun 2019, 07:34

Salut, j'essaye de faire un auto-click en ahk, il fonctionne très bien mais quand j'appuie sur shift, ca spam la touche shift et j'ai besoin d'utiliser cette touche pour un jeu :problem:

Voila le code :

Code: Select all

; ----------------------- Commands

#SingleInstance, Force

; ----------------------- Commands

; ---------------------------------- Variables

Hotkey, *R, Toggle
Hotkey, *lbutton, Toggle
Hotkey, *rbutton, Toggle

; ---------------------------------- Variables

; ------------------------------------------------ Valide

ExpireDate := 20190626000000
if (a_now > ExpireDate)
    {
    Msgbox Tu ne peux plus acceder au logiciel!
    Exitapp
    }
	
; ------------------------------------------------ Valide

; ---------------------------------------------------------------------------------- Gui

if not A_IsAdmin
{
loop {
Try Run *RunAs "%A_ScriptFullPath%"
	 }
}

Gui, Add, Tab, x2 y-1 w470 h250 , NeyarAC|Autoclick|WTap|Settings|New
Gui, Font, S20 CDefault, Verdana
Gui, Add, Text, x175 y39 w270 h30 , NeyarAC
Gui, Add, Text, x175 y89 w300 h30 , By Neyar
Gui, Font, S10 CDefault, Verdana
Gui, Add, Text, x145 y139 w240 h30 , Version : 1.0.1 (EXPIRATION LE 26/06/19)
Gui, Tab, Autoclick
Gui, Add, Text, x185 y39 w170 h20 , Delay minimum
Gui, Add, Slider, x32 y59 w410 h30 vMin gMin ToolTip Range0-25, 16
Gui, Add, Text, x185 y99 w170 h20 , Delay maximum
Gui, Add, Slider, x32 y119 w410 h30 vMax gMax ToolTip Range0-75, 48
Gui, Add, Text, x195 y159 w240 h20 , Jitter Power
Gui, Add, Slider, x32 y179 w410 h30 Range0-10 ToolTip vJit gJit, 0
Gui, Tab, WTap
Gui, Add, Text, x84 y113 w300 h20 , Soon.
Gui, Tab, New
Gui, Add, Text, x84 y113 w300 h20 , Aucune new pour l'instant
Gui, Show, x725 y350 h250 w473, NeyarAC
Gui, Submit, NoHide
Return

; ---------------------------------------------------------------------------------- Gui

; -------------------------------------------------------------------------------- Fonctions

Min:
{
Gui, Submit, NoHide
}
return

Max:
{
Gui, Submit, NoHide
}
return

Jit:
{
Gui, Submit, NoHide
}
return

;Autoclick1
XButton2::Hotkey, *lbutton, Toggle
*lbutton::
Send,{lbutton}
While GetKeyState("lbutton", "P")
{
Send,{lbutton}
Random, delay, %Min%, %Max%
Sleep %delay%
Random, j1, %Jit%,-%Jit%
Random, j2, %Jit%,-%Jit%
MouseMove, %j1%, %j2%, 0, R
}
return

;Autoclick2
XButton1::Hotkey, *rbutton, Toggle
*rbutton::
Send,{rbutton}
While GetKeyState("rbutton", "P")
{
Send,{rbutton}
Random, delay, %Min%, %Max%
Sleep %delay%
Random, j1, %Jit%,-%Jit%
Random, j2, %Jit%,-%Jit%
MouseMove, %j1%, %j2%, 0, R
}
return

;Wtap
Alt::Hotkey, *R, Toggle
*R::
while GetKeyState("R", "P")
{
Send,{z up}
Sleep 2
Send,{z down}
}
return

; -------------------------------------------------------------------------------- Fonctions

GuiClose:
ExitApp

Top