08-17-2009, 03:20 AM
i have searched for this on here and found one thing about what i need. but the only problem is i dont know how to change it so it works with yahoo 9.0 or the newest yahoo messenger how can i change that all around to work with yahoo 9.0
Possible problems:
May not work with other versions of Yahoo Messenger.
Possibly, you will have to edit the trigger (if window name does not end with "Instant Message").
Gets only single line of message text. If a subsequent line matches "text: text" pattern, interprets it as new message.
MSHTML.IHTMLElement el
int i j n him nm
str text prevtext name msg
ARRAY(CHARRANGE) a
if(getopt(nthreads)>1) ret
him=val(_command)
if(!him)
him=win("Instant Message" "YSearchMenuWndClass")
if(!him) end "''Instant Message'' window must be opened" 4
rep
0.5
if(!IsWindow(him)) ret
if(!el) el=htm("HTML" "" "" him 0 0 32 10)
text=el.innerText; text.rtrim
if(text=prevtext) continue
nm=text.beg(prevtext)
i=prevtext.len
prevtext=text
if(!nm) continue
n=findrx(text "^(.+?): (.+?)$" i 12 a)
if(n<1) continue
for(j 0 n)
name.get(text a[1 j].cpMin (a[1 j].cpMax-a[1 j].cpMin))
msg.get(text a[2 j].cpMin (a[2 j].cpMax-a[2 j].cpMin))
YM_NewMessage name msg him
0.2