View previous topic :: View next topic |
Author |
Message |
microsoftv Advanced Cheater Reputation: 0
Joined: 07 Apr 2016 Posts: 82 Location: U.S
|
Posted: Sun Oct 02, 2016 10:57 am Post subject: How to simulate holding down a key |
|
|
Like the title says. Also I haven't found anything when searching about it, and i'm somewhat new.
|
|
Back to top |
|
|
Filipe_Br Master Cheater Reputation: 3
Joined: 07 Jan 2016 Posts: 272 Location: My house
|
Posted: Sun Oct 02, 2016 11:13 am Post subject: Re: How to simulate holding down a key |
|
|
doKeyPress(key) -- simulates a key press
Exemple:
Code: |
doKeyPress(VK_F) : simulates key F press |
|
|
Back to top |
|
|
microsoftv Advanced Cheater Reputation: 0
Joined: 07 Apr 2016 Posts: 82 Location: U.S
|
Posted: Sun Oct 02, 2016 12:05 pm Post subject: Re: How to simulate holding down a key |
|
|
Filipe_Br wrote: | doKeyPress(key) -- simulates a key press
Exemple:
Code: |
doKeyPress(VK_F) : simulates key F press |
|
Not a regular keypress, holding down a key, like if you hold down z = zzzzzzzzzzzzzzzzzzz.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Oct 02, 2016 3:09 pm Post subject: |
|
|
|
|
Back to top |
|
|
Filipe_Br Master Cheater Reputation: 3
Joined: 07 Jan 2016 Posts: 272 Location: My house
|
Posted: Sun Oct 02, 2016 3:15 pm Post subject: Re: How to simulate holding down a key |
|
|
Code: |
function _Key()
keyDown(VK_Z) -- Pressed Key Z
end
t=createTimer()
timer_setInterval(t, 1) --1ms
timer_onTimer(t, _Key) |
|
|
Back to top |
|
|
|