That's correct, it must be in a class or form module.
So declare it as Public in the Form and at the start of your script do something
like: Set K = frmBss6.KeyHook. The Event handler will be in your
Form, and I'd imagine you would start scripts in there as you detect keys being
pressed.
Rich McNeil
Boston Software Systems
866 653 5105
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ellingson, Mark
Sent: Wednesday, February 25, 2004 3:16 PM
To: '[EMAIL PROTECTED]'
Subject: [Talk] Scripts and Keyhook
Keyhook seems to
work fine if it is embedded in a form in the project. So my problem is this, how
do you call a form from a script or how do you execute the form from bss.exe
startup?
I have tried to move
the keyhook into a script but the withevents is only valid in an Object
Module .
