Jul-06-2019, 07:44 AM
Here's an example of a simple script I made using PyAutoGui
Also, since I've mentioned they are all (probably most are written in Class) so whenever we create one then we always call's for inheritance, right?
If you can make that script I had wrote to a class and include in your response, that would be very, very helpful to me to study on how you guys construct a Class off of something/module.
Thanks for the response @Gribouillis & @perfringo
import pyautogui as pag pag.FAILSAFE=True #Call Chrome pag.hotkey('command', 'space') pag.typewrite('Chrome\n', 0.25) pag.moveTo(412, 81, duration=2) pag.click(button='left') pag.typewrite('target_site_example.com\n') pag.moveTo(927, 431, duration=5) pag.click(button='left') pag.moveTo(286, 132, duration=5) pag.click(button='left') pag.click(button='left') pag.moveTo(1206, 946, duration=5) pag.click(button='left') pag.moveTo(1797, 587, duration=5) pag.click(button='left') pag.moveTo(768, 137) pag.click(button='left') # #Scrolling to second section pag.scroll(-50) # #Scrolling and click to sort rankings pag.moveTo(1189, 735, duration=5) pag.click(button='left') # # Fire up Nimbus pag.moveTo(1146, 84, duration=5) pag.click(button='left') # # Screenshot Entire Page pag.moveTo(995, 331, duration=5) pag.click(button='left')What I meant was how can I wrote that in a Class kind of fashion? As I am really a bit confused since that module is already a class, what's the point in making a Class off of a already Class. And yes, I can't get my head around on how can I construct it to Class. How you guys that are well-rounded in Python can make a Class type script from that module?
Also, since I've mentioned they are all (probably most are written in Class) so whenever we create one then we always call's for inheritance, right?
If you can make that script I had wrote to a class and include in your response, that would be very, very helpful to me to study on how you guys construct a Class off of something/module.
Thanks for the response @Gribouillis & @perfringo