how to remotely trigger a command from Android to Windows

3 posts in this topic

Let's say I want to trigger an AutoIT command (eg. "lock Windows") on my Windows server PC from my client Android Smartphone, both in my same home WiFi network.

What's the best way to perform the communication from my Android system to my Windows system for this purpose?

Share this post

Link to post
Share on other sites

I would say you need some way to communicate between your phone and your PC. I doubt AutoIt would be of any use in this communication though, so we probably won't be of much help here. You would have to create an Android app of some sort that is able to communicate with the server.


Share this post

Link to post
Share on other sites

If you plan to send lot of commands and want then to be executed in real time and get responses, then keep an active TCP connection between your Android smartphone and an AutoIt server.

Another option: you could create a HTTP server (with AutoIt, it's possible) and your Android app will make requests to it with the commands you want it to execute (not AutoIt code, that would be a security flaw; use keywords instead).


Take a look on TCPServer UDF on my signature, it shall help.

I assume you know Android programming. Am I right?

My stuff


My UDFs  _AuThread multithreading emulation for AutoIt · _ExtInputBox an inputbox with multiple inputs and more features · forceUTF8 fix strings encoding without knowing its original charset · JSONgen JSON generator · _TCPServer UDF multi-client and multi-task (run on background) event-based TCP server easy to do · _TCPClient_UDF multi-server and multi-task (runs on background) event-based TCP client easy to do · ParseURL and ParseStr functions ported from PHP · _CmdLine UDF easily parse command line parameters, keys or flags · AutoPHP Create documents (bills, incomes) from HTML by sending variables/arrays from AutoIt to PHP · (Un)Serialize Convert arrays and data into a storable string (PHP compatible) · RTTL Plays and exports to MP3 Nokia-format monophonic ringtones (for very old cellphones) · I18n library Simple and easy to use localization library · Scripting.Dictionary OOP and OOP-like approach · Buffer/stack limit arrays to N items by removing the last one once the limit is reached · NGBioAPI UDF to work with Nitgen fingerprint readers · Serial/Licensing system require license key based on unique machine ID from your users · HTTP a simple WinHTTP library that allows GET, POST and file uploads · Thread true AutoIt threads (under-dev) · RC4 RC4 encryption compatible with PHP and JS Classes _WKHtmlToX uses wkhtmlto* to convert HTML files and webpages into PDF or images (jpg, bmp, gif, png...) Snippets _Word_DocFindReplaceByLongText replace strings using Word UDF with strings longer than 255 characters (MSWord limit) rangeparser parser for printing-like pages interval (e.g.: "1,2,3-5") EnvParser parse strings/paths with environment variables and get full path Random stuff Super Mario beep sound your ears will hurt


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