Re: [python-win32] Python.AXScript (win32com) in Netstumbler

2006-10-11 Thread Mark Hammond
> Now, I do the same in Python.AXScript: > def OnScanResult(SSID,BSSID,CapFlags,Signal,Noise,LastSeen): > PlaySound("ns-signal-1.wav") > > And it says PlaySound not defined. Of course there is > winsound.PlaySound. PlaySound will be a method on a "global" object. Due to the way Python works,

[python-win32] Python.AXScript (win32com) in Netstumbler

2006-10-11 Thread sam lee
I am trying to write a Python.AXScript script work with Netstumbler. http://www.stumbler.net/scripting.html According to that page, Netstumbler calls functions like, OnScanResult. I wrote JScript and PerlScript version of OnScanResult and they are called automatically by Netstumbler. JScript: f

Re: [python-win32] Python win32com and iTunes

2006-10-11 Thread Tim Roberts
Test Drive wrote: > > Which version of iTunes you are using? I don't using iTunes. I'm too old for their "target demographic" ;). I'm just offering advice based on general experience with COM objects. -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. _

Re: [python-win32] Python win32com and iTunes

2006-10-11 Thread Test Drive
Hi Tim,Which version of iTunes you are using?ThanksOn 10/11/06, Tim Roberts <[EMAIL PROTECTED]> wrote: Test Drive wrote:> Hi All,>> I am trying to use win32com with iTunes (version 7.0.1.8> ). However it seems like I am missing something and I> am clueless about that.>> > import w

Re: [python-win32] Input-only vs. In/Out Function Parameters

2006-10-11 Thread Smith, Brian (CR)
> My platform is Win XP Pro (SP2), Python 2.3.4, pywin Build 210.  I'm testing> using VBA in MS Excel 2000.  A bit more info...   I wanted to eliminate the older version of VBA as a possible source of the problem so I downloaded Visual Basic 2005 Express Edition and tried the same VB co

Re: [python-win32] Python win32com and iTunes

2006-10-11 Thread Tim Roberts
Test Drive wrote: > Hi All, > > I am trying to use win32com with iTunes (version 7.0.1.8 > ). However it seems like I am missing something and I > am clueless about that. > > > import win32com.client as wc > import pythoncom,sys > > app=wc.Dispatch('iTunes.Application') > mainPl=a

Re: [python-win32] Python win32com and iTunes

2006-10-11 Thread Simon Brunning
On 10/11/06, Test Drive <[EMAIL PROTECTED]> wrote: > Hi All, > > I am trying to use win32com with iTunes (version 7.0.1.8). However it seems > like I am missing something and I am clueless about that. I gather that the COM object model changed somewhat at iTunes version 7, which might well be resp

[python-win32] Python win32com and iTunes

2006-10-11 Thread Test Drive
Hi All,I am trying to use win32com with iTunes (version 7.0.1.8). However it seems like I am missing something and I am clueless about that.import win32com.client as wcimport pythoncom,sysapp=wc.Dispatch('iTunes.Application')mainPl=app.LibraryPlaylistprint ">> Dir <<" p