Jump to content
Sign in to follow this  
dudulf93

Msgbox Filter

Recommended Posts

dudulf93

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

Share this post


Link to post
Share on other sites
ileandros

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.

Share this post


Link to post
Share on other sites
dudulf93

Exactly like that,I have a chat client,and Im reading the chat history,and when appears a chat they msgbox me,but I want to block the green or only accept the white

Share this post


Link to post
Share on other sites
FireFox

Hi,

Use the PixelGetColor/PixelSearch function, and maybe in addition WinGetPos.

Br, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
ileandros

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.

Share this post


Link to post
Share on other sites
FireFox

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

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
dudulf93

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

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×