dudulf93 Posted March 28, 2013 Share Posted March 28, 2013 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 More sharing options...
ileandros Posted March 29, 2013 Share Posted March 29, 2013 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 More sharing options...
dudulf93 Posted March 30, 2013 Author Share Posted March 30, 2013 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 Link to comment Share on other sites More sharing options...
FireFox Posted March 30, 2013 Share Posted March 30, 2013 Hi, Use the PixelGetColor/PixelSearch function, and maybe in addition WinGetPos. Br, FireFox. Link to comment Share on other sites More sharing options...
ileandros Posted March 31, 2013 Share Posted March 31, 2013 (edited) 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 March 31, 2013 by ileandros I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
FireFox Posted March 31, 2013 Share Posted March 31, 2013 (edited) oh I misunderstood @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 March 31, 2013 by FireFox Link to comment Share on other sites More sharing options...
dudulf93 Posted March 31, 2013 Author Share Posted March 31, 2013 (edited) 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( // 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 March 31, 2013 by Jos Link to comment Share on other sites More sharing options...
Developers Jos Posted March 31, 2013 Developers Share Posted March 31, 2013 Please read our forumrules , link in the right bottom corner. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts