Controlling a computer using a phone

Talk about anything
A random guy
Posts: 31
Joined: 10 Feb 2017, 19:55

Controlling a computer using a phone

20 Feb 2017, 19:37

How do devs make something happen on a computer using a app on a phone?
For example when a program is running it will do nothing until a person with an android app presses a button. Then it will do something like display a message box.
User avatar
nnnik
Posts: 4257
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Controlling a computer using a phone

21 Feb 2017, 04:05

The Computer and the Phone have to enter a Client-Server relationship.
The Server waits for Client and then executes predefined commands the client sends via predefined messages.
Recommends AHK Studio
guest3456
Posts: 2574
Joined: 09 Oct 2013, 10:31

Re: Controlling a computer using a phone

21 Feb 2017, 09:18

^exactly. could be as simple as waiting for an email to be received and then automatically responding to that. or could be way more advanced

A random guy
Posts: 31
Joined: 10 Feb 2017, 19:55

Re: Controlling a computer using a phone

24 Feb 2017, 19:30

how do they enter this "Client-Server relationship"
User avatar
nnnik
Posts: 4257
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: Controlling a computer using a phone

26 Feb 2017, 16:50

That depends but you should be able to do it with AutoHotkey.
Your phone needs to be able to connect with your PC. You need to choose a way to connect with your phone. Do you want access from inside the network or also from outside.
If you want to connect your phone directly with your PC you could use a TCP/IP library to gain the ability to send data packages from A to B.
Then you could make one Server script open up a port and listen to any incoming connections on that port. The client script would have to connect to the ip of the computer at that specific port and then send/receive data.
Recommends AHK Studio
A random guy
Posts: 31
Joined: 10 Feb 2017, 19:55

Re: Controlling a computer using a phone

28 Feb 2017, 20:10

oh ok ill see if i can do this with autohotkey
Skittlez
Posts: 11
Joined: 13 Mar 2014, 12:16

Re: Controlling a computer using a phone

11 Mar 2017, 13:04

You could take a look at using AHKhttp for the server side. Then you just have to make http requests from your phone.
rakesha002
Posts: 17
Joined: 04 Dec 2017, 00:11

Re: Controlling a computer using a phone

23 Apr 2019, 04:08

Hello,

nnnik

I know its very old topic but,
i need some help in "Client-Server relationship", i'm a noob too,
i learned a bit using "AHKhttp" for the server side,
Can you give some example about making "http requests from your phone(android)".
also how to keep server up and running to listen the requests,
Thanks.
chrispeddler
Posts: 3
Joined: 10 May 2019, 04:30

Re: Controlling a computer using a phone

20 May 2019, 22:01

nnnik wrote:
26 Feb 2017, 16:50
That depends but you should be able to do it with AutoHotkey.
Your phone needs to be able to connect with your PC. You need to choose a way to connect with your phone. Do you want access from inside the network or also from outside.
If you want to connect your phone directly with your PC you could use a TCP/IP library to gain the ability to send data packages from A to B.
Then you could make one Server script open up a port and listen to any incoming connections on that port. The client script would have to connect to the ip of the computer at that specific port and then send/receive data.
Glad I read this thread. Having same problem connecting my desktop to my mobile. I'm learning here. Thanks!

Return to “Offtopic”

Who is online

Users browsing this forum: No registered users and 14 guests