Arsip: Detect Caps lock On ?

 
user image
more 17 years ago

debby

Gimana caranya di Tedit1 setfocus kedetect Caps Lock on (jika Caps lock hidup), sehingga muncul Baloon tip isinya Caps lock On ? ... kayak mau Login password di WinXp .
user image
more 17 years ago

xerion

pada event OnEnter, lalu lihat ini _http://www.greatis.com/delphicb/tips/lib/manipulators-capslockon.html trus untuk muncul balon tips ???? ---> google .....
user image
more 17 years ago

debby

Thx.... Tapi lagi sakit
user image
more 17 years ago

MrLee

Deb Site nya di ubah dahulu! http://www.greatis.com/delphicb/tips/lib/manipulators-capslockon.html Turn on\off the Caps Lock For turning the Caps Lock key see this procedure (use VN_NUMLOCK instead of VK_CAPITAL for Num Lock).

procedure TForm1.Button1Click(Sender: TObject);
var
  KeyState: TKeyboardState;
begin
  GetKeyboardState(KeyState);
  if (KeyState[VK_CAPITAL]=0) then
  begin
    // Simulate a "CAPS LOCK" key release
    Keybd_Event(VK_CAPITAL, 1, KEYEVENTF_EXTENDEDKEY or 0, 0);
    // Simulate a "CAPS LOCK" key press
    Keybd_Event(VK_CAPITAL, 1, KEYEVENTF_EXTENDEDKEY or KEYEVENTF_KEYUP, 0);
  end
  else
  begin
    Keybd_Event(VK_CAPITAL, 0, KEYEVENTF_EXTENDEDKEY or 0, 0);
    Keybd_Event(VK_CAPITAL, 0, KEYEVENTF_EXTENDEDKEY or KEYEVENTF_KEYUP, 0);
  end;
end;
more ...
  • Pages:
  • 1
Share to

Random Topic

Local Business Directory, Search Engine Submission & SEO Tools FreeWebSubmission.com SonicRun.com