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 __
> 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
___
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.
> 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,
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