Bonjour, j'ai besoin d'aide pour faire un petit script que je pensais simple mais que au final je n'arrive pas à faire (pour info, je suis totalement débutant).
Du coup le script doit être comme ça:
-Clic gauche souris enfoncé pendant 8,5 sec
-clic bouton "Esc"
et faire cette boucle indéfiniment (juste avec une touche pour activer/désactiver ce script)
Merci
script pour click gauche enfoncé
Re: script pour click gauche enfoncé
Essaye ca?
Code: Select all
; script by joedf, help for furo
; https://www.autohotkey.com/boards/viewtopic.php?f=55&t=75500
runcode := 0
Pause
#T::
Pause, Toggle
runcode := !runcode
goto mainloop
return
mainloop:
while(runcode) {
Click, down
Sleep 8500
Click, up
Send {Esc}
}
return
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]
Re: script pour click gauche enfoncé
ça marche nickel, merci beaucoup
Re: script pour click gauche enfoncé
Parfait
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]
Re: script pour click gauche enfoncé
Je me demandais, le "runcode" à quoi il sert?
Re: script pour click gauche enfoncé
C'est une variable pour assurer que le code s’arrête correctement, mais pt c'est pas nécessaire...
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]
Re: script pour click gauche enfoncé
Ok merci, dans le doute je l'ai laissé. Après quelques jours d'essai, il y avais 2/3 bugs avec mon jeu, mais après cetains ajustement et rajout de "sleep", ça fonctionne nickel
Re: script pour click gauche enfoncé
Ahhh d'accord
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 49 guests