I'm trying to make a script that makes me: press enter > write this text/code [&AvT2LQEA] > then press enter again. It's for ingame purpose of showing off specific item.

So far I've tried to make it myself but it always misses the first [ and I'm ending up with sending only &AvT2LQEA] and the game won't recognize this code.

   1::
   SendInput {Enter up}
   SendInput {Enter down}
   Send [&AvT2LQEA]
   SendInput {Enter up}
   SendInput {Enter down}
   return

   q::
   ExitApp

Thanks to 3D1T0R the problem got solved.
I had to:
1. swap {Enter up} and {Enter down}
2. add Sleep before text - the game chat couldn't keep up with script

In the meantime, I figured out that making a script that paste already copied text works without lag/fps issues in the game and I could delete the Sleep.

I ended up with this scrpit that works perfectly for me

   1::
   SendInput {Enter down}
   SendInput {Enter up}
   Send, ^{vk56}
   SendInput {Enter down}
   SendInput {Enter up}
   return

   q::
   ExitApp
  • 1
    Turns out I had to add Sleep, 100 before sending text because it worked too fast for the game – Phish Sep 24 at 22:10
  • Also, you probably want to swap your {Enter up} and {Enter down} in both places you used them. – 3D1T0R Sep 24 at 22:29
  • Sorry, apparently you have to wait 48 hours to be able to accept your own answer (so that others have a chance to give answers which you [in two days] may decide are better). – 3D1T0R Sep 24 at 23:26
  • 1
    Also, solutions shouldn't be in the question. Instead you should mention your changes, explanations, and/or alternate solution(s) in your answer post. – 3D1T0R Sep 24 at 23:29

The answer is

1::
SendInput {Enter down}
SendInput {Enter up}

Sleep, 100
Send, [&AvT2LQEA]

SendInput {Enter down}
SendInput {Enter up}
return

q::
ExitApp

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.