Dav's Qbasic Site.

Dav's mug.

 

Main

News

Forum

Qbasic/QB45

QB64

QBKB

Projects

More...

 

Forum


Back to Messages

Marco (Thu Dec 17 2015 at 9:10 pm)
Send scan keycodes...

Hello Dav is Marco again, I read the post of Galleon and I found a solution but I need help because I can't disable , once activated , the simulated pressing alt + enter keys.

This procedure does exactly what I wanted but remains "alt key" enabled .

================================
DECLARE DYNAMIC LIBRARY "user32"
    SUB SENDKEYS ALIAS keybd_event (BYVAL bVk AS LONG, BYVAL bScan AS LONG, BYVAL dwFlags AS LONG, BYVAL dwExtraInfo AS LONG)
END DECLARE

VK_MENU = &H12 'alt key
VK_ENTER = &HD 'enter key

_FULLSCREEN
_MOUSEHIDE

PRINT "PRINT SOMETHING TO VIEW THE EFFECTS OF SIMULATED KEYPRESS ALT+ENTER."

SENDKEYS VK_MENU, 0, 0, 0
SENDKEYS VK_ENTER, 0, 0, 0
================================

What is the command to disable it ?

Off Topic ... I can't register myself on the site QB64.net ... finishing entering data, the system takes me back to the main forum page but the registration is not successful.

If I try to enter my username I have an error "Username doesn't exist"....

Please help me....


Reply to this Message


Name
Subject
Message

No HTML code will be allowed in the message.
All SPAM and inappropriate material will be deleted.

Powered by FlatForum 1.4

© Copyright 2011 by Dav - All Rights Reserved.
Hosted by www.qbasicnews.com.
Users now online: 1
Hits: 15914