I recently tried this tool, I did several experiments that didn't work.
My problem is that when I press "f" it presses itself the "p" after, like automatically. Thought that a solution could be add a waiting time between theese keys.
I tried with a funcionality included in my SO, but it doesn't delays keystrokes between different keys.
You know a way to do this?
Thanks.
It is possible to add a delay time between keys?
-
- Posts: 4
- Joined: 28 Jun 2017, 20:30
Re: It is possible to add a delay time between keys?
Sleep is one way, and it's an easy way to set variation between keys.
But you can also use SetKeyDelay.
But you can also use SetKeyDelay.
-
- Posts: 4
- Joined: 28 Jun 2017, 20:30
Re: It is possible to add a delay time between keys?
Maybe is missing something?
$f::f
sleep, 100
Still presses p after f
$f::f
sleep, 100
Still presses p after f
Re: It is possible to add a delay time between keys?
Single line hotkey vs multi-line hotkey.
Not sure which one is supposed to be p (I assume you don't mean to use f remap to f). You might mean this?
Not sure which one is supposed to be p (I assume you don't mean to use f remap to f). You might mean this?
Code: Select all
f::
Sleep, 100
Send, p
return
-
- Posts: 4
- Joined: 28 Jun 2017, 20:30
Re: It is possible to add a delay time between keys?
well, I was intending to avoid the pressing of p by doing that, guess it doesn't works like that,
I tested this:
p::
Sleep, 200
It works, I press f and all good, is just that I wanted to do this with the "p" too, because when I push it occurs that pushes "f" (my keyboard is kind of crazy)
So I ran:
p::
Sleep, 200
F::
Sleep, 200
and none of theese keys works
I tested this:
p::
Sleep, 200
It works, I press f and all good, is just that I wanted to do this with the "p" too, because when I push it occurs that pushes "f" (my keyboard is kind of crazy)
So I ran:
p::
Sleep, 200
F::
Sleep, 200
and none of theese keys works
Re: It is possible to add a delay time between keys?
Oh, your keyboard is wonky. That paints a better picture for me. Here's what I'd do: (untested, I don't have the wonky keyboard)
The goal is you use f/p hotkeys with the ~ modifier, which allows the keys to act normally and also execute autohotkey commands. However, the immediate action is to turn on a hotkey for the other key which runs the ignore label. In this case, the ignore label takes no action, but suppresses the key (notice this hotkey doesn't have the ~ modifier). Then after 100 milliseconds, it'll reactivate the starting hotkey with the ~ modifier, which targets itself as a label.
Code: Select all
~f::
Hotkey, p, ignore
Sleep 100
Hotkey, ~p, ~p
return
~p::
Hotkey, f, ignore
Sleep 100
Hotkey, ~f, ~f
return
ignore:
return
-
- Posts: 4
- Joined: 28 Jun 2017, 20:30
Re: It is possible to add a delay time between keys?
In fact, the "bad keys" are f/p, space/4 and r/0, I ran that script on all and wow! it fixed like 90% of annoying keys, I guess the other percentage is in the wonky keyboard.
Thank you very much! Genius
Thank you very much! Genius
Who is online
Users browsing this forum: Google [Bot], kshitij90 and 358 guests