Jump to content

Msgbox Filter


Recommended Posts

Hi... Im new on autoit,Tried so many things different but no sucess. Anyway.

This is the code

Func BuildChatArray()

Local $array[1][2], $pointer, $item_base, $counter, $lastchatpointer, $Lastmsg

$lastchatpointer = _MemoryRead($LASTCHAT, $PROCESS_INFORMATION)

$Lastmsg = ($lastchatpointer - 10)

For $i=$Lastmsg to $lastchatpointer - 1

$pointer = _MemoryRead($ChatBase, $PROCESS_INFORMATION)

ReDim $array[$counter + 1][2]

$array[$counter][0] = _MemoryRead($pointer + $i * dec("1c") + 0x4, $PROCESS_INFORMATION, "Byte") ;SN

$array[$counter][1] = _MemoryRead(_MemoryRead($pointer + $i * dec("1c") + 0x8, $PROCESS_INFORMATION), $PROCESS_INFORMATION, 'wchar[100]') ;Name

if $array[$counter][0] = 0 Then

addhistory($array[$counter][1])

Do

addhistory($array[$counter][1])

SoundPlay("Alien.wav")

MsgBox(64, 'Finished', 'Y' & $array[$counter][1])

sleep(1000)

until 1 = 1

endif

$counter += 1

Next

_ArraySort($array, "", "", "", 6)

;_ArrayDisplay($array)

Global $ChatArray = $array

sleep(10)

EndFunc ;==>

They allert me when somebody talks on chat , and Pop up the message, and play a sound...

I have to block or not messsage and play the sound WHEN

^C8FF64 This appear.(that code to green collor)

OR

only accept that ^FFFFFF That white collor.

Thanks and sorry for my bad english

Link to comment
Share on other sites

Hi, i am not really sure if i understand you.

So you have a chat client, you are reading the chat history and you want to play a sound and block when someone writes on green and only accept the white letters???

If it is like this then just return the colour of the chat and compare to green or white

I feel nothing.It feels great.

Link to comment
Share on other sites

Since your returning the colour in memory i don't think you will need a pixel function.

So you want to block the message via memory.Is there a button which can help you block the message or a command(example: /block) which could block it.

Since we don't know which chat client it is we can't help that much...

Edit: I am finding some mistakes in the above script. Does it work for you?

Edited by ileandros

I feel nothing.It feels great.

Link to comment
Share on other sites

oh I misunderstood :ermm:

@dudulf93

Yes it would be better if you correctly explain what's the problem. (some screenshots ?)

Furthermore, please use [autoit][/autoit] tags when posting your code.

Edited by FireFox
Link to comment
Share on other sites

Here is au3...

First my english isnt good...

So... lets try be more specific....

This is a program how plays automatic for you in a game... All the functions on they I dont care. Only the chat... So I want to when somebody came close to me and say something alert me

But have 8 chat types

Local // 0

World // 1

Squad // 2

Faction // 3

Whisper // 4

Damage // 5

Combat // 6

Trade // 7

Notification // 8

System // 9

Gen. Info // 0xa

Local info(B) // 0xb

Local info© // 0xc

In my case I need the local its here if $array[$counter][0] = 0 Then that 0...

Okay.... but my problem the local chat is mixed, they appear some WHITE collor and GREEN collor... And the green ONLY annoyingme... By luck, When the msgbox appear they shows a collor...

So I've to block the gren collor , not play a sound and not show the message...

For how asked... yes the code is working like a charm, my only problem is that

Edited by Jos
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...