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 


Capturing numpad hotkeys

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


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Jun 21, 2006 1:44 pm    Post subject: Capturing numpad hotkeys Reply with quote

Does anybody know how to capture the numpad keys by using the hotkey command? I figured out the code below, but the "5" did not work and it only works when the NumLock key is disabled.

Code:
  DIALOG CREATE,Keypad,-1,0,240,160
  DIALOG ADD,EDIT,EDIT1,4,5,180,19,
  DIALOG SHOW


hotkey add,1,Numpad+End
hotkey add,2,Numpad+Down
hotkey add,3,Numpad+PgDn
hotkey add,4,Numpad+Left
hotkey add,5,Numpad+5
hotkey add,6,Numpad+Right
hotkey add,7,Numpad+Home
hotkey add,8,Numpad+Up
hotkey add,9,Numpad+PgUp

:Evloop
wait event
goto @event()

:Hotkey
dialog set,edit1,@dlgtext(edit1)@hotkey()
goto Evloop

:Close
exit

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Wed Jun 21, 2006 9:03 pm    Post subject: Reply with quote

Hi Skit3000 Very Happy

It seems that it works when it is pressed the combination "Bloq Num key"+5.

But this code disable all the previous functions in the system... Sad

Question

_______________

uVeDeSe

visit: http://www.uvedese.es


Last edited by uvedese on Wed Apr 02, 2008 8:49 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Jun 23, 2006 5:30 pm    Post subject: Reply with quote

Thanks uvedese, but it doesn't work Sad Although VDS does nót generate a warning when specifying the hotkey you suggested, just like with "Numpad+5" Rolling Eyes
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Fri Jun 23, 2006 11:51 pm    Post subject: Reply with quote

The Win32 Programmers Reference shows the Virtual Key Code as VK_NUMPAD5. Maybe try NUMPAD5 with no space or + sign?
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sat Jun 24, 2006 10:41 am    Post subject: Reply with quote

Nope, VDS gives an error on that one Sad
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sat Jun 24, 2006 3:44 pm    Post subject: Reply with quote

Try the actual value of VK_NUMPAD5: $065
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
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