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.
Controlling a computer using a phone
-
- Posts: 31
- Joined: 10 Feb 2017, 19:55
Re: Controlling a computer using a phone
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.
The Server waits for Client and then executes predefined commands the client sends via predefined messages.
Recommends AHK Studio
Re: Controlling a computer using a phone
^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
-
- Posts: 31
- Joined: 10 Feb 2017, 19:55
Re: Controlling a computer using a phone
how do they enter this "Client-Server relationship"
Re: Controlling a computer using a phone
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.
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
-
- Posts: 31
- Joined: 10 Feb 2017, 19:55
Re: Controlling a computer using a phone
oh ok ill see if i can do this with autohotkey
Re: Controlling a computer using a phone
You could take a look at using AHKhttp for the server side. Then you just have to make http requests from your phone.
-
- Posts: 31
- Joined: 10 Feb 2017, 19:55
Re: Controlling a computer using a phone
interesting!
-
- Posts: 46
- Joined: 04 Dec 2017, 00:11
Re: Controlling a computer using a phone
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.
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.
-
- Posts: 3
- Joined: 10 May 2019, 04:30
Re: Controlling a computer using a phone
Glad I read this thread. Having same problem connecting my desktop to my mobile. I'm learning here. Thanks!nnnik wrote: ↑26 Feb 2017, 16:50That 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.
Re: Controlling a computer using a phone
I use Real VNC viewer for Android, and TightVNC client on pc for remote access to pc from Android.
Return to “Off-topic Discussion”
Who is online
Users browsing this forum: No registered users and 27 guests