Qbasicnews.com

Full Version: capturing key strokes during -s gui
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm using fb to create utilities for myself, because I'm lazy. One of them to start with, Is a program that will open programs when i press certain buttons. for example, when i press f2 for example, i might want fbide to open up. or if i press f3, firefox. f4 would be something like m$ word.

However, Inkey doesn't seem to work in -s gui mode. Will Multikey work as an alternative? If not, how do i read input? Thanks in advance.
inkey$ should work in gfx mode?

Anonymous

inkey may not work when the window is out of focus. (havent tried) yes, multikey picks up key input no matter if the window is in focus.
Both inkey and multikey should not work if the window has not got focus. In 0.12 there was a bug that prevented this behaviour for multikey, but it has already been fixed in CVS and will be ok in 0.13.
So hackers, don't update....Big Grin
okay... (note to self: don't update)

i tried multikey, but i couldn't get it to work. Btw, z!re didn't seem to believe me... i am NOT trying to make my own keylogger, as bad as it seems with the two posts timings... i'm not! i'm not! *sob* It wouldn't of been so bad if z!re didn't choose that moment to pull out the whip. Wink actually, the keylogger post made me wonder if i could make a similiar program that could open files, cmd.com, or the run dialog depending on what i type. I had something similiar (it was trialware) and i had alot of fun with it. Then the trial expired. Wink

well, z!re and i talked about doing this, and we both figure it would probably take windows api calls. (i'm not talking about -s gui, creating a window: i'm talking about -s gui, then dont' call a window. Z!re said something about making a window, resizing to 1,1 and putting it below the start bar. I dunno... it seemed *so* simple when i first decided to try.. Wink