Page 1 of 1

Clipboard exchanger between Android device and Computer

Posted: 27 Mar 2014 08:47
by bichlepa
The clipboard exchanger can exchange the clipboard content between the computer and an Android device.
For example send the link of the flow, that was just uploaded to the automagic servers, to the computer.

What should be done:
  • Computer and the Android device should be in the same wifi network.
  • Install the computer program and add the flow to your Automagic.
  • Enter the IP Address to the program. You can find it in the trigger of the flow:
Image

Screenshot of the computer program:
Image

Downloads:

Installation file: https://dl.dropbox.com/s/mzaa6j5ky49zqx ... lation.exe

Main flow: https://dl.dropbox.com/s/i4523zlgg70smx ... hanger.xml

Sourcecodes of the AutoHotkey script: https://dl.dropbox.com/s/78yjmzq9b4i3e2 ... hanger.ahk

Edit on 31.05.2014:
I have added a new flow that allows to open an input form in a browser and either to enter the text you want to send or recieve the clipboard content.
Image
If you already downloaded the main flow before June 2014 please redownload it.

Flow for the HTML form: https://dl.dropbox.com/s/tbxcfyy1arslz7 ... 20form.xml

Re: Clipboard exchanger between Android device and Computer

Posted: 30 Mar 2014 18:30
by henkster
Wow! Nice work! Allthough..I use google keep to exchange text between android and pc...
Still... good work!

Re: Clipboard exchanger between Android device and Computer

Posted: 31 May 2014 16:38
by BoBo
Hallo bichlepa,
would you mind to explain with a few sentences how clipboard exchanger exactly works?
Thx for your effort.

BoBo 8-)

Die grundsätzliche Funktionsweise wäre interessant.
Das AHK-Script habe ich reviewed (bin aber auf Linux, deshalb bei mir nicht lauffähig). Danke :)

Re: Clipboard exchanger between Android device and Computer

Posted: 31 May 2014 17:29
by bichlepa
How it works:

The computer program (an AutoHotkey script) opens a GUI and waits for user input.

When the user clicks on "Recieve" it sends a HTTP request to the address the user has entered ("HTTP://" will be inserted if user did not enter this) and waits for an answer.
If it recieved something it puts it into the clipboard, otherwise an error message will pop up.

When user clicks on "Send" it firstly converts the clipboard content into URI format. Then it sends a HTTP request and parses a paremeter "clipboard" by the get-methode that contains the clipboard content.
(for example: HTTP://192.168.1.1:8080/clipboard?clipboard=My%20clipboard%20content)
It waits for an answer that should contain "success", otherwise an error message will pop up.

The AM flow waits for a HTTP Request.
After the HTTP Request was sent, it checks whether there is an "clipboard" parameter.
If so, it puts the parameter content into the clipboard and responses with the text "success".
If not, it responses with the clipboard content.

@BoBo
Willst du ein ähnliches Programm für Linux schreiben? Wenn du es hingekriegst, dann poste es hier, ich nehme es dann in die Beschreibung mit auf.

Re: Clipboard exchanger between Android device and Computer

Posted: 31 May 2014 18:45
by bichlepa
I just got an idea how to expand the functionality with an additional flow with the trigger "HTTP request".
If you open http://192.168.1.100:8080/clip (the IP address probably should be modified) a input form is shown where you can either type in what you want to send or recieve the content of the clipboard.

It's not very beautiful, so i'd appreciate it if someone will redesign it. The code for the html page can be found in the flow.

In order to work properly with Unicode characters you will need to update the main Clipboard Exchange flow.

You can find the download links on the first post.

Re: Clipboard exchanger between Android device and Computer

Posted: 17 Jul 2014 17:25
by bichlepa
I've fixed a bug today.