Page 3 of 3
Re: Simple Remote Desktop
Posted: Sun Mar 02, 2025 7:53 pm
by Etayson
Kwai chang caine wrote: Sun Mar 02, 2025 6:52 pm
-snip-
And the screen of my X86 machine
-snip-
I'm afraid to disappoint you, but my code is certainly not perfect, although it works in most cases.
The whole problem is in the resolution. The program has a limit on the number of pixels in a rectangle for each coordinate and this limit is 1 byte. That is, in 1 rectangle there cannot be more than 256 pixels for each axis (code lines 1428, 1429).
Code: Select all
PokeA(*blackPos, j)
PokeA(*blackPos+1, i)
In your case, 1366 pixels are divided horizontally into 2 rectangles of 683 pixels, which already violates logic.
I'll think about how you can overcome this situation as soon as I have some free time.
Re: Simple Remote Desktop
Posted: Sun Mar 02, 2025 8:55 pm
by Kwai chang caine
Thanks a lot Etayson for your kindness
Because sincerely ..... you have realised one of my 2 PB dreams
Since the magical too, COMATE code, of SROD, where i was as impressed as I was with yours, it's really one of the most powerfull PB code for me, who which will change my life and those of all the computer disabled people
around me

Re: Simple Remote Desktop
Posted: Mon Mar 03, 2025 2:38 pm
by Skipper
Etayson wrote: Sun Feb 23, 2025 6:16 pm
Skipper wrote: Thu Feb 06, 2025 2:02 pm
What is the use case for this? Depending on platform, I use RDP and/or SSH and have some difficulty to understand what this is adding to that?
Cheers
Skipper
Firstly, RDP needs to be configured. I have computers on the network that I can ping, ports are open, RDP support is enabled, but I can't connect via RDP. I don't know what the reason is, maybe firewalls on WiFi routers don't allow it, maybe something else. And using Anydesk, for example, doesn't always give a good result, either they ask to buy a business license, or there are lags of several seconds. That's why the idea was born to write remote access program.
Thanks for your reply. Likely the RDP-port needs to be opened in the Wi-Fi's firewall… Be careful, that you only open it for the LAN, if that is your intended usage. If you also want to do port forwarding from the outside into your LAN, it might be better to set up a VPN tunnel and route RDP traffic through the tunnel.
Cheers
Skipper
Re: Simple Remote Desktop
Posted: Mon Mar 03, 2025 6:20 pm
by Etayson
Kwai chang caine wrote: Sun Mar 02, 2025 8:55 pm
-snip-
Because sincerely ..... you have realised one of my 2 PB dreams
-snip-
New release is updated on github. Try on a PC where your screen image was cropped.
Re: Simple Remote Desktop
Posted: Mon Mar 03, 2025 7:18 pm
by Kwai chang caine
Thanks a lot, i test this immediately and give to you news

Re: Simple Remote Desktop
Posted: Mon Mar 03, 2025 8:37 pm
by Kwai chang caine
I have tested the new version with two screens 1920 x 1080 without change something on your code and i use v5.31 X64
Sometime there are a bug in line 2481 on remote client and sometime a bug in line 1193 when i click on the "break" button
But also in line 150 even when i not click on something

Re: Simple Remote Desktop
Posted: Mon Mar 03, 2025 9:01 pm
by Etayson
Kwai chang caine wrote: Mon Mar 03, 2025 8:37 pm
I have tested the new version with two screens 1920 x 1080 without change something on your code and i use v5.31 X64
Sometime there are a bug in line 2481 on remote client and sometime a bug in line 1193 when i click on the "break" button
But also in line 150 even when i not click on something
Did you enable in IDE?
- Create unicode executable
- Create threadsafe executable
- Request Administrator mode
Did you run the new version on both computers, yours and the remote one?
Re: Simple Remote Desktop
Posted: Mon Mar 03, 2025 9:37 pm
by Kwai chang caine
You've have right the administrator and thread are not checked
I can't test now, i'm not with my machines, but tomorrow i test another time
Again thanks for your quick fix and answers
Have a very good night
Re: Simple Remote Desktop
Posted: Tue Mar 04, 2025 4:33 pm
by Kwai chang caine
Hello excuse me for the waiting
I don't know why the thread are unchecked in my first test

but you have absolutely right, that works better now
You are too strong !!!! the 1366 x 768 works perfectly now with your fix
Furthermore, again more strong, your jewel continue to works when i change the resolution of 1366 x 768 to 1920 x 1080 in live
I have testing with my second W10 machine, now i must convert your code to X86 for testing on my W7 machine, but i'm nearly sure that works too.
I give to you news when the W7 test are done
One thousand of thanks MASTER for this amazing and usefull tool you give to me and the familly
It's nothing in return, but I send you a big French kiss
for your generosity and your immense knowledge.
I love you, and wish to you the most nice day of the world
Your french admiring servant
KCC
Re: Simple Remote Desktop
Posted: Tue Mar 04, 2025 5:18 pm
by Kwai chang caine
I just finished modifying the code for the X86 of my old W7 machine
I have runned your jewel (disfigured by the low knowledge level of KCC

)
And there...words fail me..so much it's beautifull

Re: Simple Remote Desktop
Posted: Sun Mar 09, 2025 8:47 pm
by Etayson
AZJIO wrote: Sun Feb 23, 2025 6:35 pm
Etayson
There are examples of data transmission over the network here on the forum, and I also wanted to write such a program. But the problem appeared when I began to think about how I could reduce the data flow by determining the difference between the current and the previous frame in order to transfer the square with the changes and place it on the previous frame. Then I realized that it would put a lot of strain on the processor if a video was playing on the screen. Then you need to determine the window where the video is playing and not analyze it, but transfer it as it is. That is, we need a function that defines windows. But the windows can also overlap with each other. In general, I got confused and realized that I couldn't do it. There was also an idea to capture the screen with 1 cm squares, if the squares did not change, they would be used from the previous frame, and on another desktop they would form a picture like puzzles. Well, the screens also don't match, as a result, you either need to scale the window or transfer it as it is using scrolling. In general, I realized that this is a hard job.
Or maybe need a video codec that determines all this by itself?
To be more precise, the algorithm is as follows: Divide the screen into rectangles. Compare the current screen with the buffer where the previous frame. Find the rectangles in which the image has changed. Place the rectangles with the changed image in a new image and then compress it with JPEG (due to JPEG compression, small artifacts appear) and send this image to the main PC. I tried different compressions and even zip, but the optimal compression time, quality and size turned out to be JPEG.
Click on the image below to see how the video is processed...

Re: Simple Remote Desktop
Posted: Tue Mar 11, 2025 9:11 pm
by Kwai chang caine
It's magic
