mIRC Home    About    Download    Register    News    Help

Print Thread
#77551 02/04/04 07:49 AM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
I know the ALt keys number... but anyone know "ALL" the keys for the toolbar?? "ALL" the buttons on the toolbar. I need it for a DLL i'm making. The alt id's on the toolbar seem to be diffrent from what i gave. Thanks

alt_E, 104,
alt_O, 159,
alt_J, 142,
alt_L, 150,
alt_A, 200,
alt_D, 201,
alt_P, 202,
alt_R, 203,
alt_G, 158,
alt_I, 157,
alt_K, 133,
alt_B, 156,
alt_N, 131,
alt_U, 132,
alt_S, 151,
alt_C, 152,
alt_Z, 174,
alt_X, 175,

#77552 02/04/04 10:16 AM
Joined: Oct 2003
Posts: 12
E
Pikka bird
Offline
Pikka bird
E
Joined: Oct 2003
Posts: 12
Use Spy++ included with visual studio to discover the ID's of every component.


#77553 02/04/04 09:15 PM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
bah... don't know how to use it :P

#77554 05/04/04 05:45 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
That's why there are manuals and help files.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#77555 05/04/04 06:10 AM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
damn you are helpful

#77556 05/04/04 11:15 AM
Joined: Jun 2003
Posts: 195
N
Vogon poet
Offline
Vogon poet
N
Joined: Jun 2003
Posts: 195
run mirc and then spy.
press alt+F3 to open the find window tool in spy.
drag the locator to mIRC and drop it.
in the line thats highlighted rick click and select messages.

click on various toolbar and menu items youll see the messages sent (and/or posted) to mIRC's Window Procedure. The will be WM_COMMAND (or WM_SYSCOMMAND) and it will show you the uId argument.

Remember that the values spy displays are in hex.

Have fun smile


Have Fun smile
#77557 06/04/04 09:42 AM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
OK... i got this far... but don't get what the numbers mean. I pressed on the remote button on the toolbar... and this is what i got...




Any idea what the ID for the remote button is?

#77558 06/04/04 02:51 PM
Joined: Jun 2003
Posts: 195
N
Vogon poet
Offline
Vogon poet
N
Joined: Jun 2003
Posts: 195
well from that shot no you can see it. right click in the messages window and select logging options. unselect all the messages except for WM_COMMAND

to open the editor use

SendMessage(mWnd,WM_COMMAND,MAKEWPARAM(0,1008),0);

use 1003 for the options dialog
1013 opens the color dialog

as long as your only viewing the WM_COMMAND message you can find the id's easily youll see

... wNotifyCode:0 (Sent from a menu) wId:ID_FOR_COMMAND

Note that these id's can change as per khaled whims they are not set in stone. (khaled has been known to change id's around a bit smile )


Have Fun smile
#77559 07/04/04 12:01 AM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119


When i unset everything.. and only choose those too... and when i click on the buttons... nothing shows up in the "message". Did i miss a step?

#77560 07/04/04 02:50 AM
Joined: Jun 2003
Posts: 195
N
Vogon poet
Offline
Vogon poet
N
Joined: Jun 2003
Posts: 195
not as long as you have WM_COMMAND selected it should show up. Make sure you have the messages for mIRC's main window and not the MDI window. other than that im not sure. it should work fine.

another thing you could do is use TB_GETBUTTONINFO for each button in the toolbar. I havent tried this but i think mirc's toolbar is a superclass and responds to native TB messages.

Last edited by Narusegawa_Naru; 07/04/04 02:53 AM.

Have Fun smile
#77561 09/04/04 07:47 PM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
when i draged the "target" i droped in onto the toolbar... right? btw which is the MDI window? :P

#77562 10/04/04 09:49 AM
Joined: Jun 2003
Posts: 195
N
Vogon poet
Offline
Vogon poet
N
Joined: Jun 2003
Posts: 195
no you want to drop it onto the main mIRC window. The toolbar will send a WM_COMMAND message to its parent window (the main window) so thats the wndproc you want to view.

the mdi window (class name is MDIClient) is the window all non desktop windows open up in. Its the grey (by default) color window. It looks like the background for mIRC because it has no border or caption and is sized to fill up the space not occupied by the switchbar and toolbar.

in fact all other windows such as channels status etc.. are child windows of the mdi client window. Of course provided thier not made to be desktop windows smile

Last edited by Narusegawa_Naru; 10/04/04 09:50 AM.

Have Fun smile
#77563 11/04/04 07:11 AM
Joined: Feb 2004
Posts: 119
D
da_hype Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Feb 2004
Posts: 119
ahhh thanks... that's what i did wrong... i droped the target on toolbar and not the main mirc window. thanks for the help. laugh


Link Copied to Clipboard