|
-
Dec 6th, 2001, 11:37 PM
#1
Thread Starter
Addicted Member
-
Dec 7th, 2001, 04:21 AM
#2
I wouldn't have though you'd have that much specific control, the sendmessage is a call for common procedures all program window/handles have such as the wm_destroy.
Many of the programs like media player have their own api's, you can add references or components in your vb apps to access these api's and control these program specific calls 
Nice avatar by the way
-
Dec 7th, 2001, 08:57 AM
#3
I would think the PostMessage would be more along the lines of what you are looking for than SendMessage.
-
Dec 7th, 2001, 09:52 AM
#4
There are DOZENS of windows messages. Every possible command translates to a different message. This is how the OS talks to a window when you type or move the mouse. For text stream entry and regular commands, use PostMessage - it puts the message in a queue behind the other messages wating to process. SendMessage puts the message at the front of the queue - usually to do something like close a window.
Goto www.msdn.microsoft.com Search for Windows messages.
You'll get the WM_ series of messages (WM_QUIT WM_DESTROY are the ones you see on VBFORUMS the most. The others are much more useful). Start there. For editboxes: EB_ messages, for listboxes: LB_ messages
You can also get help in visual studio (VB help) goto to the index tax, type WM_ or EB_ or LB_.
-
Dec 7th, 2001, 03:39 PM
#5
Messages are usually generic, unless an application creates a custom message via RegisterWindowMessage or WM_USER. Also, it's highly unlikely that an application that is not meant to have "add-ons" has custom messages (e.g: Soliatre). Because of this, you'll sometimes need to send a couple generic messages to perfrom a task.
-
Mar 23rd, 2005, 01:11 AM
#6
New Member
Re: SendMessage API???
Can someone give me an example of how to stop/play a file using the SendCommand in Windows Media Player??? (PM me the code)
Last edited by daniel142005; Mar 23rd, 2005 at 01:15 AM.
-
Mar 23rd, 2005, 07:16 AM
#7
Re: SendMessage API???
Boy, here is a resurrected blast from the past (opened in 2001).
When you say "stop/play a file", I assume you mean a .wav file. Would that be correct? Is this the command you were referring to? mciSendCommand
-
Mar 23rd, 2005, 04:52 PM
#8
New Member
Re: SendMessage API???
 Originally Posted by Hack
Boy, here is a resurrected blast from the past (opened in 2001).
When you say "stop/play a file", I assume you mean a .wav file. Would that be correct? Is this the command you were referring to?
i meant any file that Windows Media Player supports
( found out how to play/stop/pause the music, but not how to go to the next/previous song... Do you know the MCI command for this? )
Last edited by daniel142005; Mar 23rd, 2005 at 05:34 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|