Airplay access through python script-win32com

Hi,
I am looking at automation to access  airplay accessories through iTunes.
For example: When itunes running on windows discovers its Airplay accessory like Speaker, we will be able to see the Airplay Icon getting highlighted and we will be able to select the required accessory among the available airplay accessories  and start the play.
Is there any api to access this Airplay object and select the required Airplay accessory through python or through win32com scripts?

Moderator note:
I believe this thread runs afoul of the legality (copyright) provisions detailed in the forum etiquette
I am closing this thread.  If I am not correct, please contact me with information related to your rights to use their material in this manner and I will reopen this thread.
ewaller

Similar Messages

  • Running Python Scripts through Labwindows/CVI

    Hello,
    I'm trying to execute Python scripts through Labwindows/CVI.  I believe I have the correct library for the code to access in my project. I'm getting errors as it can't find "io.h", "stat.h", or "wchar.h" files.  There is another post on this, where a modified pyconfig.h file was provided, however that file does not work for me.  I'm not sure how to obtain the correct files for what I need here.  Is there any dependable method to do this?
    I'm on Windows 7, I'm running CVI version 9.1.1 and Python 2.6.6 (32-bit).  The library file I'm using was proveded as part of the python install, called "Python26.lib".  I zipped and attached the project, but to get it working you have to download Python (http://www.python.org/download/releases/2.6.6/), and point CVI to the "Python.h" header file (in the "include" directory under the "Python26" directory.
    Attachments:
    Test project.zip ‏4 KB

    Where are these .h files located? If you know where these files are located go to Options>>Environment...>>Include Paths... you can add directories that the workspace will look for include files that are not explicitly included in your project.
    Ian M.
    National Instruments

  • I want to airplay from macbook pro to apple tv. What are the possibilities? Does it allow me to play movies or videos I access through the browser as well?

    I want to airplay from macbook pro to apple tv. What are the possibilities? Does it allow me to play movies or videos I access through the browser as well?

    Welcome to the Apple Community.
    Only content in your iTunes library can currently be sent via AirPlay from your mac.

  • Trying to execute a python script through java

    I would like to make a command line call from java to execute a python script. The command line call would look like this:
    tilemaker.py -s 128 -Q 0 -b FFFFFF AlternateExample.png
    Also this has to be platform independent.
    I am aware of Jython but I can't use it at this point due to technical restrictions.

    you can use the jep (Java Embedded Python) package...it's very simple and u just need to call a method.....
    see the following links....
    http://jepp.sourceforge.net/javadoc/jep/Jep.html
    http://jepp.sourceforge.net/

  • Java accessible through Python COM? Alternative to packager?

    Is Java Functionality accessible through Python?
    For some of you who have lost all other options and do not care about GUI looking like Java, I almost went down this path.
    Python works excellent with Java and .NET actually. I'm not sure about latency, but Python makes excellent glue between the two worlds.
    I think through ActiveState and Mark Hammond's book (see Oreilly Python programming on Win32) you can download and install for free a COM based version of Python which can be used in other MS Languages including .NET.
    If that doesn't work Python's interpreter and library source code is out there for you to adapt easily since it is written in C programming language.
    Getting Java to talk to Python through JNI, Jython, SWIG, or other similar open source items is not difficult.
    On top of that you can get access to MFC classes through Python and create GUI's that you wouldn't even know had been made from Python.
    Data in variables can move from java to Python to C, VB, .NET, C++ etc.
    Python is also a .NET friendly/compatible language. So if you ever find that Sun's packager is not working or you are stuck with a specific version, may I suggest you take a look at this option in finer detail.
    I wouldn't mind discussing this in further detail here. Any questions or clarifications I can post too.
    This is an easy and often overlooked solution to people's problems.

    Look into a package called JAWIN, don't remember the URL, its open source and serves as a bridge between Java and Com objects.
    Seems to work, we are using it in production.

  • Calling Python Script from LabVIEW

    Hello Everyone,
    I want to call the Python script from LabVIEW.
    I tried with using at the command line but i am unable to run that script file..
    i have gone through LabPython but i am unable to call the scripts from there also..
    If someone has an example of a VI which invokes a python script, it will be very helpful...
    Thanks a lot in advance
    Regards
    Avni

    avni wrote:
    I have to invoke the Script file at command prompt.
    Can you descriobe your restriction(s) concerning "invoke the script at the command prompt"?  There may be ways around that.

  • Python script in dasylab using single input multiple output

    Hello
    For a project, I would like to use the python scripting module of dasylab 13. I got it to work for simple functions such as y=f(x), where i have one input and one output.
    The next step in order to get to where i want to be with my script is using a single input and generating two outputs.
    I defined it in the "predefined settings" that pops up first. The module created looked as it should, having one input and two outputs. However, when I wanted to edit the script (and double clicked the module) the module went back to having one input and one output.
    I searched the help and found the section "channel assignment constants". There describe the various constants, which should have been set in predefined settings. In my case it is CR_1_2.
    It also states to setup the meta data in the SetupFifo tab.
    Now here is my problem: How should i change the SetupFifo tab?
    I tried the command:
    self.SetChannelRelation(channel_no, Ly.CR_1_2)
    Unfotunately this didn't work, which doesn't supprise me, as I made this command up, based on the examples in the help file on the SetupFifo tab. Those are, however, for SetChannelFlags and SetChannelType, which I don't think I need yet...
    Has anyone experienced a similar problem? I also installed a trial version on another computer to check if it works there (it doesn't).
    Or does someone know a method to find out how to be able to change inputs and outputs the way i want?
    Every help will be greatly appreciated.
    Sincerely, Jarno

    You do not need to set the channel relation for "simple" channel relation like 1:2, 2:1, etc.
    Just set the relation you want in the configration dialog that open when you drop a script module into to worksheet.
    The channel relation and their python constants have nothing to do with the amount of inputs and outputs of a script module.
    The channel relation tells the "DASYLab core" how to guide meta data (channel names, units, etc) through a module.
    In function "DlgInit" you have to tell DASYLab how many inputs and outputs your module should have.
    Your module should have 2 outputs for each input: this combination of input and outputs is called a "channel".
    Because one channel has 2 outputs, the module can have max. 8 channels only.
    The dialog with the channelbar "thinks" in  channels, but DASYLab "thinks" in connectors (connectors are inputs/outputs).
    So, you are responsible to translate "channels" in "connectors" and vice versa
    In DlgInit you can ask DASYLab about the amount of inputs and outputs.
    self.NumInChannel <-- amout of connectors on modules left side
    self.NumOutChannel <-- amount of connectors on the right side
    self.DlgNumChannels <-- amount of activated channels in the dialog (something between 1 and DlgMaxChannels)
    Your module's channels have 1 input, 2 outputs each, so you can write either
    self.DlgNumChannels = self.NumOutChannel / 2
    or
    self.DlgNumChannels = self.NumInChannel
    If the module has 3 input and 6 outputs, the dialog will get 3 channels.
    In DlgOk you need to translate the amount of channels into the correct amount of connectors (inputs/outputs):
    For "one channel = 1 input + 2 outputs" this is:
    self.SetConnectors( self.DlgNumChannels, self.DlgNumChannels * 2 )
    DlgInit
    self.DlgNumChannels = self.NumInChannel
    # or: self.DlgNumChannels = self.NumOutChannel / 2
    self.DlgMaxChannels = 8 # or Ly.MAX_CHANNELS/2
    DlgOk
    self.SetConnectors( self.DlgNumChannels, self.DlgNumChannels * 2 )
    M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum National Instrument Alliance Partner | www.measx.com

  • Python Script to add internal hosts on ACS 5.2

    Hi,
    is there any example how to add/remove a internal host via python script, like you would do it via the GUI under "User and Identity Stores -> Internal Identity Stores -> Hosts" ?
    regards
    Dirk

    Hi Dirk,
    where do you plan to run your script ? on a server external to the ACS I guess right ?
    Then the question is more "is there a way to add a user through CLI on ACS" because that is what the script would be using right ? And there isn't such a way to my knowledge.
    Nicolas
    ===
    don't forget to rate answers that you find useful

  • Python script won't open

    I have finally upgraded to Lion and I am slowly finding out small things that are making me go crazy.
    Before on Snow Leopard, I could just double click a python script and it would open up and do it's thing.
    Now, it won't even open. When you go into the info panel I can't find the Python Launcher option. It only
    gives me other apps such as Sublime Text, Text Wranger etc. How do I change this back to how it was
    behaving in snow leapard, without going through Terminal.
    Does anyone know why my numbers pad on the keyboard doesn't work anymore?

    nevermind

  • No HTTP access through Illustrator?

    So is there no way to access HTTP through Illustrator scripting?  I've tried the one trick I found searching the forums of copying over webaccesslib.dll/netio.dll/coretypes.dll from Bridge but can't get it to work (I just get an 'Error 53: I/O error' when I try to load webaccesslib with the ExternalObject) and according to the Javascript toolkit docs Illustrator doesn't support the Socket object so I can't even write it myself.
    I need to make a request to a URL to pull in some custom information but so far am at a loss as to how else to do this.

    here is a sample script, getting web contents through bridgeTalk.
    //bridgesoc_sample.jsx
    var cnnct = new Socket;
        if (cnnct.open("chuwa.iobb.net:80", "binary")) {
            cnnct.write("GET /tech/images/sample1-thumb-240x125.jpg HTTP/1.0\n"
                            + "Host: chuwa.iobb.net\n"
                            + "User-Agent: Mozilla/5.0 (Windows NT 5.1; ja)\n"
                            + "Connection: close\n\n");
            var rply = cnnct.read(999999);
            cnnct.close();
        f =new File("/test.jpg");
        if(f.open('W')){
            f.encoding = "BINARY";
            f.write(rply);
            f.close()
            }</p>
    //main.jsx
    var bt = new BridgeTalk();
    bt.target = "bridge";
    bt.body = uneval (getResource)+"()";
    bt.onError = function (){
         alert ('Error has occured.');
    bt.send();
    function getResource(){
        var a = new File('/bridgesoc_sample.jsx');
        if (a.open("r")){
            cd = a.read();
            a.close();
            eval(cd);
    Its work fine.
    You don't want through bridge, use custom external object to make your own.

  • Communicat​ing with Keithley 2602A using python script

    Hi everyone,
    I want to enable communication between my PC and Keithley 2602A SourceMeter Instrument so that I can send commands to the SMI without using Test Script Builder (TSB) - a scripting/remote controlling program that enables communication between itself and the host computer.
    The reason why I want to do this is because I want to program in Python to carry out a series of tasks involving other hardwares and adjusting the voltage on the SMI at the same time. I can't use TSB to do this because TSB is solely for controlling the SMI and not other hardwares. I need to use Python scripts to consolidate all the hardware control. So far, communicating with other hardwares from my PC using Python scripts is not a problem because I have readily available libraries for them.
    I have found PyVisa which I thought could solve the communication problem. So I installed PyVisa and wrote the following code to test the communication.
    import visa
    keithley = visa.instrument("COM1")  #SMI connected to COM1
    keithley.write("smua.source.output = smua.OUTPUT_ON")  #send this command to SMI
     However, the communication was not successful as I got the error message as shown below:
    C:\Documents and Settings\cho\Desktop\Python Ex>keithley_test.py
    Traceback (most recent call last):
      File "C:\Documents and Settings\cho\Desktop\Python Ex\keithley_test.py", line 2, in <module>
        keithley = visa.instrument("COM1")
      File "C:\Python26\Lib\site-packages\pyvisa\visa.py", line 292, in instrument
        return SerialInstrument(resource_name, **keyw)
      File "C:\Python26\Lib\site-packages\pyvisa\visa.py", line 680, in __init__
        "delay", "send_end", "values_format")))
      File "C:\Python26\Lib\site-packages\pyvisa\visa.py", line 358, in __init__
        "lock")))
      File "C:\Python26\Lib\site-packages\pyvisa\visa.py", line 132, in __init__
        keyw.get("lock", VI_NO_LOCK))
      File "C:\Python26\Lib\site-packages\pyvisa\vpp43.py", line 753, in open
        byref(vi))
      File "C:\Python26\Lib\site-packages\pyvisa\vpp43.py", line 398,
    in check_status raise visa_exceptions.VisaIOError, status
    pyvisa.visa_exceptions.VisaIOError: VI_ERROR_RSRC_BUSY: The resource is valid, but VISA cannot currently access it.
    Can anyone tell me what went wrong? How can I control the Keithley 2602A using a Python script run from my PC?

    Hi DavItron, this is a very old thread but it's one of the top google results when I looked up info on how to implement some Python code with PyVISA to drive the Keithley 2602A so I will post this response so that other searchers can find the info.
    You can store data in named variables in the Keithely 2602A and then "print" them to the remote interface using something like the following:
    import visa
    ps = visa.Instrument("GPIB::Address of your instrument")
    ps.write("smua.source.levelv=10")
    ps.write("smua.source.output=smua.OUTPUT_ON")
    ps.write("currenta, voltagea = smua.measure.iv()")
    ps.write("smua.source.output=smua.OUTPUT_OFF")
    current = ps.ask("print(currenta)")
    voltage = ps.ask("print(voltagea)")
    For what I do which is mostly setting and measuring a bias point, then holding that while I trigger a measurement on another instrument, this is fine for me.  If you want to do  sweeps with a lot of data points it's probably more efficient to use the buffers directly, but I haven't needed that yet.
    Hope that helps somebody!

  • Call a python script from perl file

    This is my first post and am not sure if this is the right forum to post this query. If this is not the right forum, pls redirect me to the appropriate forum.
    Query :
    I have a python script which was created through WLS console's recording feature. I have to call this python script from a perl script (dte topo block).
    Any pointers towards how this can be achieved ?
    Thanks,
    Madhusudan

    I am using inline python to execute python statements directly from the perl script. However, i get below error :
    [maddeshp@slc01auw forDTE]$ perl -c intro.pl
    Can't find string terminator "END_OF_PYTHON_CODE" anywhere before EOF at intro.pl line 2.
    Has anyone run into this problem ? Any suggestions on fixing this ?
    Thanks,
    Madhusudan

  • Running a python script as a step in a job

    01/08/15 Let me see if I can phrase the question a little better.
    The following is what I currently have in a batch file, it works:
    python F:\Scripts\DataManagement\DataPublication\LandBase_Structures\FeatureIDPopulator.py "GISEDITDB" "edgis""gis_admin" "gisadmin" "LandBase_Structures" "LST"
    How would I write the string if I wanted this to run as an Operating system (CmdExec) step ?  Disregard what I tried to do from my original post.
    I am not that familiar with Powershell, but would that be a better way to approach this ?
    Again, thanks !
    Disregard what I 'tried' to do below.
    I am setting up a job which runs some SQL and a python script.
    The 'type' for this step is Operating system (CmdExec).
    C:\Windows\System32\cmd.exe /C \\WDC1GISSHP1\E\Python26\ArcGIS10.0\python "Z:\python\FeatureIDPopulator.py "GISEDITDB" "edgis" "username" "password" "LandBase_Structures" "LST""
    The items in " " are parameters passed to the script.
    It errors out with '...The system cannot find the file specified'
    I just added the cmd.exe, and only that executes now, not the rest of the line.
    How can I run this script ?  Can I run this as a step using a command line format as i am trying or should it be in a batch file ?
    Thanks.

    C:\Windows\System32\cmd.exe /C \\WDC1GISSHP1\E\Python26\ArcGIS10.0\python "Z:\python\FeatureIDPopulator.py "GISEDITDB" "edgis" "username" "password" "LandBase_Structures"
    "LST""
    Hello,
    Is Z: a mapped drive in your Profile? It won't be available for a SQL Server Agent Job. And take care that the used Service account do have permissions to access the network share
    \\WDC1GISSHP1 and the mapped drive.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • HT1329 if the music that is on the iPod can no longer be accessed through iTunes because it was deleted, is there anyway to recover the music on the iPod if it wasn't purchased?

    if the music that is on an iPod can no longer be accessed through iTunes because it was deleted, is there anyway to recover the music on the iPod if it wasn't purchased?

    See this support article:
    http://support.apple.com/kb/HT1848
    You can also download at least some of your content (audiobooks being a notable exception) again from the iTunes Store:
    http://support.apple.com/kb/ht2519
    For additional instructions, particularly for content not purchased from the iTunes Store, check out this user tip from TuringTest:
    https://discussions.apple.com/docs/DOC-3991
    and this page on "How-to Geek":
    http://www.howtogeek.com/104298/sync-your-ios-device-with-a-new-computer-without -losing-data/
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro?
    Yes, if you are asking about using Time Machine to backup the Mac.
    Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?
    You are not thinking of deleting the photos and files on your Mac, are you?  If you do this, you will have no backups for those files.
    Another concern is that Time Machine backs up the changes on your Mac. At some point, Time Machine will automatically delete the photos and files from the Time Capsule.....you just don't know when this might occur.
    In other words, only delete files from your Mac that you can afford to lose.

Maybe you are looking for

  • How to call next .swf and close the previous?

    Hi guys, i'm having a big trouble using the loadMovie command. I want to do a book and at the end of each chapter the next button will appoint to the next .swf ,but the previous has to disappear. At moment, i created a empty movieclip named "load" in

  • Help with installing Flash Player 10.1 in IE7

    Hello All - I have been having issues installing Flash Player 10.1 in IE7.  I have pretty much tried everything to install this into IE7.  I was able to install Flash Player 10.1 in Firefox with no issues at all.   I have tried to install it through

  • Non-hex character in hex string after upgrade to Yosemite

    Hi, When I try to open some of my files I get an error: "Acrobat PDF File Format is having difficulties. Non-hex character in a hex string". I could open the files before. The only thing I've done since I opened the file last was to upgrade to Yosemi

  • How to strengthen my wefi signal whit airport express

    how to strengthen my wefi signal whit airport express

  • Draw a line on a JFrame

    I have 2 panels inside a JFrame and I want to separate the 2 panels using a visible line. How can I draw this line?