Will
try that, also found that I can "show" the form from the script which works as
well (I overlooked that one).
-----Original Message-----
From: Rich McNeil [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 25, 2004 3:33 PM
To: [EMAIL PROTECTED]
Subject: RE: [Talk] Scripts and KeyhookThat'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 McNeilBoston Software Systems866 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 KeyhookKeyhook 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 .
