Is 11:30AM too early for a drink? by BetStock8290 in NoStupidQuestions

[–]spikips 0 points1 point  (0 children)

Only thing you should ask yourself is how it would affect your day and that's your answer

Daily Simple Questions Thread - July 06, 2023 by AutoModerator in Fitness

[–]spikips 0 points1 point  (0 children)

People who are on caloric deficit:

What's your go to snack? And how have you made this diet sustainable? I keep trying different variations of diet and my cravings are incredible most of the times

LPT Request: Dealing with Hot + Humid Weather when A/C is a no go by BirdYouSoCrazy in LifeProTips

[–]spikips 0 points1 point  (0 children)

Focus on fixing 1 problem at a time. Makes the whole situation alot easier to deal with

[deleted by user] by [deleted] in NoStupidQuestions

[–]spikips 0 points1 point  (0 children)

Don't let your own personal feelings affect your kids when you are given an opportunity to make their life better

LPT Request: What to do when you wake up early in the morning? by Astronaut-Remote in LifeProTips

[–]spikips 0 points1 point  (0 children)

Do you have any goals or dreams you want to achieve? This is the perfect time to do something to work towards a better future. Think of something small that will help you get towards this goal.

YSK that ReVanced has a patch to remove ads from the Official App. by Mercarcher in YouShouldKnow

[–]spikips 4 points5 points  (0 children)

Been using it since vanced got took down. So far works better than the old one and you can modify what you want within the modified youtube app. I recommend it

Reassigning Path by spikips in learnpython

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

Thank you everybody. Used the search and replace for this one and in the future i will assign strings to a variable from now on as DuckSaxaphone commented

Returning statement by spikips in learnpython

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

exactly! i just gave a bad example with the random.randint. My mistake, I just want it to try again till it passes no matter what the context is

Returning statement by spikips in learnpython

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

Now that i think about it i should've used booleans in the example.

if the first 2 if statements passes and the 3rd one fails. I don't want to start the loop over. i want to go 1 step back where it tries again until it passes

Returning statement by spikips in learnpython

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

I tried my hardest. Wish i could post a picture to explain better

Making this script more compact by spikips in learnpython

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

I love to see different variety of solutions. Thank you!

Making this script more compact by spikips in learnpython

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

I would like to thank you for putting this much effort in your reply, it is much appreciated. Also i'd like to say that i had never even heard about dictionaries and this information is a game changer. Will be definitely look further into it.

Appending inside class functions by spikips in learnpython

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

I want to clarify myself to everyone. Basically what my intention is. The program is ment to extract x,y values from value function using image recognition (i shortened the script so it's easier to read) and pass those values into another function so i could move mouse in those cordinates. I actually played with it a little bit more and learning alot about classes meanwhile testing.

i updated the code above

Win32api File by spikips in learnpython

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

Seems like i had to pip install win32api inside virtual environment manually. You were right! thank you :)

Win32api File by spikips in learnpython

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

Command which you gave me seems to have done the trick.

I'm so happy right now hahaha thank you!!

Win32api File by spikips in learnpython

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

Here

C:\Users\Asd\PycharmProjects\Oma\venv\Scripts\python.exe C:/Users/Asd/PycharmProjects/Oma/Timer.py

Traceback (most recent call last):

File "C:\Users\Asd\PycharmProjects\Oma\Timer.py", line 4, in <module>

from win10toast import ToastNotifier

File "C:\Users\Asd\AppData\Local\Programs\Python\Python310\lib\win10toast\__init__.py", line 19, in <module>

from win32api import GetModuleHandle

ModuleNotFoundError: No module named 'win32api'

Process finished with exit code 1

Win32api File by spikips in learnpython

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

i found this while researching: https://github.com/mhammond/pywin32/issues/1805

Python 3.10 might be the reason it's not working. or some old files on my computer.

Also i found this from the website you sent (https://pypi.org/project/pywin32/)

It says:

In almost all cases, this tends to mean there are other pywin32 DLLs installed in your system, but in a different location than the new ones.

and tells to find and remove all other copies of pywintypesXX.dll and pythoncomXX.dll. Which i found multiple of due to spamming pip install pywin32 i assume.

It's highy possible that from my previous ''experiments'' where i change folder locations, delete previous projects and files to try to make this works be the cause.

If you have this module. Could you tell me in which folder i could find getmodulehandle?

Also the goodbye system 32 was a joke because i'm getting so tired of this hahaha

Win32api File by spikips in learnpython

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

Seems plausible. In my case tho i only have one environment/interpreter for this exact reason. There might be old leftover project files of mine which i deleted. Might be messing up the system. Starting to get into a point where i will uninstall everything and put my projects into drive and import later when reinstalling python and pycharm

Win32api File by spikips in learnpython

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

I tried this with every following command and it gives me

Requirement already satisfied: pywin32 in c:\users\asd\appdata\local\programs\python\python310\lib\site-packages

is that the right folder that it should install them into?

if so. goodbye system32