Leonardo 2000

0 views
Skip to first unread message

Rojo Scherer

unread,
Aug 3, 2024, 3:33:22 PM8/3/24
to bugsacapo

I recently succeeded in installing the driver for the Arduino Leonardo on Windows 2000. I see it as a COM port and I am able to receive data on the serial port. I installed the driver by replacing the "usbser.sys" file in "C:\WINNT\System32\drivers" by one from Windows XP and it worked.

The problem is that the mouse and keyboard objects don't seem to work on Windows 2000. I made a simple program that send a right click every seconds on my pc. It works fine on Windows XP and Windows 10, but when I try it on Windows 2000, nothing happens.

Well I am already doing my tests on a virtual machine, and what you are proposing is working. The problem is that I want to do this on an old machine that controls an automated PCB soldering system where replacing the W2K system is mostly impossible.

Trust me I would use something else than Windows 2000 if I could! Windows XP at least. My Windows 2000 runs on an old machine that controls an automated PCB soldering system where replacing it would probably not work. That's why I am trying real hard to find a solution on W2K!

santanicclauss:
Trust me I would use something else than Windows 2000 if I could! Windows XP at least. My Windows 2000 runs on an old machine that controls an automated PCB soldering system where replacing it would probably not work. That's why I am trying real hard to find a solution on W2K!

Like I said in my reply, it is a PCB soldering system. It is on a XY table with a laser and feeder for the tin to solder electronic components on the PCB. The whole system is on an assembly line. I am trying to automate it.

santanicclauss:
Like I said in my reply, it is a PCB soldering system. It is on a XY table with a laser and feeder for the tin to solder electronic components on the PCB. The whole system is on an assembly line. I am trying to automate it.

To sum up my project, I have a vb.net application that communicates with a database to validate if every board in the production line is good. We use the arduino to read sensors and activate relays to validate/block the production if anything goes wrong.

I use a scanner to scan a barcode on the vb.net app. The app sends a command to the arduino, the arduino uses mouse/keyboard libraries to automatically chose a program on the Win2K machine. The arduino communicates to the PC via Serial port with a RS232 shield. So human interaction it is.

I have already found this.
The mouse and keyboard objets in the Arduino librairies already use HID objects to control the mouse or keyboard. It works fine on recent OS but I can't get it to work on Win2K.

Years ago, in a world far, far away, I was partner in a check processing software company. We used UNISYS high speed check reader/sorters. When they released check image capture, it was all done on networked WIN2K pcs. I wrote programs to query the status of the image storing programs, and to store some of our files on the UNISYS server and to do other stuff I have forgotten.

But I agree that controlling programs using mouse emulation is not ideal. You should definitely look for other control options like command line interface and keyboard shortcuts first, only resorting to the mouse when there is no other option.

I'm a little confused. From some of your responses it seemed like you already have the Arduino communicating with the W2K PC but in a different method than what you would like. Is that the case or did you just mean that's the goal?

You could write a program that can listen on the COM port you have and run programs accordingly. However, designing automation equipment myself, I understand that sometimes you just don't have the time or resources for that.

As DrDiettrich said, I would try to rely on keyboard only as mouse control may get wonkey in certain situations. If you can start a program using another program that would be the most reliable solution as the filepath should never change.

pert:
There are ways to get absolute mouse positioning. I have a list of possible options here:
GitHub - per1234/MouseTo: Arduino library for moving mouse pointer to absolute screen coordinates
that, on the readme of my own solution.

