A Button pressed just for 250MS in a game

Get help with using AutoHotkey and its commands and hotkeys
BrightLeaN
Posts: 1
Joined: 26 May 2017, 18:06

A Button pressed just for 250MS in a game

26 May 2017, 18:36

I Cant get it work
Hello, so i decided to make a "Auto Farm" AHK for a game i want it to press the Button A but only for 250 (sleep) i only know the "command" {a down} but i want that it just goes for 250ms but i want that if the AHK walked to the left ( A Button ) that it types {T}{/}sell all and then it repeats 10 Times i hope i can get some help how to make a Button pressed for 250ms not forever Answer in german or english
when i do Send a nothing happend in the game but why ? im a newbie :d
{
F::
{
send a
send {a down} {T}{/}sell all
}

return
}
neomulemi6
Posts: 216
Joined: 30 Jun 2016, 06:01

Re: A Button pressed just for 250MS in a game

27 May 2017, 01:05

Both should produce the same result. Pick your poison.

Code: Select all

Send {a down}
Sleep 250
Send {a up}

Code: Select all

SetKeyDelay, 0, 250
Send a

Return to “Ask For Help”

Who is online

Users browsing this forum: mikagenic, mikeyww, TXShooter, zKade and 35 guests