Jump to content

Devcon to check USB device


Recommended Posts

Hi,

Im starting to use Autoit recently and, im still learning to make my scripts using some examples and reading alot from this forum.

But, sometimes I get "stuck" with some things that generally are newbie related issues... :)

Said that, I need help to convert this batch file into Autoit script, if someone could help me out, i would appreciate it.

---------------

SETLOCAL
SET LT=
FOR /F "tokens=2 delims=:()" %%A IN ('DEVCON find * ^| FIND /I "Logitech"') DO SET LT=%%A
IF DEFINED LT (
    ECHO.%LT%
) ELSE (
    ECHO  No Logitech Keyboard driver installed
)
ENDLOCAL
GOTO:EOF

--------------

Basically I need to check if USB keyboard, named "Logitech" its connected to PC.

Thanks.

Massires

 

 

Link to comment
Share on other sites

  • Moderators

Did you try a forum search before posting? A simple search of Devcon shows almost 300 posts on the subject.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Did you try a forum search before posting? A simple search of Devcon shows almost 300 posts on the subject.

​Yes, i did had searched the last few days for devcon related sources, while the forum, i believe had some kind of issues, because sometimes ot was not possible to see plain text...

I understand your point, and i know that sometimes people are lazy to search before ask for help in forums.

Im asking for help for this devcon issue, because i already spent some days trying to figure out how to get my script working...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...