ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
sendkeys function. (Sdk)
sendkeys function. // SdkgamerJan 16, 2002, 7:01pm
Hey all, I'm using the Shell and SendKeys functions to send keys to the AW
Browser, right now my knowledge of the Sendkeys function goes as far as: SendKeys "Hello AW! {enter}" How do I simulate pressing and holding a key for X number of seconds? Cheers, -Gamer marnvinJan 19, 2002, 6:12pm
> Hey all, I'm using the Shell and SendKeys functions to send keys to the AW
Browser > How do I simulate pressing and holding a key for X number of seconds? You can't do that with SendKeys.. I think you'll have to use a Windows API for that. The SendKeys function of Visual basic (I assume you're using that) only sends the key and you can't set a delay time with it. Marnvin foxmccloudJan 19, 2002, 10:58pm
Just Message the window with WM_KEYDOWNs and WM_KEYUPs :)
By the way you should explain what language you're using, when you post such a message, although we all guessed it was VB Fox Mc Cloud "gamer" <robbie at oriox.com> a écrit dans le message news: 3c45ea3f$1 at server1.Activeworlds.com... > Hey all, I'm using the Shell and SendKeys functions to send keys to the AW > Browser, right now my knowledge of the Sendkeys function goes as far as: > > SendKeys "Hello AW! {enter}" > > How do I simulate pressing and holding a key for X number of seconds? > > Cheers, > > -Gamer |