Macro script help
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
Macro script help
When I press the following buttons I want it to type out a phrase and press enter as quickly as possible:
When I press F1 I want it to type ":pull x" and press enter after
When I press F2 I want it to type ":hit x" and press enter after
When I press F3 I want it to type ":locktarget" and press enter after
When I press F4 I want it to type "@x @x @x @x @x @x @x @x @x @x" and press enter after
When I press F5 I want it to type ":throwknife x" and press enter after
When I press Esc I want it to type ":escort x" and press enter after
When I press Del I want it to type ":heal" and press enter after
I want all of these to happen instantly so there is no delay.
I edited this post to make it more clearer.
These macros need to work while holding shift.
When I press F1 I want it to type ":pull x" and press enter after
When I press F2 I want it to type ":hit x" and press enter after
When I press F3 I want it to type ":locktarget" and press enter after
When I press F4 I want it to type "@x @x @x @x @x @x @x @x @x @x" and press enter after
When I press F5 I want it to type ":throwknife x" and press enter after
When I press Esc I want it to type ":escort x" and press enter after
When I press Del I want it to type ":heal" and press enter after
I want all of these to happen instantly so there is no delay.
I edited this post to make it more clearer.
These macros need to work while holding shift.
Last edited by gregster on 19 Jul 2021, 18:07, edited 4 times in total.
Reason: I merged your two topics which are obviously about the same thing.
Reason: I merged your two topics which are obviously about the same thing.
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
Re: Macro script help
Can someone pls make a script for this ASAP?
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
keyboard macro script help (Simple fix)
Im usning this scipt for a game:
F1::Send, `:pull x
F2::Send, `:hit x
F3::Send, `:locktarget
F4::Send, `@x @x @x @x @x @x @x @x @x @x
F5::Send, `:throwknife x
Esc::Send, `:escort x
Del::Send, `:heal x
and I need it to press enter everytime i press a macro and I need it to be instant. For example, I press F1 and it instantly types :pull x and enter button
Also theses macros dont work while I hold shift so can you make them work while holding shift
F1::Send, `:pull x
F2::Send, `:hit x
F3::Send, `:locktarget
F4::Send, `@x @x @x @x @x @x @x @x @x @x
F5::Send, `:throwknife x
Esc::Send, `:escort x
Del::Send, `:heal x
and I need it to press enter everytime i press a macro and I need it to be instant. For example, I press F1 and it instantly types :pull x and enter button
Also theses macros dont work while I hold shift so can you make them work while holding shift
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
Re: keyboard macro script help (Simple fix)
I changed it to this:
Shift & F1::Send, `:pull x
Shift & F2::Send, `:hit x
Shift & F3::Send, `:locktarget
Shift & F4::Send, `@x @x @x @x @x @x @x @x @x @x
Shift & F5::Send, `:throwknife x
Shift & Esc::Send, `:escort x
Shift & Del::Send, `:heal x
But when i use it, you can see each letter being typed out but i dont want that, i want it to be instant (like when you copy and paste stuff). Also, I need to make it press enter after each one I press
Shift & F1::Send, `:pull x
Shift & F2::Send, `:hit x
Shift & F3::Send, `:locktarget
Shift & F4::Send, `@x @x @x @x @x @x @x @x @x @x
Shift & F5::Send, `:throwknife x
Shift & Esc::Send, `:escort x
Shift & Del::Send, `:heal x
But when i use it, you can see each letter being typed out but i dont want that, i want it to be instant (like when you copy and paste stuff). Also, I need to make it press enter after each one I press
Re: Macro script help
You could try
+ acts as the Shift modifier - this way is preferable.
If SendInput mode doesn't work for your game, you might try to set the clipboard to the string you want, and paste it via send ^v.
Code: Select all
+F1::SendInput, `:pull x{enter}
If SendInput mode doesn't work for your game, you might try to set the clipboard to the string you want, and paste it via send ^v.
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
Re: Macro script help
Thanks it works. Would you say that the clipboard thing would enter the phrase faster than the sendinput or are they same speed because the game that I play, every milisecond countsgregster wrote: ↑19 Jul 2021, 18:11You could try+ acts as the Shift modifier - this way is preferable.Code: Select all
+F1::SendInput, `:pull x{enter}
If SendInput mode doesn't work for your game, you might try to set the clipboard to the string you want, and paste it via send ^v.
Re: Macro script help
Probably pasting is faster, but if there's a noticeable difference for such short strings, I don't know. I am no gamer, and I usually don't look at milliseconds.
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
Re: Macro script help
It might depend on the game
or perhaps:
Code: Select all
+F1::
clipboard := ":pull x`n"
SendInput ^v
return
Code: Select all
+F1::
clipboard := ":pull x"
SendInput ^v
; sleep 10 ; optional
SendInput {Enter}
return
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
Re: Macro script help
which is faster?gregster wrote: ↑19 Jul 2021, 18:41or perhaps:Code: Select all
+F1:: clipboard := ":pull x`n" SendInput ^v return
Code: Select all
+F1:: clipboard := ":pull x" SendInput ^v ; sleep 10 ; optional SendInput {Enter} return
Re: Macro script help
No idea - might depend on the game, if it works at all. Potentially the first one.
Try it and see...
Try it and see...
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
Re: Macro script help
Ok thanks just 1 more question. I want macros for f2,f3,f4 etc... so do i leave a space under it and type the script again for example:
+F1::
clipboard := ":pull x`n"
SendInput ^v
return
+F2::
clipboard := ":hit x`n"
SendInput ^v
return
Re: Macro script help
Yes, that's a way. You could wrap that into a function, I guess. It wouldn't be faster, just less lines.
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
-
- Posts: 33
- Joined: 26 Jun 2021, 07:29
Re: Macro script help
The first script out of the 2 doesnt enter when i press f1 @gregstershush12345 wrote: ↑19 Jul 2021, 18:43which is faster?gregster wrote: ↑19 Jul 2021, 18:41or perhaps:Code: Select all
+F1:: clipboard := ":pull x`n" SendInput ^v return
Code: Select all
+F1:: clipboard := ":pull x" SendInput ^v ; sleep 10 ; optional SendInput {Enter} return