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

2006-10-12 Thread sam lee
On 10/12/06, Mark Hammond <[EMAIL PROTECTED]> wrote: > Try: > > def NetStumbler_OnScanResult(SSID,BSSID,CapFlags,Signal,Noise,LastSeen): >... > > I think the above is similar to VBScript - at least it was when the AXScript > support was written :) > > Mark > > That doesn't do. I tried with __

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

2006-10-12 Thread Mark Hammond
> So, NetStumbler will call NetStumbler.OnScanResult on some events. > I want to override that: Try: def NetStumbler_OnScanResult(SSID,BSSID,CapFlags,Signal,Noise,LastSeen): ... I think the above is similar to VBScript - at least it was when the AXScript support was written :) Mark ___

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

2006-10-12 Thread sam lee
On 10/12/06, Mark Hammond <[EMAIL PROTECTED]> wrote: > PlaySound will be a method on a "global" object. Due to the way Python > works, it is difficult to always make these methods truly global - hence in > ASP, you need, eg, 'Response.Write' rather than the plain 'Write' other > languages offer.

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