Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yahoo! Messenger
#1
I'm using Yahoo! Messenger 9.0.ver. 9.0.0.2162 , And the code i have posted below, doe's not send the YM Windows or Im's inside ?

Function [b]Yahoo

Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
lpstr YM=
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 153 78 "Dialog"
;1 Button 0x54030001 0x4 12 46 48 14 "OK"
;2 Button 0x54030000 0x4 92 46 48 14 "Cancel"
;3 ComboBox 0x54230243 0x0 12 18 130 213 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030109 "" "" ""
str controls = "3"
str cb3
if(!ShowDialog(YM &Yahoo &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("" "" "YAHOOMESSENGER" 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


Can you fix this for me please because i'm not sure what i've done wrong ? It's works fine for YM 8, but i do not wanna use that version..
[/b]
#2
Yeah i've been trying for hours since i've last posted this and yet, i've not have any success in getting the Wins/Ims inside the ComboBox..... Im running, Windows XP so is there anyone out there that can fix this for me, this is very urgent that i get this pretty asap..... Tims is of the essence for my projects...
#3
Yahooooo
#4
With all due respect Gintaras, i wouldn't of posted again if i knew i already posted before about this! Reason im posting again is because yahoo updated again and therefore the codes need updating because the codes i have above, no longer work. I do not know who else to ask but asking here for expert advice...
#5
When something does not work, insert out in various places to see values of variables, and you will find the reason. For example, out a.len will be 0 if win does not find matching windows, then maybe exe name incorrect, etc
#6
All that i've asked on here before and how long i been using qm, i've learned to do exactly what you've said! This how ever is no easy task for a medium rookie to accomplish like my self! I first posted this at 1:01 am and i then posted again at 7;33 am, during that time frame in the middle, i've been looking to why the codes doe's not work! I'm not an expert like your self so im only asking what is wrong with it. I compared my previous versions to it and it works for YM 8, but im more of an Up-to-date kinda guy. I came back here again because i need help with it, if thats even possible..
#7
The code is correct, I don't know why does not work. Maybe someone that has YM9 will help you.
#8
Function YahooCombo
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str cb3
if(!ShowDialog("YahooCombo" &YahooCombo &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 152 78 "Yahoo! Combo"
;1 Button 0x54030001 0x4 14 48 48 14 "OK"
;2 Button 0x54030000 0x4 88 48 48 14 "Cancel"
;3 ComboBox 0x54230243 0x0 12 12 126 213 ""
;END DIALOG
;DIALOG EDITOR: "" 0x203000D "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case CBN_SELENDOK<<16|3
,_i=CB_SelectedItem(lParam)
,case CBN_DROPDOWN<<16|3
,,ARRAY(int) a; int i; str sc sn Final
,,Final=""
,,win("" "YM" "YAHOOMESSENGER" 1 1 1 a)
,,for(i 0 a.len)
,,,sn.getwintext(a[i])
,,,if(sn != "Yahoo! MESSENGER")
,,,,if(Final != "i")
,,,,,Final+"[]"
,,,,,Final+sn
,,,,else
,,,,,Final+sn
,,if(Final = "")
,,,Final = "(No Yahoo Window Is Open)"
,,ARRAY(str) b=Final
,,b.sort(3)
,,Final=b
,,TO_CBFill(lParam Final)
,case IDOK
,case IDCANCEL
ret 1






i gathered this info and its not correct, its adding stuff that shouldnt be there
#9
Function YahooCombo
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str cb3
if(!ShowDialog("YahooCombo" &YahooCombo &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 152 78 "Yahoo! Combo"
;1 Button 0x54030001 0x4 14 48 48 14 "OK"
;2 Button 0x54030000 0x4 88 48 48 14 "Cancel"
;3 ComboBox 0x54230243 0x0 12 12 126 213 ""
;END DIALOG
;DIALOG EDITOR: "" 0x203000D "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case CBN_SELENDOK<<16|3
,_i=CB_SelectedItem(lParam)
,case CBN_DROPDOWN<<16|3
,,ARRAY(int) a; int i; str sc sn Final
,,Final=""
,,win("" "YM" "YAHOOMESSENGER" 1 1 1 a)
,,for(i 0 a.len)
,,,sn.getwintext(a[i])
,,,if(sn != "Yahoo! MESSENGER")
,,,,if(Final != "i")
,,,,,Final+"[]"
,,,,,Final+sn
,,,,else
,,,,,Final+sn
,,if(Final = "")
,,,Final = "(No Yahoo Window Is Open)"
,,ARRAY(str) b=Final
,,b.sort(3)
,,Final=b
,,TO_CBFill(lParam Final)
,case IDOK
,case IDCANCEL
ret 1






i gathered this info and its not correct, its adding stuff that shouldnt be there
#10
Function YahooCombo
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str controls = "3"
str cb3
if(!ShowDialog("YahooCombo" &YahooCombo &controls)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 152 78 "Yahoo! Combo"
;1 Button 0x54030001 0x4 14 48 48 14 "OK"
;2 Button 0x54030000 0x4 88 48 48 14 "Cancel"
;3 ComboBox 0x54230243 0x0 12 12 126 213 ""
;END DIALOG
;DIALOG EDITOR: "" 0x203000D "" "" ""

ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case CBN_SELENDOK<<16|3
,_i=CB_SelectedItem(lParam)
,case CBN_DROPDOWN<<16|3
,,ARRAY(int) a; int i; str sc sn Final
,,Final=""
,,win("" "YM" "YAHOOMESSENGER" 1 1 1 a)
,,for(i 0 a.len)
,,,sn.getwintext(a[i])
,,,if(sn != "Yahoo! MESSENGER")
,,,,if(Final != "i")
,,,,,Final+"[]"
,,,,,Final+sn
,,,,else
,,,,,Final+sn
,,if(Final = "")
,,,Final = "(No Yahoo Window Is Open)"
,,ARRAY(str) b=Final
,,b.sort(3)
,,Final=b
,,TO_CBFill(lParam Final)
,case IDOK
,case IDCANCEL
ret 1






i gathered this info and its not correct, its adding stuff that shouldnt be there
#11
Sorry didnt mean to post it 3 times. I asked my friends and they told me to come here for help. Aint that something. lol
#12
I'm very disappointed Gintaras. I come to you because i know, well i thought you'd help me and all. Your manual thingy says to come here for support and thats what im doing and when i get support, i'm told to ask my friends for help, those of which that have little knowledge in qm. This is why i dont really buy stuff off the internet, because its always to good to be true. I am merely asking for help ginataras because i am still learning this stuff and i wish to learn more of it and gain but when you wont help me and my friends have no idea what this is, im left hanging in a desert with no water. Im assertive as i said before and this is not getting my money worth, moreless a slap in the face. Whom else am i to ask for help. Sad you left a customer hanging ya know
#13
there are many ppl that can help u other than gin so stop whinning, its a forum!!!!!!!
there are many users of qm know its not a waste of money

i do not have yahoo 9, but im sick of listening to ur demands for help. be patient.
#14
Look in task manager. Maybe exe name is "YAHOOM~1". Or use class name and not exe name.
#15
Craig, your telling me to be patient! I was patient for 8 hours until gin told me to ask my friends for help. I would of never asked here for help if my friends knew it! And id like to know who other ppl can help me, when afterall, this is a forum to come for help? I take in considerations of everything BEFORE i come here for help. And btw, im not whinning! I payed for this product, so im simply asking for help about it. Im not the type of person to use it for a day and never use it again. I take pride in what i do and im very assertive bottom line. now this is way off the subject, mind your own buisness and your reading, not listening Wink
#16
its a forum so every thing you write here is public.

;;win("" "YM" "YAHOOMESSENGER" 1 1 1 a)
;;;YM is window class does yahoo 9 have same class?
;;YAHOOMESSENGER
;this is the process
;

let me try and help you.

add the bottom bit of code to get your outputs

,,for(i 0 a.len)
,,,sn.getwintext(a[i])
,,,out sn


now u should get outputs of all open yahoo windows, with exe name of YAHOOMESSENGER and window class of "YM"
you will need to check if yahoo 9 use the same class and exe name, exe name can be found in ur taskmanager when yahoo is open, and the window class can be found in status bar of qm when ur hovering over im window.

get back to me with the window class and process name of yahoo messenger 9.
#17
Now the code i have below, works perfectly fine for Windows Vista! Now, i use, Windows XP, and it was working perfectly fine the other day, but now, its not gathering the date of the IM Windows and putting them inside the Combo-box how i made it.


The exe name for YM 9 is, YAHOOM~1 , and the class is, ALT007CO7F0

The intial name is, " Yahoo! Messenger "

The code i have below is stubborn and works when it feels like it ? Why is this so ? I've worked and tryed many possible solutions, but the one you see below, is the only one that i can create that works, but has a mind of its own! Like i said, it works fine for, Windows Vista, and works when it wants for for Windows XP ?

Do you know why this code does not work 100 % like im trying to get it ....



Function Yahoo
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages
str YM=
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 153 78 "Dialog"
;1 Button 0x54030001 0x4 12 46 48 14 "OK"
;2 Button 0x54030000 0x4 92 46 48 14 "Cancel"
;3 ComboBox 0x54230243 0x0 12 18 130 213 ""
;END DIALOG
;DIALOG EDITOR: "" 0x2030109 "" "" ""
str controls = "3"
str cb3
if(!ShowDialog(YM &Yahoo &controls)) ret
ret
;messages
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case CBN_DROPDOWN<<16|3
,ARRAY(int) IDS; int i; str sc sn Final
,Final=""
,win("" "" "YAHOOMESSENGER" 0 0 0 IDS)
,for(i 0 IDS.len)
,,sn.getwintext(IDS[i])
,,if(sn != "Yahoo! Messenger")
,,,if(Final != "")
,,,,Final+"[]"
,,,,Final+sn
,,,else
,,,,Final+sn
,if(Final = "")
,,Final = "(No Yahoo's are Open)"
,ARRAY(str) b=Final
,b.sort(2)
,Final=b
,/Final.replacerx(" - Instant Message")
,TO_CBFill(lParam Final)
,case IDOK
,case IDCANCEL
ret 1
#18
Maybe im not writting this code right ? I dont know, i need urgent help
#19
I think you should not use exe name. Instead use class name. Because YM exe name is sometimes yahoomessenger and sometimes yahoom~1. This is first time I see such behavior, and don't know why.
#20
That is very wierd though gintaras! So, i been looking and finding possible solutions and this is what i came up with.

I was first using, Yahoo! Messenger as the id to capture the im's and having them sent to the Combo box. Well, that has a very wierd tendency to work when it feels like it! The wierd thing is tho, the id never changes but doesnt wanna go into the combo box. So, what now works perfectly is using the EXE Name, YAHOOM~1 , I just replaced the Yahoo! Messenger with that in the places where Yahoo! Messenger was made. So that now solves my problem after extensive research on it. Lol. Thank you criag for your time and gin as well.
#21
Oh yes, i forgot to mention as well, Using the EXE Name works good but using the default name that it gives you if u capture it, has a mind of its own!

So the two possible * good * solutions for this is, using the exe name and not the default and using the class name, because that works very well too.
#22
Snikers quit being so demanding

Gint doesn't have to help you but hes trying to be nice and your being completely rude

Also dont be talking about moneys worth, you and I both know you DID NOT pay for this and just got a reg code off some one.

Also almost every question in the whole forum that has to deal with yahoo is a PP question......
#23
Yahoo Messenger questions are boring.


Forum Jump:


Users browsing this thread: 14 Guest(s)