How to catch a pressed key

forum.cdk (2000-2005) & forum.td.cdk (2005-2010)
NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

How to catch a pressed key

Post by NewsgroupServer » 07 Oct 2009, 14:36

 Posted by:  Tobias Jäkel 

Maybe a stupid question but:

How do I catch when a key is pressed with the cdk and notify.

Like in IntelliSal I want to catch if someone presses CTRL+SPACE. How to?

Thanks in advance
Tobias

NewsgroupServer
Robot
Robot
Posts: 118939
Joined: 24 Feb 2017, 12:00
Location: World wide

How to catch a pressed key

Post by NewsgroupServer » 12 Oct 2009, 09:53

 Posted by:  Ingo Pohl 

!!CB!! 173
On SAM_Create
!
Set hAccRTF = VisWinLoadAccelerator( Datafield/Multiline/etc..,
VTM_Accelerator, KDS_Ctrl, VK_SPACE, -10 )
!

Datafield/Multiline/etc..
Message Actions:
!!CB!! 173
On VTM_Accelerator
! Wenn strg + space gedrückt wurde...
If lParam = -10
Call xyz ()

Return to “td.cdk”

Who is online

Users browsing this forum: Ccbot [Crawler] and 0 guests