944,175 Members | Top Members by Rank

Ad:
Oct 23rd, 2006
0

VBScript Beginner Questions

Expand Post »
Ok, I have programmed in c++ for a while, but recently, I have found an emulator that supports vbscript files and have some questions about it.

What I need to do, is detect a keystroke with the vbscript. How does one go about detecting a keypress with a vbscript, while an emulator is busy running a rom. I then need to send a series of keystrokes to the emulator, such that it thinks they were pressed by the user. Is all of this possible with a vbscript file? Do I need to do my chore with an actual language.

Also, if all of this is possible, how do I make it so that the vbscript doesnt use crazy amounts of cpu. I need it to be active enough to catch the keypress, but that is all. Is there a way to set up an onEvent with a keypress. Mind you though, this isnt a script running in Internet Explorer, it is being processed by an emulator, which does have support for any standard vbscript, along with its own little library of functions.

Thank you much.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
petzoldt01 is offline Offline
49 posts
since May 2006
Oct 23rd, 2006
0

Re: VBScript Beginner Questions

Not unless the emulator has an API or Object that you can use to hook keystrokes. On it's own, it doesn't offer keyhook abilities. For that, you'll need a full-fledged language. I suppose it would be possible to make some kind of keyhook class, and use createobject within the VBScript to instantiate an instance of a keyhook object, but you'll have to do all the keyhook work from a full language.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Sorting has me out of sorts.
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Restrict copying through USB





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC