Serial com Jscript with NG but not with Duemilanov

Hi all,

I just got the new Duemilanov board.

I have a project that uses Jscript to send Serial data to my arduino. (via USB)
It works great with the old Arduino NG but when I replace the board and download the same program to the new Duemilanov It just won't work... :o

The code in the JScript side is simple:

var com = new ActiveXObject("MSCommLib.MSComm");
com.CommPort = 8; //100% the correct port
com.Settings = "9600,N,8,1"; //9600 in the Arduino code as well
com.PortOpen = true;
com.Output="s"; //dosent matter what I send
com.PortOpen = false;

The Arduino code:

void setup() {
pinMode(7, OUTPUT); // declare LED as output
Serial.begin(9600);
}

void loop(){
if (Serial.available() > 0) {
incomingByte = Serial.read();
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}
}

The led is connected to Pin 7.
If I send data from the serial monitor it will work in both boards
But, If I turn off the monitor and activate the js code (double click the js file) the led will not blink in the Duemilanov (I like writing this name..)

Can anyone check if he can send serial data from js or vbscript with the new Duemilanov?

I have a feeling it is related to the software reset in the new board

Thanks!

Gilad