View Single Post
Old 10-11-2006   #15 (permalink)
Dutch
Humourless EuroMod.
 
Dutch's Avatar
 
Join Date: Mar 2004
Location: City of Mermaids, Denmark
Posts: 6,813
Quote:
Originally Posted by quhaha
Code:
#!C:/Perl/bin/perl.exe -w

sub OnScanResult {
	my($sid,$mac,$flags,$signal,$noise,$ls) = @_;
	PlaySound('ns-signal-1.wav');
}
That one works too.
I just noticed that NetStumbler supports Python.AXScript and PerlScript, not Python and Perl.

I think win32com.axscript module isn't implemented yet (Not sure about this).
Probably that explains why PerlScript already has access to PlaySound but Python.AXScript doesn't (I used winsound.PlaySound).
So you are saying that the following, which I posted here way back in April 2006 : "Python AFAIK is not a scripting engine, but an interpreted programming language." is actually true ? Amazing, isn't it ?? Who would have thought that I did any kind of research before replying to a post here...



Dutch
__________________
All your answers are belong to Google. SEARCH DAMMIT!
Warning. Warning.
Low C8H10N4O2 level detected. Operator halted....
Dutch is offline   Reply With Quote