• Print

Author Topic: QB64 recognizes ALT even when it does not have focus. [fixed*]  (Read 112 times)

mcalkins

  • Hero Member
  • *****
  • Posts: 1269
    • qbasicmichael.com
    • Email
QB64 recognizes ALT even when it does not have focus. [fixed*]
« on: April 03, 2013, 03:07:52 AM »
QB64 0.978 win32.

Even when some other windows is active and has focus, the IDE toggles the menu activation when you press ALT.

Regards,
Michael
« Last Edit: April 03, 2013, 07:58:09 PM by Galleon »
The QBASIC Forum Community: http://www.network54.com/index/10167 Includes off-topic subforums.
QB64 Off-topic subforum: http://qb64offtopic.freeforums.org/

Mrwhy

  • Hero Member
  • *****
  • Posts: 2893
  • My Dad called me Mr Why when I was 5.
    • Email
Re: QB64 recognizes ALT even when it does not have focus.
« Reply #1 on: April 03, 2013, 03:25:48 AM »
Great discovery Mcalkins
Lets find an exciting way to exploit it!

mcalkins

  • Hero Member
  • *****
  • Posts: 1269
    • qbasicmichael.com
    • Email
Re: QB64 recognizes ALT even when it does not have focus.
« Reply #2 on: April 03, 2013, 05:33:29 AM »
Also, sometimes the IDE puts itself in the foreground after you've compiled a program, and just pass the mouse over the IDE. It doesn't seem to do it every time though.

Quote from: Mrwhy on April 03, 2013, 03:25:48 AM
Great discovery Mcalkins
Lets find an exciting way to exploit it!

 ??? It's not my best discovery. What's to exploit?

If you want similar functionality yourself, you could probably use GetAsyncKeyState.

Regards,
Michael
The QBASIC Forum Community: http://www.network54.com/index/10167 Includes off-topic subforums.
QB64 Off-topic subforum: http://qb64offtopic.freeforums.org/

Galleon

  • Administrator
  • Hero Member
  • *****
  • Posts: 4664
  • QB Forever
    • Email
Re: QB64 recognizes ALT even when it does not have focus. [fixed*]
« Reply #3 on: April 03, 2013, 07:59:29 PM »
Made minor changes to FreeGLUT source which was causing this bug.
(this problem was not present in the Linux version of FreeGLUT)
« Last Edit: April 03, 2013, 08:37:02 PM by Galleon »
Something old... Something new... Something borrowed... Something blue...

  • Print