Keybd_Event - Enter Key Not Working

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: One more thing…

Also, I can open the same database, same document on my laptop running Windows 7 (the office computer is running Windows XP Professional and it completes the cycle hitting enter at the end.