Globalchat Game

Ask gaming related questions (AHK v1.1 and older)
virtuosi
Posts: 2
Joined: 12 Oct 2017, 07:00

Globalchat Game

12 Oct 2017, 07:03

I am playing MTA ( Multi theft auto ).
the global chat is bound on 'x', so when i press x it says Globalchat: and i can type
what i want is, when i press 'x' to be like this, Globalchat: ##ff0000ff0000, with the numbers also, so i can type after the numbers
any ideas how i can make that?
User avatar
Reloaded
Posts: 283
Joined: 25 Aug 2017, 08:48

Re: Globalchat Game

12 Oct 2017, 12:25

Like this ?

Code: Select all

x::

SendRaw, ##ff0000ff0000
return
TygerByte
Posts: 96
Joined: 12 Aug 2016, 05:22

Re: Globalchat Game

12 Oct 2017, 16:52

You probably want a little more like the following.. Also restrict the script to your game only with #IfWinActive so you can alt tab and do other things. The following script would let you still type x after sending your color code. Enter button would reset it so you can do it again.. I used enter because that's what I assume you would use to finish chatting.

Code: Select all

ImTyping := 0

~$x::
if (ImTyping = 0)
{
	SendRaw, ##ff0000ff0000
	ImTyping := 1
}
return

~$Enter::
ImTyping := 0
Return
virtuosi
Posts: 2
Joined: 12 Oct 2017, 07:00

Re: Globalchat Game

14 Oct 2017, 04:35

ImTyping := 0

~$x::
if (ImTyping = 0)
{
SendRaw, ##ff0000ff0000
ImTyping := 1
}
return

~$Enter::


this works but only for one time, i want it for every time i type.
TygerByte
Posts: 96
Joined: 12 Aug 2016, 05:22

Re: Globalchat Game

14 Oct 2017, 12:42

Bruh if you didn't notice by now there's more code. Scroll thru the code box to get it or use one of the 3 options in the codebox. You'll find Code: [Select all] [Expand] [Download]. Have a good one.
User avatar
Reloaded
Posts: 283
Joined: 25 Aug 2017, 08:48

Re: Globalchat Game

14 Oct 2017, 13:43

TygerByte wrote:Bruh if you didn't notice by now there's more code. Scroll thru the code box to get it or use one of the 3 options in the codebox. You'll find Code: [Select all] [Expand] [Download]. Have a good one.
Why you make the Script so complicated ?

the Script that i postet work so why this ? xD
TygerByte
Posts: 96
Joined: 12 Aug 2016, 05:22

Re: Globalchat Game

14 Oct 2017, 15:27

Reloaded wrote:
TygerByte wrote:Bruh if you didn't notice by now there's more code. Scroll thru the code box to get it or use one of the 3 options in the codebox. You'll find Code: [Select all] [Expand] [Download]. Have a good one.
Why you make the Script so complicated ?

the Script that i postet work so why this ? xD

Because your script doesn't let him type words with X
User avatar
Reloaded
Posts: 283
Joined: 25 Aug 2017, 08:48

Re: Globalchat Game

15 Oct 2017, 03:16

TygerByte wrote:
Reloaded wrote:
TygerByte wrote:Bruh if you didn't notice by now there's more code. Scroll thru the code box to get it or use one of the 3 options in the codebox. You'll find Code: [Select all] [Expand] [Download]. Have a good one.
Why you make the Script so complicated ?

the Script that i postet work so why this ? xD

Because your script doesn't let him type words with X
Oh really ? Than its ok xD
TygerByte
Posts: 96
Joined: 12 Aug 2016, 05:22

Re: Globalchat Game

15 Oct 2017, 04:28

Reloaded wrote:
TygerByte wrote:
Reloaded wrote:
TygerByte wrote:Bruh if you didn't notice by now there's more code. Scroll thru the code box to get it or use one of the 3 options in the codebox. You'll find Code: [Select all] [Expand] [Download]. Have a good one.
Why you make the Script so complicated ?

the Script that i postet work so why this ? xD

Because your script doesn't let him type words with X
Oh really ? Than its ok xD
Yea at first I ran into the same problem. I also did the same script you made. Once I used it I found that I couldn't use any words like exit or even type xD as an emote. With your script you block out all x keyboard inputs so that every time you tried to type xD it becomes ##ff0000ff0000D

Basically it removes your ability to even type x.
User avatar
Reloaded
Posts: 283
Joined: 25 Aug 2017, 08:48

Re: Globalchat Game

15 Oct 2017, 05:52

TygerByte wrote:
Reloaded wrote:
TygerByte wrote:
Reloaded wrote:
TygerByte wrote:Bruh if you didn't notice by now there's more code. Scroll thru the code box to get it or use one of the 3 options in the codebox. You'll find Code: [Select all] [Expand] [Download]. Have a good one.
Why you make the Script so complicated ?

the Script that i postet work so why this ? xD

Because your script doesn't let him type words with X
Oh really ? Than its ok xD
Yea at first I ran into the same problem. I also did the same script you made. Once I used it I found that I couldn't use any words like exit or even type xD as an emote. With your script you block out all x keyboard inputs so that every time you tried to type xD it becomes ##ff0000ff0000D

Basically it removes your ability to even type x.
Jeah, i know what was the error but i think you did´t chat :P

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 134 guests