Clipboard exchanger between Android device and Computer

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
User avatar
bichlepa
Posts: 146
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Clipboard exchanger between Android device and Computer

Post by bichlepa » 27 Mar 2014 08:47

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
Last edited by bichlepa on 31 May 2014 18:52, edited 2 times in total.

henkster
Posts: 23
Joined: 08 Feb 2014 10:52

Re: Clipboard exchanger between Android device and Computer

Post by henkster » 30 Mar 2014 18:30

Wow! Nice work! Allthough..I use google keep to exchange text between android and pc...
Still... good work!

BoBo
Posts: 110
Joined: 05 May 2014 12:45

Re: Clipboard exchanger between Android device and Computer

Post by BoBo » 31 May 2014 16:38

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 :)

User avatar
bichlepa
Posts: 146
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Re: Clipboard exchanger between Android device and Computer

Post by bichlepa » 31 May 2014 17:29

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.

User avatar
bichlepa
Posts: 146
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Re: Clipboard exchanger between Android device and Computer

Post by bichlepa » 31 May 2014 18:45

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.

User avatar
bichlepa
Posts: 146
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Re: Clipboard exchanger between Android device and Computer

Post by bichlepa » 17 Jul 2014 17:25

I've fixed a bug today.

Post Reply