Keybd_event issue

I posted this a few weeks ago, I think, but didn’t get any responses so I figured I would give it another shot.

I’ve had a lotusscript that I’ve been using for over a year that used the keybd_event to print a document.

It sets margins, sends it to pdfcreator, makes sure it’s set to portrait, and then prints the document.

It’s setting everything right - the margins, orientation, printer, everything except it doesn’t follow through with the last command:

keybd_event 13,0,0,0 ’ Return key down

keybd_event 13,0,2,0 ’ Return key up

It won’t hit the return and I have to hit return manually.

It’s strange - it’s been working fine for over a year and just today it stopped.

I do believe our corporate IT department changed us to IE 8 today from an older version but I’m wondering if that can have any affect on this all of a sudden not working.

Any thoughts?

Thank you!!

Subject: Does the ok button have a keyboard shortcut

like say alt-o?then try that.

j.

Subject: ActiveX Control Not Working Either

This may be related. We were using an ActiveX control: var myshell = new ActiveXObject( “WScript.shell” ) to send keys: myshell.sendKeys( “text” ) to populate fileuploadcontrol fields for upload automatically. This made it easier for our users so they didn’t have to choose each file needed for upload. Our script would execute and upload the information automatically. We were a trusted site too, so no security concern there. Well Microsoft arbitrarily decided this was a security risk and disabled it. Go figure.

Maybe you’ll find something in there related to your work. Good Luck.