StrokesPlus.net Forum
»
General Discussion
»
General Discussion
»
Could a USB mouse or a Bluetooth device new connects to the computer be recognized?
Rank: Advanced Member
Groups: Moderators, Approved Joined: 4/23/2020(UTC) Posts: 161 Thanks: 46 times Was thanked: 23 time(s) in 17 post(s)
|
There is a USB mouse or a Bluetooth device to find in the Device Manager when it connects. Could it be recognized by S+net?
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
I am going to add some new events:
- App Window Created - App Window Destroyed - Device Change
So you will then be able to notice when the hardware has changed and examine to see if the device is present. I will add some kind of sp object/array of devices to make it easy to search.
|
|
|
|
Rank: Advanced Member
Groups: Moderators, Approved Joined: 4/23/2020(UTC) Posts: 161 Thanks: 46 times Was thanked: 23 time(s) in 17 post(s)
|
Originally Posted by: Rob I am going to add some new events:
- App Window Created - App Window Destroyed - Device Change
So you will then be able to notice when the hardware has changed and examine to see if the device is present. I will add some kind of sp object/array of devices to make it easy to search. Aha, I am looking forward to it.
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
See release 0.4.2.7 for Global Actions > Hardware Events > Devices Changed
See Script Help > Utilities > AllDevices for example code. Note that the event can be triggered even when the screens go to sleep, for example, and sometimes you may get multiple events during hardware changes. Not a big deal, but just so you're aware.
I tried to add the Window Created/Destroyed, but it was just too messy and would cause performance issues, so I have shelved that for now.
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Advanced Member
Groups: Moderators, Approved Joined: 4/23/2020(UTC) Posts: 161 Thanks: 46 times Was thanked: 23 time(s) in 17 post(s)
|
Originally Posted by: Rob See release 0.4.2.7 for Global Actions > Hardware Events > Devices Changed
See Script Help > Utilities > AllDevices for example code. Note that the event can be triggered even when the screens go to sleep, for example, and sometimes you may get multiple events during hardware changes. Not a big deal, but just so you're aware.
I tried to add the Window Created/Destroyed, but it was just too messy and would cause performance issues, so I have shelved that for now.
Interestingly, I find my USB mouse device and my USB disk, and now I can restrict the mouse automatically with the USB mouse or do other things. A big thank you for your so efficient work for this function.
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
General Discussion
»
Could a USB mouse or a Bluetooth device new connects to the computer be recognized?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close