Trying to Communicate with WinAmp

Hi,
I am trying to communicate with WinAmp (MP3 player) through the sendmessage function in User32.dll
So far I can send commands like play, stop, forward, play next etc. but sending a filename to play gives no result.
This is the structure of the command: 
#define IPC_ENQUEUEFILE 100
/* This is sent as a WM_COPYDATA with IPC_PLAYFILE as the dwData member and the string
** of the file / playlist to be enqueued into the playlist editor as the lpData member.
** This will just enqueue the file or files since you can use this to enqueue a playlist.
** It will not clear the current playlist or change the playback state.
** COPYDATASTRUCT cds = {0};
**   cds.dwData = IPC_ENQUEUEFILE;
**   cds.lpData = (void*)"c:\\test\\folder\\test.mp3";
**   cds.cbData = lstrlen((char*)cds.lpData)+1;  // include space for null char
**   SendMessage(hwnd_winamp,WM_COPYDATA,0,(LPARAM)&cds);
WM_COPYDATA = 0x4A
In the VI you can see what I did. Before running the VI WinAmp must be already started. The led "windowfound" should be on.
I tried several things but no luck so far.
Can someone help me out with this problem ?
Solved!
Go to Solution.
Attachments:
WinAmp Test.vi ‏10 KB

Thank you for your priory information. I need to communicate with a C++ program using WM_COPYDATA. Since I need to send as well as receive data, I tried to write codes that send and receive WM_COPYDATA in LabVIEW. I think I succeeded to send WM_COPYDATA by following your example. However, I could not succeed in retrieving received COPYSTURCTURE data. Since I receive pointer I think I need to retrieve the data from the memory. I tried to use Moveblock, however, I failed.  I am attaching my example codes. Please take a look and give me comments.
Attachments:
smlib_WM_main.zip ‏29 KB

Similar Messages

  • A network error occurred while trying to communicate with the server.

    Hello All,
    I am getting some new error messages when opening the server app on my Mac Mini server running OS X 10.8.2 and Server 2.2.1. First I get a message that says "A network error occurred while trying to communicate with the server." and then after trying to open some of the service panes, I get additional errors that say "Multiple errors occurred on the server while processing commands." The services don't load and I just see "Error Reading Settings" in the server app.
    I started to get these errors when I added a new website to the server. All the services are working fine but I cannot access them in the server app.
    In console I'm seeing these errors when I try to access various services:
    2/24/13 8:02:12.692 PM Server[956]: Error: The server '10.0.1.150' reported an error while processing a command of type: 'readSettings' in plug-in: 'servermgr_dns'. Error: Error Domain=XSActionErrorDomain Code=499 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “10.0.1.150” which could put your confidential information at risk." UserInfo=0x7f8c4003a760 {NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “10.0.1.150” which could put your confidential information at risk., originalError=Error Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “10.0.1.150” which could put your confidential information at risk." UserInfo=0x7f8c3f547db0 {NSURLErrorFailingURLPeerTrustErrorKey=<SecTrust 0x7f8c40599080 [0x7fff7711ffd0]>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x7f8c3d58c0b0 "The certificate for this server is invalid. You might be connecting to a server that is pretending to be “10.0.1.150” which could put your confidential information at risk.", NSErrorPeerCertificateChainKey=(
        "<SecCertificate 0x7f8c3f6747e0 [0x7fff7711ffd0]>"
    ), NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “10.0.1.150” which could put your confidential information at risk., NSErrorFailingURLKey=https://10.0.1.150:311/commands/servermgr_dns, NSErrorFailingURLStringKey=https://10.0.1.150:311/commands/servermgr_dns, NSErrorClientCertificateStateKey=0}}
    I have already restarted the server and used terminal to stop and start postgres. Any more thoughts on how to repair this?

    Just as I had suspected, the whole GUI crashed because of certificate problems. After two and a half hours with enterprise support, it turns out the com.apple.servermgrd certificate in the server keychain had become corrupt.
    We determined this by typing https://127.0.0.1:311 into Safari and we could see all the server modules and interact with them through the web interface. All the services were working properly as well so we knew that it was just the Server.app GUI that simply couldn't read settings that was causing the problem.
    So, first we closed the server app. Went into /var/servermgrd and deleted all the files from this folder. Then, in Keychain, deleted the com.apple.servermgrd certificate. Did a search for com.apple.servermgrd in Keychain and deleted everything else that came up for it.
    Then restarted the server. Now the server app was able to properly connect to the services in the background and read them properly. This was the jist of the troubleshooting that solved the problem. It also seems like DNS is causing problems because that is the only service that will not read right but is functioning properly in the background.
    I will post an update once Apple figures out what is wrong with DNS. Hope this helps anybody else having these problems.

  • An error occurred while trying to communicate with the web browser.

    I have opened a PDF in the Acrobat reader V 8.2.4. It has live links.
    Only the FF browser is open.
    When I click a link in the PDF, I successfully get the message 'The document is trying to connect to...' which I allow and then successfully hyperlink to the web page displayed in FF.
    When I click an image in the PDF, which has a url attached to it, I get the message 'An error occurred while trying to communicate with the web browser.'
    [Sorry to say in IE7 when I click the image, I hyperlink to the web page like I do when I click the link.]
    Question is: What setting or other step do I need to take with FF so when I click the image in the PDF I link to a web page like I do when I click the link in the PDF?
    Thank you!

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    # Adobe Shockwave for Director Netscape plug-in, version 10.2
    # Adobe PDF Plug-In For Firefox and Netscape 8.2.4
    # Shockwave Flash 10.0 r22
    Update the [[Java]] plugin to the latest version.
    *http://java.sun.com/javase/downloads/index.jsp (Java Platform: Download JRE)
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/
    Update the [[Adobe Reader]] plugin to the latest version.
    *http://get.adobe.com/reader/otherversions/

  • Spooler.exe tries to communicate with shared printer on TCP:47546 port

    Hi,
    We have:
    1. AD
    2. Win7 Pro Workstations
    3. Symantec Endpoint Protection - allowed only SMB ports (135,137,138,139,445), denied all other communications incl broadcast.
    4. WS2 - computer with shared printer
    Issue: As I can see in WS1 SEP Logs spooler.exe tries to communicate with WS2 on the TCP:47546 port. SEP blocks those communications and shared printer stays "grayed". The solution I found is to restart spooler. Sometimes it helps
    Why does it happen? What should I do to force spooler to comunicate on standard SMB ports?
    UPD: Printer shared and as \\WS2\Printer and as \\IP\printer - in both cases the issue persists

    Hi,
    I am Chetan Savade from Symantec Technical Support Team.
    You can either add printer to excluded host.
    To add the printer to "Excluded Hosts":
    1.  Open your Intrusion Prevention Policy.
    2.  Choose to Settings on the left. 
    3.  Check the box for Enable excluded hosts and then click the
    Excluded Hosts... button.  
    4.  Add the IP address of your printer and choose Okay.
    Can refer the following article to create remote port exception.
    Permitting clients to browse for files and printers in the network
    http://www.symantec.com/docs/HOWTO55030
    Best Regards,
    Chetan

  • HT6154 Just tried to install the new update to my iPhone 5S and now it is stuck trying to communicate with iTunes and will not be recognized ny the laptop. iPhone screen shows a cable and the iTunes logo. Using Windows 7 Ultimate. How do I reset this to f

    Help!!!
    I now have a brick for a phone. Just tried to update to 7.1.1 using iTunes and it wipred out the operating system OK but now will not communicate with iTunes or the laptop. I reloaded iTunes and still no luck. If I press and hold the power and home buttons it inly comes up to the same screen showing the lightning cable pointing to iTunes logo. How can I get this running again? Even a factory reset to start would help if possible then I can do a restore. Right now it is worthless.

    Hello HarbourStables,
    Thank you for the details of the issue you are experiencing with your iPhone 5s.  I would be concerned too if my iPhone was stuck in recovery mode and not recognized in iTunes so that you can restore it.
    I recommend the following article for the issue you described and specifically this step:
    5. Use iTunes to restore your device.
    If you don't see your device in iTunes, follow these steps for Mac or these for Windows.
    Find the full article here:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/ht1808
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • JWS buggy when trying to communicate with servlets within the intranet

    Hi out there,
    I've a quite odd problem. I've written a distributed Java application, communication is stablished via Java serialized objects using http get and post.
    This works fine almost from any place. There are 3 possiblities to start my application:
    1. start the client bean directly from hard disc. Communication to server is perfect, everything works fine.
    2. I call a special html-page from the server which starts my application in a browser as an applet. This is tricky on some platforms, but at least on windows boxes this works fine, too. So the applet is hosted on the same machine as my Java objects are sent to by http. Those objects are received by a servlet installed on the server. We use IBM Websphere, and perhaps that's the bad guy...
    3. I start the application using Java Web Start. Again the .jnlp-File is hosted on the same server machine. And this is where the applicaiton hangs: If I'm outside our company's network, again everything works fine, through firewalls etc. But if I launch the application from within our intranet, the application only works "a little bit". It shows odd behaviour. The aplication may run fine if I send about two objects to the server. But it hangs if I try more objects. I can't reproduce the exact amount of objects transferable as that number differs from try to try!
    Has anybody any idea what could be wrong there? The server application's logfiles don't show any errors. The error message is that the client (only if started by JWS, and only from the intranet, and only from time to time) can't locate the servlet.
    What is the difference if I call the servlet starting the bean locally from my hard disc or if I start it as downloaded bean via Java Web Start?
    Some words to our architecture: We use Windows NT 4.0 SP 5. The server is behind one firewall to the outer world and one firewall to the intranet (demilitarized zone). The problems only occur if trying from intranet to DMZ, but only in combination with JWS. As an application or applet the connection works fine!
    Perhaps some network specialist has any idea about that? I know it's a little bit complicated, but perhaps somebody sees somthing I missed yet.
    Thanks a lot,
    Stefan

    Ok sorry. Forget about it. This is some very odd behaviour. Normally the application shouldn't run at all.
    I had the wrong proxy settings in the Java Web Start engine.
    I'm sorry I already posted that message.
    Presentation of my software is in about an hour, so please my panic...

  • Exchange 2013 LED=441 4.4.1 Error encountered when trying to communicate with primary IP address

    Hello,
    Im running Exchange 2013 on Server 2012R2, and all has been fine for a while until some users complained that ome of there external recipients are not receiving their mails. if I look in the mail que I indeed see the messages stuck with the comment:
    [{LRT=14-4-2015 14:36:14};{LED=441 4.4.1 Error encountered while communicating with primary target IP addre
    ss: "Failed to connect. Winsock error code: 10013, Win32 error code: 10013." Attempted failover to alternat
    e host, but that did not succeed. Either there are no alternate hosts, or delivery failed to all alternate
    hosts.
    Initially i thought it might had to do with the PTR but I checked and the reverse lookup is fine, also the mail server ip's are not blacklisted. I've tried every suggestion on all forums I could find from changing MTU sizes to disabling TLS but nothing seems
    to work the majority of the mail goes out just fine but to a couple of domains it doesn't any input would be greatly appreciated.
    I have only the internal DNS server configured on the NIC, only one NIC is available and OWA, Outlook and Activesync clients work just fine.

    http://public.wsu.edu/~brians/errors/their.html
    If this is happening when you try to send to several domains, then I suggest you might be blacklisted or otherwise being considered a spam source.
    Do you have an SPF record?  Is your IP address in a blacklisted range?
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Trying to communicate with HP54845A using IVIscope routines and getting error 0XBFFF0011 (Insufficient location information or the requested device or resource is not present in the system).

    I am able to talk to the device using the MAX tool and also using Plug & Play VIs. The device is at address 7, so I'm using the string GPIB[0]::7::INSTR. I have downloaded the latest hp345xx dll (version 3.13)and have iviscope version 3.0.2.0 installed.
    Thank you for the help.

    Hello,
    What version of the IVI Compliance package do you have? You can check this under the software tab in MAX. Also, see the attached screenshots for a sample assignment/configuration of a logical name and a driver session. Once you have gone through the analagous steps it should work, where your resource name control in LabVIEW should be populated with the logical name created in MAX.
    Repost if this isn't successful!
    JLS
    Best,
    JLS
    Sixclear
    Attachments:
    IVI_Screenshots.zip ‏625 KB

  • Getting message: Adobe Flash Player has stopped a potentially unsafe operation. The following local application on your computer ......../Firefox/Profiles/..... is trying to communicate with this Internet-enabled location: null

    It happens with firefox since the latest update, every time I refresh a page or open a new page.

    Hi ebombardi,
    Have you looked at our [https://support.mozilla.org/en-US/kb/firefox-crashes-or-flash-plugin-crashes Flash plugin troubleshooting section]? There is a lot of useful information in there that should help you get to the bottom of your issue.
    Hopefully this helps!

  • "Letting Adobe Flash communicate with the internet"

    Ok, Here is the deal. I have some .flv video files hosted on my domain with a fantastic looking flash player. It all works great. Except that every time that I change any of the code in the html snippet, or load the page with said snippet on it in iweb, i get this message:
    "Adobe Flash Player has stopped a potentially unsafe operation.
    The following local application on your computer or network:
    iweb-widget:58/$x-html-markup
    is trying to communicate with this Internet-enabled location:
    my.domain
    To let this application communicate with the internet, click settings.
    You must restart this application after changing your settings
    {OK} {Settings...}"
    and here's where my problem comes in. I can click ok, and it apparently just ignores the "security" risk and lets it go through that one time, but the next time I load up the page, I have to do it all over again.
    Alternatively, I can click settings, and exactly the same thing happens as when I click ok.
    Any idea how to get this message to go away. I understand what the "security" risk is, but I also know exactly what it is that I am hosting and I want to allow it to communicate with my webserver.
    For reference, here is the code in my html snippet
    "<embed
    src="http://my.domain/mediaplayer/player.swf"
    width="640"
    height="352"
    bgcolor="000000"
    allowscriptaccess="always"
    allowfullscreen="true"
    flashvars="file=http://my.domain/movies/shortclip.flv&backcolor=000000&frontcolo r=EEEEEE&lightcolor=000000&screencolor=000000"
    />"
    For clarification, when published and uploaded, every thing looks great and runs as it should, but I really hate this amazingly annoying nag message.

    I am already using the JW Flash player.
    http://www.jeroenwijering.com/?item=JWFLVPlayer
    same thing as the link.
    That part is working fine. I just need to know how to change the settings so flash player doesn't get angry about it contacting an external site.
    Just kind of annoying that every time that I even load up the page to view it in iweb, I have to click to let it contact the external page, for every video on the **** page.

  • How to communicate with third party bluetooth device using LAbVIEW

    Hi
          I am trying to communicate with a third party bluetooth device using LabVIEW, I am using a bluetooth dongle. I am able to discover the device and able to open the connection by specifying the service as serial port. But after that when I am trying to read and write data between LabVIEW and the bluetooth device (using Bluetooth Read & Bluetooth Write functions) its not happening.
    Dose anybody faced same kind of issue if so kindly guide me, this is first time I am using Blutooth protocol.
    Regards
    Visuman 

    Hi,
    I am able to talk with bluetooth / serial devices by using Labview protocol (not Wii dll). These are steps:
          Discover the bluetooth device in range (Bluetooth dicover.vi)
          Get the address of the device
          Pass device address to Bluetooth RFCOMM Service Discovery.vi to get service list
          Pass channel and uuid to Bluetooth open connection
          After that do write and read (Bluetooth Write / Bluetooth read).
      I hope it works for you.
    Take care
    tp
     

  • What kind of visa session should i use to communicate with a serial instrument?

    I´m trying to communicate with a serial board, i don´t want to use the Measurement and automation explorer, so the resource name should be COM1 instead of ASRL1::INSTR, how can i do this?. What king of session should i use? Waht visa VI should i use to open, close read and write from the srial port?. I want this to work with out MAX. Thanks in advance

    The below link dtalks about LabVIEW.ini settings.
    Go to this link and scroll down to the entry for serial. It will show you the syntax you need and alos provide another link for more info.
    I seem to remeber (not sure) that Visaconfig.ini defines the aliases normally assigned by MAX.
    http://labview.brianrenken.com/INI/undoc.shtm
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Help needed to communicate with networked printer

    I have a iMac G5 with Airport card. I am trying to communicate with an HP7660 printer attached to a WinXP machine with a USB cable. I can communicate bidirectionally fine with shared files between the Mac and the PC. I have turned on the file sharing on the printer itself. In the Mac, in System Preferences/Print & Fax, I set up the printer in the Printer Browser window with the following:
    Protocol: Line Printer Daemon - LPD
    Address: I used the IP address of the PC
    Queue: left blank
    Name: hp7660 (same as I gave it on the PC)
    Location: I used the IP address of the PC
    Print Using: Generic Postscript Printer (this was the default since this model was not shown in the printer list.
    In the Print & Fax, under Sharing, it shows the hp7660 checked.
    In Printer Setup, "Printer model" shows Generic Postscript Printer.
    In Printer Setup, "Name & Location" shows correct for both. The Queue is shown as hp7660 and the driver version is 10.4 (the Mac version).
    Now, when I open a Word file and click on "File/Print", the "Printer" is hp7660. When I click Print, I get an error message that says
    "Network host "IP address" is busy, down or unreachable; will retry in 30 seconds..."
    This same thing happens regardless of the Protocol option that I choose: Line Printer Daemon, Internet Printing Protocol, or HP Jet Direct.
    During this time, I get no error message on the PC and there is no other work going on at the PC. As I said, I can easily communicate between both machines, except for the printing.
    If all of the configuration settings are correct, does anyone have any ideas that I might have overlooked?
    Thanks
    Herschel

    Henry,
    Thanks for being so patient with my problem.
    When I follow the efelix directions for setting up the PC, it says that when you press the "Add" button on the Mac, a drop down menu will appear so that one can choose "Window Printing". This is not what happens for me. When I push the "Add" button, a "Printer Browser" window opens.
    This Printer Browser window (in the first box) gives me only 3 options: the LPD, IPP and Socket options. After manually entering the Address (IP address of PC), Name (same as shown on the PC), and Location (IP address of PC), the default in "Print Using" shows up as "Generic Postscript Printer". I then click on the "Print Using" using option to choose the HP Photosmart 7660 printer from the list rather than the Generic Postscript Printer.
    Now, when I click on "Add", the "Windows Printing/Workgroup" comes up in a Printer Browser window. It has only one item under the "Name" column which is my name and under the "Comment" column it had the Mac ID listed. I then choose "Network Neighborhood" as suggested in the efelix website. What appears now is a single choice called "WORKGROUP" under both the "Name" and "Comment" columns. I should have had 2 choices (as efelix shows), one being "WORKGROUP" and the other being a workgroup that contains my remote PC.
    This procedure, according the efelix procedure broke down at the very beginning when he suggests clicking on Add immediatly after setting up the PC. I did not get the drop down window he shows in order to choose "Windows Printing". Rather, this choice did not appear until I went through the configuration procedure of manually choosing the "HP Photosmart 760 Foomatic/hpijs" from the printer list. I don't know whether this may be due to a difference in Panther or Tiger (which I have), but the way I did it does not allow me to make the connection.
    So, in summary, it requires that I take a different path to get to the same conditions that efelix shows. Obviously, it is not getting the results needed. I sometimes wonder whether deleting the "hpijs" and 'ghostscript" and just using the HP upgrade might work? What do you think? Or is there some other way to get the "Add" window to give me the drop down window?
    I know this may be confusing, but I am trying to give you the step by step procedure that is happening.
    Thanks
    Herschel

  • Can I communicate with a Micrologix 1400?

    I'm trying to communicate with an Allen Bradley Micrologix 1400 using the OPC Client object and RSLinx Single Node as my OPC Server.  I have Lookout version 6.1.  So far I've been able to browse the plc in Lookout, but the diagnostics in RSLinx shows the connection toggling between active and inactive.  Has anyone done this before or know what the problem is?
    Solved!
    Go to Solution.

    Create a diagnostic file on the lookout side. Create opclient.ini file in lookout folder. Input
    [opclient]
    DiagnosticPath=D:\
    The diagnostic file name is the opclient object name.
    Is there any other opc client connecting the server?
    Ryan Shi
    National Instruments

  • Communicate with Modbus device using OPCLabVIEW.

    Hi all,
    I am using LabVIEW 6i with DSC. I want to connect Modbus device. At some other place I saw that this is very easy with OPCLookout server but we don't have this opc server toolset. So I want to communicate Modbus device using LabVIEW DSC only. Did any one had done it please help me out.
    Thanking you.
    Vishal

    Hi thanks for the reply.
    In first para you are talking about some server. Is it OPCLookout / OPCLabVIEW server or anything else please let me know.
    As far as the OPCLookout server is concern, we got it. But our excate requirement is as follows.
    >>>>> We want to connect our modbus device with FP.
    We have flow controller working with modbus protocol. this controller store some parameters. At particular time(daily) we want to get this readings in FP and then pass it to some other PC or main controller. But I am not aware how the lookoutopc server would work with FP. I think that if we could connect modbus with LabviewDscOPC server than DSC will take care for the communication ( Not sure & not know how, if u know please guide me). Due to this only I am ve
    ry strict for the LabviewDsc.
    In third pare u told about to make driver for modbus. Please guide me how could i do this. I tried to communicate with modbusdemobox (ni one) using serialport vis. but not able to communicate.
    Please guide me.
    Thanking you.
    Regards,
    Vishal

Maybe you are looking for

  • Error in opening a file with name in chinese characters with Runtime.exec

    The issue at hand is when I try to open a file with file name containing chinese characters in a localized environment in Windows through the following java code: Runtime.exec("rundll32 SHELL32.DLL,ShellExec_RunDLL {File_With_FileName_containing_Chin

  • Uploading calendar for printing

    Hello, I'm having problems using the iLife '06 print service. First of all, I had to tash the app and reinstall from the DVD for iPhoto to even connect, and now, when it has prepared the calendar, it starts uploading, gets to 192ish kb and then says

  • Need a networking guru to advise me, please!

    I have a camera (Dlink DCS-930L) connected to a Linksys WRT160NL router.  The camera works find and I can view it via the Dlink website, but ... even though the router supports uPnP (which is supposed to allow you to view the camera live with no time

  • When a jsp page opened

    Hello everybody, I have a jsp page that includes personal_no and code areas. I want the mouse on personal_no item when this page is opened. Does any one have any idea? Thanks

  • Problem launching ODI Data Quality/Profiling in Vista

    Hello I am having a weird problem with Oracle Data Integrator installation in Vista. Hope somebody could help me. I have installed ODI (10.1.3.5.0) along with Data Quality and Profiling. The installation was successful, however, while trying to launc