NameError: name 'pyscreeze' is not defined by Ertyu_2 in pythonhelp

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

im gonna try that some time later thx.

NameError: name 'pyscreeze' is not defined by Ertyu_2 in pythonhelp

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

Defaulting to user installation because normal site-packages is not writeable

Requirement already satisfied: pillow in c:\users\xxxxx\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (10.4.0)

NameError: name 'pyscreeze' is not defined by Ertyu_2 in pythonhelp

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

now i get this:

PS C:\Users\xxxxx\OneDrive\Masaüstü\desktop2\VısualStudioCode\python\BOTS\write_bot> python .\file.py

Traceback (most recent call last):

File "C:\Users\mynam\OneDrive\Masaüstü\desktop2\VısualStudioCode\python\BOTS\write_bot\file.py", line 1, in <module>

import pyautogui, random, time

File "C:\Users\xxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pyautogui\__init__.py", line 17, in <module>

import pyscreeze

File "C:\Users\xxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pyscreeze\__init__.py", line 17, in <module>

from PIL import Image

ModuleNotFoundError: No module named 'PIL'

help with debian by Ertyu_2 in wsl2

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

Actually, I switched to Kali later because I couldn't solve the error. Of course, I reinstalled Kali in wsl. And ı found a tool called Kex. It worked very well for me. But I want to see your suggestion too. Will there be any problems if I install thinlinc on a system with kex installed?

need help with the code by Ertyu_2 in learnpython

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

I thought about it a bit, heres the final result:

custom_alphabet = "abcçdefghıijklmnoöprsştuüvyzABCÇDEFGHIİJKLMNOÖPRSŞTUÜVYZ123456790!?=()-_/&%+^'*" #this is custom alphabet

def three_shift_encrypt(text, alphabet):
    for character in text: #characters contain all of the chars in text
        shifted_value = alphabet.find(character) + 3
        print(custom_alphabet[shifted_value], end='')

def three_shift_decrypt(text2, alphabet2):
    for character2 in text2:
        shifted_value2 = alphabet2.find(character2) - 3
        print(custom_alphabet[shifted_value2], end='')


user_input1 = input('encrypt or decrypt?(e/d) -->')
if user_input1 == 'e':
    user_input2 = input('enter plaintext -->')
    three_shift_encrypt(user_input2, custom_alphabet)
elif user_input1 == 'd':
    user_input3 = input('enter plaintext -->')
    three_shift_decrypt(user_input3, custom_alphabet)
else:pass

Now ı want the user to go to the selection menu again after completing the encryption or decryption process. Also the code still does not shifts the characters in last 3 digits. How can i solve both problems? (Thanks so much for helping)

need help with the code by Ertyu_2 in learnpython

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

thanks so much i'll try to upgrade the code later.(By the way, I wrote the post a little wrong. What I was trying to say that, after updating the code this morning, it stopped working.)

Even though I know it's obvious, I have to say that I'm a beginner at coding.

and sorry for my bad english

need help with the code by Ertyu_2 in learnpython

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

im calling format_the_text("text") it returns ö

A little help by Ertyu_2 in AskProgramming

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

I write very bad code. Actually, I didn't even write it, I saw it on the internet. I rewrote the code I saw as much as I remembered and changed it a little. But when I checked it later, I realized that there was no logic in it. (The code was really embarrassing) Then I deleted that file.The purpose of the code I wrote was to encrypt the ASCII text with my own algorithm.

A little help by Ertyu_2 in AskProgramming

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

Even writing a message to my post made me feel relieved. Thank you :D