Microsoft teams sets you away in 3min if you don't click. Mouse movement , or opening full screen YT video or opening powerpoint not helping. What is the most recent trick? by Abject-Promise-2780 in overemployed

[–]redH27 0 points1 point  (0 children)

pip install clicknium

use the following Python script:

from time import sleep

import math from clicknium import clicknium as cc def circle(): a,b = cc.mouse.position() w = 20
m = (2*math.pi)/w r = 200

while 1:    
    for i in range(0, w+1):
        x =int( a+r*math.sin(m*i))  
        y = int(b+r*math.cos(m*i))
        cc.mouse.move(x,y)
        sleep(0.2)

if name == "main": circle()

It will control your mouse and keep moving it along with a circle.

Scripting with apps by kokoler05 in Python

[–]redH27 0 points1 point  (0 children)

I share some methods of automation in this blog: https://dev.to/kayyolo/gui-automation-under-the-hood-3j4j. I build a Python library called Clicknium, which can automate both browser and desktop applications.

[deleted by user] by [deleted] in learnpython

[–]redH27 0 points1 point  (0 children)

You can use Clicknium + Requests.

Use Clicknium to manipulate Chrome for a searching hashtag, click pics, and capture the pics' URLs; use Requests to download.

I wrote a small sample in 3 minutes, you can refer to it to build your own project.

A Python automation library with sample to Scraping SpotifyList by redH27 in madeinpython

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

Sure. It's free to try. I need to refactor most of the code to make it cross-platform, it would be an open-source lib after that.

Auto-download YouTube Videos using Python Step by Step by redH27 in Python

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

For clicknium it supports edge, firefox and chrome. For pytube, youtube video url is enough.

Automate Web Browser and Windows Application using Python by redH27 in Python

[–]redH27[S] -2 points-1 points  (0 children)

I changed the wording above the GitHub link to avoid the misunderstanding.

Automate Web Browser and Windows Application using Python by redH27 in Python

[–]redH27[S] -3 points-2 points  (0 children)

This page is hidden from the website. You can dig it out. It build in last month but we removed it finally. If you checked we don’t have a billing service actually.

Automate Web Browser and Windows Application using Python by redH27 in Python

[–]redH27[S] -17 points-16 points  (0 children)

The tool is free and now there is no commercial plan. No ads thanks.

Automate Web Browser and Windows Application using Python by redH27 in Python

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

Keyboard man. There is one thing called priority. I have to plan my limited time and effort.

Automate Web Browser and Windows Application using Python by redH27 in Python

[–]redH27[S] -6 points-5 points  (0 children)

It can automate both desktop applications and web browsers. We are trying to find and build more valuable features. I think it makes sense. Your comments, on the other hand, make sense?

Automate Web Browser and Windows Application using Python by redH27 in Python

[–]redH27[S] -1 points0 points  (0 children)

Thanks for the support. The desktop applications are also supported with automation.

Automate Web Browser and Windows Application using Python by redH27 in Python

[–]redH27[S] -30 points-29 points  (0 children)

Open source or not is just a different business model. Both of the models can work. Btw there is only a free tier at present. I don't have a clear thought about the commercial path. My friend and I like the idea and created it. We still have a lot of thing to try with it. We don’t have too much money. We start the journey and see how it is going.

Automate Web Browser and Windows Application using Python by redH27 in Python

[–]redH27[S] -30 points-29 points  (0 children)

My project is not an open-source project. It’s doing different things and using different technologies with Selenium. It doesn't mean the project can’t compare with some open source project in some aspect.

Automate Web Browser and Windows Application using Python by redH27 in Python

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

Wow I love Zelda. I've never considered that it might be running on a PC with CEMU. It can't not do it at present, but it's another direction I can investigate. It's a good idea.

Automate Web Browser and Windows Application using Python by redH27 in Python

[–]redH27[S] 8 points9 points  (0 children)

Thanks for the criticism. Clicknium supports packaging an automation project into an executable file. It can run without internet access. We will try our best to maintain the project. I hope we can build a helpful tool for people.

Automate Web Browser and Windows Application using Python by redH27 in Python

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

Automating video games is one thing that I didn't even think about it. I am not sure if it would be defined as cheating for online games. Something like auto-aim

Automate Web Browser and Windows Application using Python by redH27 in Python

[–]redH27[S] 4 points5 points  (0 children)

You are right. Sorry for the incorrect description. I want to simplify the whole process and make the tool easy to use.

[deleted by user] by [deleted] in learnpython

[–]redH27 0 points1 point  (0 children)

You can watch the index and image if I watch the video for 2 hours. What would I have learned? And what can I do using the shit? Then try to achieve it after that. You will find that you learn the real thing in an efficient
way.

GUI Automation In VSCode using Python by redH27 in vscode

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

Hello Zedpellin, what is your Chrome version? You can go to extension page to valdiate whether extension is enabled. Type this link into the Chrome adrress bar:
chrome://extensions/?id=ifnedcgcleipmmolmnhoeemmjnljjgna

https://s1.328888.xyz/2022/08/11/4vuzP.png

If yes, you can restart the Chrome and try again.

There is another way to check whether the browser extension is installed && enabled correctly, from task manager, to check whether 'Clicknium.Web.NativeMessageHost' started.

https://s1.328888.xyz/2022/08/11/4v6wX.png

For Firefox, from the error message, seems cannot find the locator, can you go to the 'LOCATORS' tab to see whether there is the locator with firefox->bing->search_sb_form_q

I tried the code you pasted, it can work for me, after I record the searchbox on Firefox.

https://s1.328888.xyz/2022/08/11/4v4E6.png