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
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