Chat Input and Command Execution

Ask gaming related questions
User avatar
CrowexBR
Posts: 12
Joined: 15 Apr 2024, 06:57

Chat Input and Command Execution

Post by CrowexBR » 01 May 2024, 10:25

Hey everyone,

I'm working on an AutoHotkey script for SAMP (San Andreas Multiplayer), and I'm in need of some assistance. Here's what I'm trying to accomplish:

When I press the {5} key, I want the script to open the chat and wait until I press {Enter}.
Then, I'll type any number, let's say '11', '15', or 36, and press {Enter} again.

At this point, I want the script to copy the number I typed into the chat, paste it into a variable named 'playerID', and immediately execute the command '/search playerID' in the game.

Could someone please help me figure out how to implement this in AutoHotkey?
Any suggestions or guidance would be greatly appreciated.

Thanks in advance!

User avatar
CrowexBR
Posts: 12
Joined: 15 Apr 2024, 06:57

Re: Chat Input and Command Execution

Post by CrowexBR » 02 May 2024, 09:39

Help?

Post Reply

Return to “Gaming”