Jump to content

Recommended Posts

Posted

Hey all,

is this possible and how to do it.

I have a PC without screen stored somewhere. From time to time I have to sync files to that PC with an USB drive. At the moment I use remote desktop to take over the desktop and do the necessary stuff.

Is it possible to have an autoscript running in background which starts up when detecting the USB drive?

any help is welcome.

The more you learn, the less you know.

Posted

Hey all,

is this possible and how to do it.

I have a PC without screen stored somewhere. From time to time I have to sync files to that PC with an USB drive. At the moment I use remote desktop to take over the desktop and do the necessary stuff.

Is it possible to have an autoscript running in background which starts up when detecting the USB drive?

any help is welcome.

I think there some scripts around which will do that.

You can use

$d = DriveGetDrive("REMOVABLE");get a list of drives

For one application, where inserting a usb flash drive brings a window which I don't want I do this

Opt("WinTitleMatchMode", 2);match any substring
$USBDrive = "F";the letter of the drive for the usb drive
$USBWinTitle = "(" & $USBDrive & ":)"
While $somecodition
    
    If WinExists($USBWinTitle) Then
        WinClose($USBWinTitle)
    ;do something
    EndIf
    
    Sleep(100)
WEnd
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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
×
×
  • Create New...