Tópico anterior Próximo tópico Novo tópico
ASP.NET
#479004 - 09/01/2018 19:32:29 | ||||
![]() MLALEX PONTE NOVA Cadast. em:Março/2010 ![]() |
Alguém sabe como ativar / desativar a tecla Num Lock via código?? Se não der via Asp.net VB, pode ser via javascript ou Jquery.
|
|||
Resposta escolhida #479006 - 09/01/2018 21:23:24 | ||||
![]() KERPLUNK RIO GRANDE DO SUL Cadast. em:Junho/2009 ![]() |
Você vai precisar usar API para isso:
using System.Runtime.InteropServices; ... [DllImport("user32.dll")] static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, UIntPtr dwExtraInfo); const int KEYEVENTF_EXTENDEDKEY = 0x1; const int KEYEVENTF_KEYUP = 0x2; const int CAPSLOCK = 0x14; const int NUMLOCK = 0x90; const int SCROLLLOCK = 0x91; Para usar: keybd_event(NUMLOCK, 0x45, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); keybd_event(NUMLOCK, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP,(UIntPtr)0); Mas definitivamente, por javascript, sem chance. _______________________________________________________________________ Gostaria de ter seu sistema Desktop "traduzido" para uma interface web? Podemos conversar... Virei Oráculo! The end is nigh, be ready for the nukes! |
|||
#479010 - 10/01/2018 11:39:23 | ||||
![]() MLALEX PONTE NOVA Cadast. em:Março/2010 ![]() |
VALEU KERPLUNK!!! MUITO OBRIGADO!!!
|
|||
Tópico anterior Próximo tópico Novo tópico