#184836 - 2008-01-25 11:10 AM
Win32_Keyboard
|
objscripting
Fresh Scripter
Registered: 2007-12-20
Posts: 14
|
Hi there,
I am using Win32_Keyboard to identify the plugged in keyboard(s). My problem is now that if someone is using a laptop with docking station is shows up with two keyboards.
For Each $keyboard In GetObject('WinMgmts:root/cimv2').ExecQuery('select * from Win32_Keyboard', , 48)
$keyboardLayout = Right($keybItem.Layout,3)
$keyboard = $keyboardLayout
Next
Does someone know a way to identify if the keyboard is the notebook or the external one?
Chris
|
|
Top
|
|
|
|
#184843 - 2008-01-25 12:13 PM
Re: Win32_Keyboard
[Re: Jochen]
|
Arend_
MM club member
   
Registered: 2005-01-17
Posts: 1896
Loc: Hilversum, The Netherlands
|
I have a docked notebook, and I can tell you that for my dockingstation WMI does not detect a second keyboard, but that is most likely because HP uses a port replicator so windows does not know there is a second keyboard. It will detect a second one if it is connected trough USB, but you don't need a docking station to test that
|
|
Top
|
|
|
|
#184848 - 2008-01-25 01:18 PM
Re: Win32_Keyboard
[Re: Arend_]
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 1362 anonymous users online.
|
|
|