Jump to content
Sign in to follow this  
shimonBL

detect the keyboard or Mouse device

Recommended Posts

shimonBL

hi

i looking for a way to detect the keyboard or Mouse device

i have 2 keyboard and 2 Mouse how i can find the device name that when i type or move my mouse ?

any one have an idea

thanks

shimon

Share this post


Link to post
Share on other sites
ludocus

I dont think this is possible.. Why do you want to know?

Share this post


Link to post
Share on other sites
Cw2K1

Maybe MouseGetCursor()

Return Value

Returns a cursor ID Number:

0 = UNKNOWN (this includes pointing and grabbing hand icons)

1 = APPSTARTING

2 = ARROW

3 = CROSS

4 = HELP

5 = IBEAM

6 = ICON

7 = NO

8 = SIZE

9 = SIZEALL

10 = SIZENESW

11 = SIZENS

12 = SIZENWSE

13 = SIZEWE

14 = UPARROW

15 = WAIT

if it returns 7 than it means there is no mouse? Right?

btw: i think you can get the current mouse position and than change, if it is not changed than it means there is no mouse. and for Keyboard let me think...

Edited by Cw2K1

Enjoy the complexity.Feel the power of simplicity.

Share this post


Link to post
Share on other sites
ken82m

did u ever figure this out? I'm trying to do something similiar?


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.