12-07-2008, 05:07 AM
Ok I am working on an anti spammer file, and I have a combo box that when you click on it finds the yahoo windows that are open and puts them into the combo box; pretty simple right? But with the new Yahoo Messenger 9.0 I have run into a problem. The macro doesnt only put the yahoo windows into the combo box anymore; I have tried to work around this problem by replaceing text, hiding text, and i am stumped.. when i click on the combo box besides the yahoos it displays this in it with the yahoos. "Contact Information Card"; I have no clue what this is, but when yahoo isnt open it is not displayed so it is something in yahoo. But I cant figure it out, so maybe someone here can help me. Thank you very much for considering..
::ALSO THE DIALOG NAME IS DIALOG67::
::ALSO THE DIALOG NAME IS DIALOG67::
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
lpstr dd=
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 ComboBox 0x54230243 0x0 12 18 130 213 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030003 "" "" ""
str controls = "3"
str cb3
if(!ShowDialog(dd &DIALOG67 &controls)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,/ Add YM Windows To Combo
,case CBN_DROPDOWN<<16|3
,ARRAY(int) a; int i; str sc sn Final
,Final=""
,win("" "ATL:007BF380" "" 0 0 0 a)
,for(i 0 a.len)
,,sn.getwintext(a[i])
,,if(sn != "Yahoo! Messenger")
,,,if(Final != "")
,,,,Final+"[]"
,,,,Final+sn
,,,else
,,,,Final+sn
,if(Final = "")
,,Final = "(No Yahoo's)"
,ARRAY(str) b=Final
,b.sort(2)
,Final=b
,/Final.replacerx(" - Instant Message")
,TO_CBFill(lParam Final)
,case IDOK
,case IDCANCEL
ret 1