I do think the method I use for absolute positioning (moving the mouse until you are certain it's at the top corner of the screen, then making movements relative to that "homed" position) is less likely to have compatibility issues than the more advanced methods the alternatives use. I've noticed that my library is popular with the "USB Rubber Ducky" folks, and I'm guessing it's for this reason.

The Beach is a 2000 adventure drama film directed by Danny Boyle, from a screenplay by John Hodge, based on the 1996 novel of the same name by Alex Garland. The film stars Leonardo DiCaprio, Tilda Swinton, Virginie Ledoyen, Guillaume Canet, and Robert Carlyle. It was filmed on the Thai island of Ko Phi Phi Le.

The film was released on 11 February 2000, by 20th Century Fox. It was a moderate box office success, grossing $144 million against a $50 million budget, but received mixed-to-negative reviews from critics, who praised the film's scenery, soundtrack, and DiCaprio's performance, but criticized it as a muddled adaptation that loses the book's themes and social commentary.

Richard, a young American backpacker seeking adventure in Bangkok, stays in a drab travelers' hotel on Khao San Road where he meets a young French couple, Franoise and tienne. He also meets Daffy, who tells him of a pristine, uninhabited island in the Gulf of Thailand with a beautiful hidden beach. Daffy explains that he settled there in secret several years earlier, but difficulties arose and he left. Daffy dies by suicide, leaving Richard a map to the island. Richard persuades Franoise and tienne to accompany him to the island, and the three travel to Ko Samui. Richard meets two American surfers who have heard rumors of the island and he gives them a copy of the map.

En route to the island, Richard becomes infatuated with Franoise. After swimming to the island from a neighbouring island, they find a cannabis plantation guarded by armed Thai farmers. Avoiding detection, they make their way across the island and meet Keaty, who brings them to a community of travellers living on the island in secret. Sal, the community's English leader, explains that the farmers allow them to stay so long as they keep to themselves and do not allow any more travelers to come to the island. Richard lies that they have not shown the map to anyone else. The trio becomes integrated into the community.

One night, Franoise invites Richard to the beach, where she tells him that she is falling in love with him and they start an affair. Despite hoping to keep it secret, the community finds out. Although he is angry, tienne says he will not stand in their way if Franoise is happier with Richard.

Sal selects Richard to accompany her on a supply run to Ko Pha Ngan. They encounter the American surfers who are preparing to search for the island and mention Richard's map. Sal is upset but believes Richard when he says they have no copy of the map. To ensure Sal's confidentiality, Richard has sex with her at her order. On their return to the island, Richard lies to Franoise about having sex with Sal.

Three of the community fishermen are attacked by a shark while spearfishing. One is killed and another, Christo, is severely injured. He pleads for medical attention but Sal will only allow him to leave if he promises not to disclose the location of the beach. However, now terrified of the water, Christo refuses to be taken to the mainland for medical treatment but Sal refuses to allow any doctors to be brought to the island to treat him. As the man's condition worsens, the islanders simply leave him in the jungle to die, but tienne refuses to abandon him.

When the surfers turn up on the neighboring island, Sal orders Richard to send them away and destroy their map. She tells everyone that she and Richard had sex, which leaves Franoise angry and heartbroken, causing her to return to tienne. Isolated from the group, Richard begins to lose his sanity, imagining that he is conversing with the deceased Daffy.

The surfers reach the island but are discovered and killed by the farmers. Shocked at witnessing their deaths, Richard smothers Christo to put him out of his misery and gathers Franoise and tienne to leave the island.

Richard is captured by the farmers along with Franoise and tienne. The farmers are furious with the community for breaking their deal not to allow any more newcomers. The lead farmer gives Sal a gun loaded with a single bullet and orders her to make a choice: kill Richard and the group will be allowed to stay, or else they must all leave immediately. Sal pulls the trigger, but the chamber is empty. Shocked by her willingness to commit murder, the other members of the community abandon Sal, leave the island, and go their separate ways.

Alex Garland's novel The Beach was published in 1996 and became a success in the UK.[2] Director Danny Boyle and producer Andrew Macdonald bought the rights to the book using their salaries from their 1997 film A Life Less Ordinary.[3] In August 1997, Boyle, Macdonald, and screenwriter John Hodge went to Thailand, specifically Ko Samui, to scout for locations and get into the mindset of the book.[4]

Ewan McGregor, a frequent collaborator of Boyle's and Macdonald's, was believed to be cast in the lead role, but was ultimately not chosen. The decision contributed to a rift between McGregor and Boyle.[5] It was speculated that Boyle was offered additional funding under the condition that the character of Richard be rewritten to be American and played by a bigger name actor.[5][6] Whilst promoting T2 Trainspotting on The Graham Norton Show, the dispute between the two was discussed in more depth, with McGregor stating "It was a mis-handling and a mis-understanding over the film and it's a big regret of mine that it went on for so very long... and it didn't matter about The Beach, it was never about that. It was about our friendship. I felt like Danny's actor and it made me a bit rudderless." Boyle stated, "I handled it very very badly and I have apologised to Ewan for it. I felt a great shame about it and how it was handled."[7]

c80f0f1006
Reply all
Reply to author
Forward
0 new messages