Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yahoo Contact List Text
#1
Hi - QM n00b here Big Grin

I have created a text input, and I want the person to input the name of a contact on their Yahoo (or MSN) contact list. This will then open up an Instant message, etc etc. I have yet to be able to get a handle on a list item to double click it, but I can do everything else.

Here is what I have so far:

Code:
Copy      Help
run "C:\Program Files\Yahoo!\Messenger\YahooMessenger.exe" "" "" "C:\Program Files\Yahoo!\Messenger"
double F=1.0; spe 10
int w1=act(win("Yahoo! Messenger with Voice (BETA)" "YahooBuddyMain"))
str r
str p = " - Instant Message"
inp r "yahoo ID"
p - r
dou 90 237 w1
Acc a=acc(r "LISTITEM" w1 "SysListView32" "" 0x1405)
str s=a.Description
out s    
int w2=act(win(p "YSearchMenuWndClass"))
key Cg
key "goodbye, thank you."
key Y
clo w2

Obviously this wont work, but I want String r to be the contact name so I can double click (or fire the event) so it opens up the IM window. At the moment, I have manually entered the co-ordinates for the mouse, in the
Code:
Copy      Help
dou 90 237 w1
line. This I want replaced with the Acc lines to get it automatically.

Any help will be VERY appreciated.

Many thanks,

Matt H

PS - Just tried doing the following:

Code:
Copy      Help
    Acc b=acc("Doc1.doc" "LISTITEM" "My Documents" "SysListView32" "" 0x1405)
    str z=b.Description
    out z    
    Acc a=acc("*" "LISTITEM" w1 "SysListView32" "" 0x1001)
    str s=a.Description
    out s
and both strings, z & s have nothing in them.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)