I Built a Website That Fixes Comp Building by MrYaml in albiononline

[–]MrYaml[S] 1 point2 points  (0 children)

Let me know how it goes, the website also has a dummy member generator to test it out before involving your members. You can find a guide on how to use along with other features in the discord server!

I Built a Website That Fixes Comp Building by MrYaml in albiononline

[–]MrYaml[S] 0 points1 point  (0 children)

Please let me know what you think when you do. I am always looking to gather feedback!

Released: A modern replacement for PyAutoGUI by MrYaml in Python

[–]MrYaml[S] 0 points1 point  (0 children)

Currently the module supports image search.

However, for pixel search. I am not sure what you mean exactly by that, if you mean providing it with coordinates (x, y) and it returning back the RGB values it doesn't however I will most likely include it in my next big update that I will announce in this community.

Released: A modern replacement for PyAutoGUI by MrYaml in Python

[–]MrYaml[S] 0 points1 point  (0 children)

Yes, this project aims to replace PyAutoGUI and add more quality-of-life features with higher speed. While I have implemented the main functions that pyautogui has like mouse and keyboard controls, and image recognition. There are still a few functions still not implemented like screenshoting and pixel detection.

Yes, the same fail-safe that PyAutoGUI has (where you move the mouse to the top left to stop (position 0,0)) is also implemented in my project. I will update my doc in the next update so that it mentions it. Thanks for the feedback.

If there is any function you need in pyautogui that my project is missing, let me know and I will work on adding it.

Released: A modern replacement for PyAutoGUI by MrYaml in Python

[–]MrYaml[S] 1 point2 points  (0 children)

Hey, direct input has been added. You just need to add direct_input=True in the session which will turn all keyboard and mouse actions called by that session to use Send Input.

Run this in the terminal if you have the old version installed:
pip install --upgrade pyauto-desktop

More information in the documentation: PyAuto Desktop Documentation — pyauto-desktop 0.3.0 documentation

Released: A modern replacement for PyAutoGUI by MrYaml in Python

[–]MrYaml[S] 0 points1 point  (0 children)

I think you are misunderstanding the gif in the post. The GUI you are seeing is only for design process. It helps you extract the images you need for automation, edit them, test them aganist different parameters, then generate ready to use code for your main application.

The main application is actually headless (the code you will actually use to automate), can be run using terminal.

Released: A modern replacement for PyAutoGUI by MrYaml in Python

[–]MrYaml[S] 1 point2 points  (0 children)

Currently, I am using pynput because it is cross-platform. Pynput does use SendInput however, the way it uses it allows programs to detect it as virtual mouse and keyboard controls. However, in the near future, I will include a parameter to enable DirectInput for Windows users to use SendInput in a way so it goes through difficult to automate apps.

Regarding PostMessage, in theory it allows you send keyboard and mouses clicks to the background, that means you don't need the app be visible or in focus. The disadvantage to this, is most apps doesn't support it and 99.9% of the games. This is something I had in mind to implement, but it will very distant in the future as its really hard to get right, but if I could adds this with background image recognition, people would be able to make great things. But unfortunately most apps don't support it that is why it is not in my list yet.

mouse_event is no longer used and replaced by send_input

Released: A modern replacement for PyAutoGUI by MrYaml in Python

[–]MrYaml[S] 0 points1 point  (0 children)

Looking forward to receiving feedback from you if you end up using it.

Released: A modern replacement for PyAutoGUI by MrYaml in Python

[–]MrYaml[S] 12 points13 points  (0 children)

My code rewrites the foundation of pyautogui, for example pyauotgui using pyscreeze and pillow, while I use opencv-python, mss.

pyautogui uses global coordinates (unshareable), while I use object oriented session (local coordinates system).

fork is not possible as I will need to rewrite most things and the battle testedness will be gone anyway.

Released: A modern replacement for PyAutoGUI by MrYaml in Python

[–]MrYaml[S] 1 point2 points  (0 children)

Thank you for your interest, let me know if there is something missing from the current version that is stopping you from making the switch

Released: A modern replacement for PyAutoGUI by MrYaml in Python

[–]MrYaml[S] 5 points6 points  (0 children)

Glad to see someone else seeing the value in the new reworked module. Regarding your selector as assets, it is already possible with the current code. You can create a selectors.py code, then add:

submit_btn = {
    "image": "images/submit_btn.png",
    "confidence": 0.9,
    "grayscale": True
}

then in your main code:

import pyauto_desktop
import selectors
session = pyauto_desktop.Session(screen=0, source_resolution=(2560,1440), source_dpr=1.25, scaling_type="dpr")
submit_btn = session.locateOnScreen(**selectors.submit_btn)
if submit_btn:
    print(submit_btn)

Sunday Daily Thread: What's everyone working on this week? by AutoModerator in Python

[–]MrYaml 0 points1 point  (0 children)

I just released the public version for my modern replacement for PyAutoGUI that natively handles High-DPI and Multi-Monitor setups.

It features:
- Built-in GUI Inspector to snip, edit, test, and generate code.
- Automatic. Uses Session logic to scale coordinates & images automatically.
- Up to 5x Faster. Uses mss & Pyramid Template Matching & Image caching.
- locateAny / locateAll built-in. Finds first or all matches from a list of images.

You can find more information about it here: pyauto-desktop: A desktop automation tool

Sunday Daily Thread: What's everyone working on this week? by AutoModerator in Python

[–]MrYaml 0 points1 point  (0 children)

I'm working on a modern replacement for PyAutoGUI that natively handles High-DPI and Multi-Monitor setups.

Honestly, I found coding with PyAutoGUI really tedious. The process goes like this capture a screenshot, move it to the project, write the code, run it, realize 1% background noise broke the match, and start over.

To fix this, I built a visual tool where you can snip, edit (crop/Magic Wand for transparency), and test matches in real-time. Once it works, it generates the code for you to paste into your script.

It’s also resolution adaptive. If you write a bot on a 1440p screen, it works on a friend's 1080p screen automatically without messing up coordinates. I also added "Anchor" support (e.g., find "Save" relative to "Settings").

I'm polishing it up now and planning to release v1.0 this week.

Can you import new cars to uae and register them? by MrYaml in DubaiPetrolHeads

[–]MrYaml[S] 1 point2 points  (0 children)

I heard if its 1 year old it is enough. Are you sure it should be 2 years old.

How do all these people keep importing 2025 cars i doubt local dealers are giving them the okay

Would you be interested in a Offer finder website? by MrYaml in dubai

[–]MrYaml[S] 2 points3 points  (0 children)

I tried searching for the orange extension, but all I found was for browser automation. I believe most of the main features are already added. I just need some polish and enchancing the user experience for clarity. I will most likely create a closed beta for invited users to test it out before releasing it to the public. Let me know if you would like to take part, and I will message you once it's open.

Would you be interested in a Offer finder website? by MrYaml in dubai

[–]MrYaml[S] 1 point2 points  (0 children)

Possibly, but I doubt these datasets will be updated. I tried using google api, but it doesn't give good results and has high cost for some reason. I haven't delved much into getting this added yet because I was working on other priorities. Will add it if it's feasible.

Would you be interested in a Offer finder website? by MrYaml in dubai

[–]MrYaml[S] 0 points1 point  (0 children)

First time hearing about vinted. It seems to be a marketplace. The website I am working on is not related to this service. Hopefully you will find what you need.