(Script) Set a delay

Get help with using AutoHotkey and its commands and hotkeys
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

(Script) Set a delay

14 Jun 2018, 11:29

Hello, it's to know how to define a delay that will happen after every click sent by the left click
mshafer1
Posts: 27
Joined: 16 Jul 2017, 14:49
GitHub: mshafer1
Contact:

Re: (Script) Set a delay

14 Jun 2018, 11:34

Are you trying to delay the click? or delay an action?

I'm not sure on the first, but the latter would be

Code: [Select all] [Download] (Untitled.ahk)GeSHi © Codebox Plus

LButton::
Sleep, 500 ; delay 1/2 s
MsgBox, You clicked a little while ago!
return
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

14 Jun 2018, 12:10

To change the time you make when you click,
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

14 Jun 2018, 12:15

for example I will click, there will be a response time: 0.17s 0.115s, 0.125s, or other.

and it's about being able to change that
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

14 Jun 2018, 14:31

Its possible?
mshafer1
Posts: 27
Joined: 16 Jul 2017, 14:49
GitHub: mshafer1
Contact:

Re: (Script) Set a delay

14 Jun 2018, 14:41

Like this?


Code: [Select all] [Download] (Untitled.ahk)GeSHi © Codebox Plus

$^LButton::
; prevent user from moving mouse from where the click was triggered
BlockInput MouseMove
Sleep, 2000 ; delay 2 s
Click
BlockInput MouseMoveOff
return ; block the original click
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

14 Jun 2018, 15:02

The so when I click on my side, it will always be my time for me, but, in the PC or in a game, it will be the chosen time is it?

Thank you very much for your help, I will try this script
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

14 Jun 2018, 15:28

How do I test?
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

14 Jun 2018, 15:28

How do I test?
mshafer1
Posts: 27
Joined: 16 Jul 2017, 14:49
GitHub: mshafer1
Contact:

Re: (Script) Set a delay

14 Jun 2018, 15:39

Click the download link - if you have AHK installed, you should be able to run it - it's set to do a 2s delay whenever the CTRL + Click then click (you could take the ^ out of the trigger to make it just a click to trigger), click, try to move the mouse, try to click, note that it actually clicks after the 2 s - what I'm confused about is if putting a delay like this in is what you're looking for.
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

14 Jun 2018, 16:27

It's for a game or a game on the clique at the same time and it's the one who clicks faster who wins, do you have a script too to always have the click? for example always clicked in front of a person, it's for his I thought that the delay of the clicks it helps but if you have a better thing it can be well
mshafer1
Posts: 27
Joined: 16 Jul 2017, 14:49
GitHub: mshafer1
Contact:

Re: (Script) Set a delay

15 Jun 2018, 09:14

When you say the one that clicks faster wins, is it like a ready, set, go and you want to hit the button first? - in that case, no, that is much harder to do with just AHK - you need something to detect when it's time to click

Is it the person who gets the most click in the fastest wins? sure

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus



(untested) - see also https://autohotkey.com/board/topic/4877 ... lease-key/
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

15 Jun 2018, 09:16

that's when I click at the same time a person by chance and I want if it is possible a script that allows me to always click before otherwise thank you very much for the scripts the second script really changes the time but I do not know if I will always win if I click at the same time, if you have this kind of script it will be fine
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

15 Jun 2018, 09:20

The game is called Habbo, it uses Flash Player
wolf_II
Posts: 1975
Joined: 08 Feb 2015, 20:55

Re: (Script) Set a delay

15 Jun 2018, 09:37

Have you got access to the server? I think that's where a script would run if it's supposed to give priority to your clicks over other clicks.
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

15 Jun 2018, 10:17

No I do not have access to the server, but otherwise there is not a script that makes it so? even if it's not specifically for a game
wolf_II
Posts: 1975
Joined: 08 Feb 2015, 20:55

Re: (Script) Set a delay

15 Jun 2018, 10:24

Game or not. How do you get info about other people's clicks?
The server would get such info, and that's why I believe such a script will have to run there. I might be wrong.
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

15 Jun 2018, 10:40

Yes I know we can not get information from other clique but it's for his that I think for example the delay if we change it we can make sure to have a very fast deadline to have a quick click but I do not know if there is something else
mshafer1
Posts: 27
Joined: 16 Jul 2017, 14:49
GitHub: mshafer1
Contact:

Re: (Script) Set a delay

16 Jun 2018, 21:24

Because AHK would get notified by the same Windows event (if using the mouse), AHK cannot make you click with a faster response than the mouse.

If you were to grammatically decide when to click, you could do that on the order of machine time (much faster than a human ever will), but that is extremely not easy with Flash (flash is built to not be hackable in this and several similar ways).

Sorry, but can't really help you be faster at clicking.
Kenpt5u
Posts: 26
Joined: 06 Jun 2018, 12:15

Re: (Script) Set a delay

17 Jun 2018, 03:44

Ok, anyway thank you very much for your help, but otherwise this script:

$ ^ LButton ::
; prevent user from moving mouse from where the click was triggered
BlockInput MouseMove
Sleep, 2000; delay 2s
click
BlockInput MouseMoveOff
return; block the original click


works very well, is it possible to make it faster? and changed the key to activate it?

Return to “Ask For Help”

Who is online

Users browsing this forum: Flipeador, Froggie, TAC109 and 40 guests