Home » Computers » Software » How to start an application remotely

How to start an application remotely



You can start an application remotely with the help of DropBox and AutoHotkey. DropBox is a cloud-based service that lets you keep your files on a remote server so that you can access them from any computer running any operating system. Well, by any…at HowToPlaza we’ve just tried it on Ubuntu and Windows XP. AutoHotkey on the other hand is an open source utility for Windows and you can use it to automate many Windows tasks and create keyboard shortcut keys.

In order to use the combination of DropBox and AutoHotkey to start an application remotely both these utilities must be installed on your PC (where you want to run the application) and they should be actively running. When you install and run AutoHotkey the scripts used can be run as executables.

The DropBox installation program will create a folder where you’ll normally store all the files that you want to syncronize with your cloud-based account.

For this example, let’s suppose you want to run FireFox remotely. You can create an AutoHotkey containing the following lines:

Loop
{
Sleep, 180000
Reload
}

store it in your DropBox folder and then double-click on it. It’ll start running. 180000 makes sure the file is reloaded every 3 minutes (3×60 seconds x 1000 milliseconds).

Leave your computer on and let your script run.

Now suppose you are in another city and you would like to launch FireFox from there. This is just for explanation and no purpose is actually solved by merely launching the browser like this. Anyway, using the other computer or laptop that you have with you at the remote location you go to the folder having the synchronized versions of your DropBox files. From there you open the above mentioned AutoHotkey file and add the following line above the Loop:

Run, “firefox.exe”

So now the file becomes:

Run, “firefox.exe”
Loop
{
Sleep, 180000
Reload
}

Save the file. After 3 minutes FireFox will be remotely launched. Remember to remove the line running FireFox after 3 minutes and then save the script, otherwise it’ll keep launching FireFox every 3 minutes.

So this is how you can start an application remotely, using DropBox and AutoHotkey.