Repeating certain {key} and then other {key}

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Post Reply
tommyoxox
New User
Posts: 3
Joined: Fri May 22, 2020 1:26 pm

Repeating certain {key} and then other {key}

Post by tommyoxox »

I'm trying to make some macro like the title said
Is it possible to repeat certain key several times, then press other key and make this a loop?
For example i'm trying to press 'A' 20x times and then 'SPACE'
Thanks in advance
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Repeating certain {key} and then other {key}

Post by phil »

Well, if you want exactly 20a's followed by a space, why dont you just do:
aaaaaaaaaaaaaaaaaaaa{space}

If you want unlimited A's followed by a single space, then set to method 6 (repeat while button is down) and use:
a{OU}{SPACE}
That will repeat the A only while the button is held down and when you release the button, a space will be sent.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
tommyoxox
New User
Posts: 3
Joined: Fri May 22, 2020 1:26 pm

Re: Repeating certain {key} and then other {key}

Post by tommyoxox »

phil wrote: Fri May 22, 2020 1:41 pm Well, if you want exactly 20a's followed by a space, why dont you just do:
aaaaaaaaaaaaaaaaaaaa{space}

If you want unlimited A's followed by a single space, then set to method 6 (repeat while button is down) and use:
a{OU}{SPACE}
That will repeat the A only while the button is held down and when you release the button, a space will be sent.
I tried both suggestion but it doesn't work as i intended
Let me fix my question
My objection is to press 'a' repeatedly, and then after a precise amount of time i want to press 'SPACE'
Method 7 sticky will be awesome as i leave it there to work with a single button
User avatar
phil
Site Admin
Posts: 7627
Joined: Sun Apr 06, 2003 11:12 pm

Re: Repeating certain {key} and then other {key}

Post by phil »

Urm, then no I don't think that is possible.
There is a) no way to be 100% precise timing wise and more importantly, b) no way to specify a time at which to send the space relative to any other keys...

Unless... there is a tiny chance this <might> work...
{OD} means only action the following tag/key when the button is pressed (down).
{OR} means only action the following tag/key when repeating.
{OU} mean only action the following tag/key when releasing the button (up).

a{OD}{WAITMS:<timetowaitbeforespace}{OD}{SPACE}
or
{OD}{WAITMS:<timetowaitbeforespace}{OD}{SPACE}{OR}a

So this would, when you press the button down, send an 'a' and then delay <timetowaitbeforespace> and then a space.
In the mean time, while repeating, it would just send 'a' over and over...
But to be honest, I'm not sure that will work, its really pushing the boundaries of how simkeys was intended to be used!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
tommyoxox
New User
Posts: 3
Joined: Fri May 22, 2020 1:26 pm

Re: Repeating certain {key} and then other {key}

Post by tommyoxox »

phil wrote: Fri May 22, 2020 3:03 pm Urm, then no I don't think that is possible.
There is a) no way to be 100% precise timing wise and more importantly, b) no way to specify a time at which to send the space relative to any other keys...

Unless... there is a tiny chance this <might> work...
{OD} means only action the following tag/key when the button is pressed (down).
{OR} means only action the following tag/key when repeating.
{OU} mean only action the following tag/key when releasing the button (up).

a{OD}{WAITMS:<timetowaitbeforespace}{OD}{SPACE}
or
{OD}{WAITMS:<timetowaitbeforespace}{OD}{SPACE}{OR}a

So this would, when you press the button down, send an 'a' and then delay <timetowaitbeforespace> and then a space.
In the mean time, while repeating, it would just send 'a' over and over...
But to be honest, I'm not sure that will work, its really pushing the boundaries of how simkeys was intended to be used!
Yeah i'll just use the a{OU}{SPACE} suggestion
Thank you so much
Post Reply