[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2007-02-15T13:44:25-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/2281 2007-02-15T13:44:25-05:00 2007-02-15T13:44:25-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14189#p14189 <![CDATA[How to make the computer think that a key has been pressed?]]>
Try the following to get the key press and release codes.

Do: press$ = INKEY$
code = INP(&H60)
locate 20, 20: PRINT press$; code
LOOP UNTIL press$ = CHR$(27)

The release code is 128 more than the press code. Numbers Lock may mess up the shift and arrow key codes returned however. If both shift keys = 170 then change the numbers lock mode. I have a list of many DOS BIOS routines. Just email me with DOS BIOS in message! :lol:

Statistics: Posted by burger2227 — Thu Feb 15, 2007 1:44 pm


]]>
2007-01-30T02:22:31-05:00 2007-01-30T02:22:31-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14150#p14150 <![CDATA[How to make the computer think that a key has been pressed?]]>
Well, as I wouldn't use this as a keylogger or whatever, I am still curious as to what you would have to do. I want to make a "virtual keyboard" program for my TUI.
Hey Patz, not sure if I can be of any help but pm me about this. We'll see what's possible!

Grtz
Seb

Statistics: Posted by Seb McClouth — Tue Jan 30, 2007 2:22 am


]]>
2007-01-29T09:58:31-05:00 2007-01-29T09:58:31-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14149#p14149 <![CDATA[How to make the computer think that a key has been pressed?]]> Statistics: Posted by Evan — Mon Jan 29, 2007 9:58 am


]]>
2007-01-27T12:49:57-05:00 2007-01-27T12:49:57-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14138#p14138 <![CDATA[How to make the computer think that a key has been pressed?]]> Statistics: Posted by Patz QuickBASIC Creations — Sat Jan 27, 2007 12:49 pm


]]>
2007-01-23T15:15:53-05:00 2007-01-23T15:15:53-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14130#p14130 <![CDATA[How to make the computer think that a key has been pressed?]]>
But now I made a program that keeps a user off a program without a password.


:twisted:

Statistics: Posted by Evan — Tue Jan 23, 2007 3:15 pm


]]>
2007-01-22T23:13:23-05:00 2007-01-22T23:13:23-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14129#p14129 <![CDATA[How to make the computer think that a key has been pressed?]]>
What about your keylogger post?

You know... You can set the screen saver to NONE..... :wink:

Statistics: Posted by seaBiscuit$ — Mon Jan 22, 2007 11:13 pm


]]>
2007-01-22T20:59:57-05:00 2007-01-22T20:59:57-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14128#p14128 <![CDATA[How to make the computer think that a key has been pressed?]]>

Statistics: Posted by Evan — Mon Jan 22, 2007 8:59 pm


]]>
2007-01-20T05:43:27-05:00 2007-01-20T05:43:27-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14119#p14119 <![CDATA[How to make the computer think that a key has been pressed?]]> Statistics: Posted by Nodtveidt — Sat Jan 20, 2007 5:43 am


]]>
2007-01-19T19:25:57-05:00 2007-01-19T19:25:57-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14118#p14118 <![CDATA[Re: How to make the computer think that a key has been press]]>
What might help is if you state your true intentions rather than dancing around the mulberry bush, know what I mean?
I'm not actually going to try this, if that's what you mean. I'm busy with my own projects as well as school. I was just suggesting a method that might work.

Statistics: Posted by seaBiscuit$ — Fri Jan 19, 2007 7:25 pm


]]>
2007-01-19T06:14:35-05:00 2007-01-19T06:14:35-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14117#p14117 <![CDATA[Re: How to make the computer think that a key has been press]]>
Is it possible to use Windows API calls in QB?
No, it's not.
I'm thinking that maybe writing something in C that can be called with SHELL or piped through the QB program might work for that.
What might help is if you state your true intentions rather than dancing around the mulberry bush, know what I mean?

Statistics: Posted by Nodtveidt — Fri Jan 19, 2007 6:14 am


]]>
2007-01-18T22:02:11-05:00 2007-01-18T22:02:11-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14116#p14116 <![CDATA[Re: How to make the computer think that a key has been press]]>
You would need to use the GetAsyncKeyState API call, it picks up keystates whether the parent application has focus or not. But I don't think that that's what he's looking for...it looks more like what he wants is a program that enters keystrokes by itself, in which case, SendKeys will do the job.
Is it possible to use Windows API calls in QB? I'm thinking that maybe writing something in C that can be called with SHELL or piped through the QB program might work for that.

Statistics: Posted by seaBiscuit$ — Thu Jan 18, 2007 10:02 pm


]]>
2007-01-17T21:57:42-05:00 2007-01-17T21:57:42-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14114#p14114 <![CDATA[Re: How to make the computer think that a key has been press]]>
Maybe I'm wrong, but I don't think the keys would register if the program was running in the background, even if it's reading them directly from the keyboard port, at least in WinXP or something. It might work in a dos based os like Win95, but I'm still not sure. :?

Maybe QB isn't the right tool for the job.
You would need to use the GetAsyncKeyState API call, it picks up keystates whether the parent application has focus or not. But I don't think that that's what he's looking for...it looks more like what he wants is a program that enters keystrokes by itself, in which case, SendKeys will do the job.

Statistics: Posted by Nodtveidt — Wed Jan 17, 2007 9:57 pm


]]>
2007-01-17T18:30:48-05:00 2007-01-17T18:30:48-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14112#p14112 <![CDATA[Re: How to make the computer think that a key has been press]]>
How can you make the computer think that a key has been pressed?
You can do this in QB by using INKEY$ or ON KEY.

But you should expalin in more detail what you need or want to do.

Regards..... Moneo
He made a post about a keylogger before... So I'm guessing he wants to make a program that gets a key (before the OS does), record it, and then pass it to the OS. That way, you have a "keylogger". Records every key pressed, without the knowledge of a more advanced user.

Is that right...?
That shneakyshneaky Evan. :)

Maybe I'm wrong, but I don't think the keys would register if the program was running in the background, even if it's reading them directly from the keyboard port, at least in WinXP or something. It might work in a dos based os like Win95, but I'm still not sure. :?

Maybe QB isn't the right tool for the job.

Statistics: Posted by seaBiscuit$ — Wed Jan 17, 2007 6:30 pm


]]>
2007-01-17T16:37:27-05:00 2007-01-17T16:37:27-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14111#p14111 <![CDATA[Re: How to make the computer think that a key has been press]]>
How can you make the computer think that a key has been pressed?
You can do this in QB by using INKEY$ or ON KEY.

But you should expalin in more detail what you need or want to do.

Regards..... Moneo
He made a post about a keylogger before... So I'm guessing he wants to make a program that gets a key (before the OS does), record it, and then pass it to the OS. That way, you have a "keylogger". Records every key pressed, without the knowledge of a more advanced user.

Is that right...?

Statistics: Posted by Patz QuickBASIC Creations — Wed Jan 17, 2007 4:37 pm


]]>
2007-01-17T08:52:02-05:00 2007-01-17T08:52:02-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=14108#p14108 <![CDATA[How to make the computer think that a key has been pressed?]]> Statistics: Posted by Patz QuickBASIC Creations — Wed Jan 17, 2007 8:52 am


]]>