Qbasicnews.com

Full Version: Keypress bug?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
http://www.phatcode.net/public/basstest.zip
[All of the BASS, FMOD programs]

Win 98:
If I focus the window (in any of the above programs) I can press ESC until my fingers bleed.

If I focus anything but the window, and press ESC, it closes the FB app.

:???:
I found that too, very strange.
I didn't have that problem...
ME either.

You said windows 98...maybe thats it?

I'm running XP>
Doesn't work here. I have win98 (wierd though.... i thought it did work the first time a tried it)
I'm guessing that is happening coz GetAsyncKeyState was declared as returning an Integer (32-bit), while the M$ docs show it's a short int (16-bit). Probably Windows NT clears the high-word when returning the value but in 9x that doesn't happen..

I did not add yet INKEY$.. nor i did tell Plasma that an Integer is 32-bit in FB, sorry ;)
hrmm, that would be helpful to know, yes Tongue

...Now I have to go fix all the includes...
To Z!re and all of you who replied:

For the tests in the link that Z!re gave, when I tested them all, all I remembered was that while they were running, even when they were full-screened as well, I hitted Ctrl+Break just one time to exit, and the thing successfully exited (hey, ever thought about that? Wink ). No fuss, no kidding! Big Grin

And Plasma, if you are fixing the includes, then on each one here, just do this one thing only: could you change the phrase:
Code:
Press ESC to Exit
....to....
Code:
Press Ctrl+Break to Exit
......because then that’ll simply make things a whole lot more easier and sweeter for all of us. :king: !

Thank you all again so much, and I am glad to help ‘ya. ^-^



[Image: AAPname.gif]
- Adigun Azikiwe Polack
One of the Founders of “Aura Flow”
Continuing Developer of “Frantic Journey”
Current Developer of “Star Angelic Slugger”
Webmaster of the “AAP Official Projects Squad”



______________________________________
[Image: NewQBCPCbanner.jpg]
T H E • T H I R D • C A L I B E R • N O W • B E C O M E S • E V E N • M O R E • T H R I L L I N G ! ! ! Big Grin !!

Continuing to encourage even more positive originality than ever before, this original compo currently has EXCLUSIVE challenges in QB programming based on Gradius and even our old-school favorite console called the Atari 2600, plus a whole lot of other very exciting new stuff now!!! ;*) !

Yo, got game for the QuickBASIC Caliber Programming Compo 2004/2005? Then I just challenge you to please visit http://dhost.hopto.org/aapproj/qbcpc/. That means YOU, pal! Wink
Wow... you just missed the point... amazing....


You know, that small cross, top right of the window... you can click there too you know...

The point was not to close it, but that the keyhandler didnt work...
Changed the includes, key input still not working right on 98. I must be doing something else wrong....

FMOD also doesn't like to init on 98, keeps crashing. I'll keep looking at it.
Pages: 1 2