Idea from "Mouse w/o Borders"

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Idea from "Mouse w/o Borders"

Post by AUGE_OHR »

hi,

there is a Microsoft "Garage" Tool called "Mouse w/o Borders" (http://www.aka.ms/mm)

you can "control" Mouse/Keyboard upto 4 PC in a Network and transfer Data to/from (local) Clipboard

more Information here
https://answers.microsoft.com/en-us/win ... f28aa6b50d

---

what i like have

Send a Message to other Workstation -> "Mailslot" :?:
Sent or Get other Workstation Clipboard -> Net-Clipboard :?:

---

ask ChatGPT
can you tell me how to use Mailslot to send Message to other Workstation in lokal Network ?

1. Create a mailslot on the sending workstation:
CreateMailslot("\\.\mailslot\MyMailslot", 0, MAILSLOT_WAIT_FOREVER, NULL);

2. Create a mailslot on the receiving workstation:
CreateMailslot("\\.\mailslot\MyMailslot", 0, MAILSLOT_WAIT_FOREVER, NULL);

3. On the sending workstation, write the message to the mailslot:
WriteFile(hMailslot, lpBuffer, dwBytesToWrite, &dwBytesWritten, NULL);

4. On the receiving workstation, read the message from the mailslot:
ReadFile(hMailslot, lpBuffer, dwBytesToRead, &dwBytesRead, NULL);

5. Close the mailslot handles on both workstations:
CloseHandle(hMailslot);
can you tell me how Sent or Get other Workstation Clipboard

To send or get other workstation clipboard, you can use a clipboard sharing program. There are many programs available that allow you to share clipboard data between multiple computers. Some of the most popular programs include Synergy, ShareClipboard, and ClipboardFusion.
can you show me CODE how Sent or Get other Workstation Clipboard ?

//Sending clipboard data to another workstation

//Create a new Clipboard object
Clipboard clipboard = new Clipboard();

//Put the data you want to send into the clipboard
String data = "This is the data I want to send";
clipboard.setContents(data, null);

//Create a socket connection to the other workstation
Socket socket = new Socket("otherWorkstationIP", port);

//Create an output stream to the socket
OutputStream out = socket.getOutputStream();

//Write the clipboard data to the output stream
clipboard.writeToStream(out);

//Close the socket connection
socket.close();

//Receiving clipboard data from another workstation

//Create a socket connection to the other workstation
Socket socket = new Socket("otherWorkstationIP", port);

//Create an input stream from the socket
InputStream in = socket.getInputStream();

//Create a new Clipboard object
Clipboard clipboard = new Clipboard();

//Read the clipboard data from the input stream
clipboard.readFromStream(in);

//Close the socket connection
socket.close();

//Retrieve the data from the clipboard
String data = clipboard.getContents();
how to make harbour CODE from these Answer :?:
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Idea from "Mouse w/o Borders"

Post by danielmaximiliano »

Hola Jimmy:
en ejemplos de HMG esta HMGTalk donde se crea un Socket para enviar mensajes.
sino tiene la opcion de usar MessagingService de windows 10 en adelante para enviar mensajes entre estaciones de trabajo.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Idea from "Mouse w/o Borders"

Post by AUGE_OHR »

hi Daniel,

Ok, i will look for it
have fun
Jimmy
Post Reply