forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


SuppressBUTTON event

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Thu Aug 24, 2006 12:26 pm    Post subject: SuppressBUTTON event Reply with quote

Hi, VDSWorld Hi

Single a question:

Somebody knows how to include in a dialogue a button that responds to the key "Suppress" ("Sup", not "Del")?

Thanks in advance.

____________

uVeDeSe
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Thu Aug 24, 2006 2:13 pm    Post subject: Reply with quote

Do you mean on the keyboard? I have no such key called Suppress on my keyboard.

You may try using the Windows api GetAsyncKeyState to see when keys are pressed.

Checking the Win32 Programmer's Reference from Microsoft shows no virtual keycode for suppress, however it's likely this key is OEM specific?

Or maybe it's one of these buttons below?

Code:
key                 vkeycode             hex

BACKSPACE           VK_BACK              08
CLEAR               VK_CLEAR             0C
CANCEL              VK_CANCEL            03
PAUSE               VK_PAUSE             13
ESCAPE              VK_ESCAPE            1B
Back to top
View user's profile Send private message
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Thu Aug 24, 2006 5:52 pm    Post subject: Reply with quote

Thanks PGWARE, I found what looked for.

In case to somebody it serves to him:

Code:
%%button = @lib(user32,GetKeyState,int:,46)


%%button will have a value smaller than 0 if the "delete" key has been pressed ("suppress" or "suprimir" in Spanish)
________________
uVeDeSe
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group