Trunkles

USB camera plugged in

5 posts in this topic

I'm going to write a little programme that lives in the system tray and, when I plug my camera in to a USB port, it detects it and copies the files off. Copying the files off and dealing with them is trivial, no problem doing that. The issue is...

How the hell do I detect the camera?

Your help would be much appreciated. :)

Thanks,

Simon.

Share this post


Link to post
Share on other sites



there is a udf some where in the form, that detect when you plug in an usb stick, so you could use that udf and then look for a certain folder to detect if it is your camera, cameras usually have folders with specific names where the photos or videos are stored, so i would suggest you could do it that way

Share this post


Link to post
Share on other sites

I believe I accomplished something similar to this with WMI.

 

I'll dig through my old scripts and if I find it I'll post it as an example.

Share this post


Link to post
Share on other sites

Jvds - I wondered if there was a UDF, gawd knows which one though. :D

Hydranix - Thanks, that'd be handy. :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I think it was this one, post 6, but seems to not work
https://www.autoitscript.com/forum/topic/42402-detecting-usb-drive-insertion/
EDIT:

actually it does work but you have to write the name of the removable drive in  $MyDrive = "SCSD TOOLS"
it is exactly what you need, hence the name will make it respond only when your camera is pluged in =)

Edited by jvds
EDIT

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