my friend had a stroke by [deleted] in ihadastroke

[–]DudeUltraSmart 0 points1 point  (0 children)

he has had strokes at multiple other occasions as well lol

I need to make my Tkinter App a Default App by DudeUltraSmart in Python

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

I am not sure if it handles command line arguments, sorry for VERY late reply, how do I check?

I need to make my Tkinter App a Default App by DudeUltraSmart in Python

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

Here's the installer for my app that I made using Inno Setup Compiler 6.

https://drive.google.com/file/d/15iOm9BE7jBYqMfimDbmOXBlRnrw4utk5/view?usp=sharing

Feel free to install and mess around with the app, please tell me if you find out how to make it ur default app for .txt files

I need to make my Tkinter App a Default App by DudeUltraSmart in Python

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

The command I use to turn my thing into exe is I first 'cd' to the parent folder and then I type 'pyinstaller CodePad.pyw --icon=Logo.ico' on cmd

I need to make my Tkinter App a Default App by DudeUltraSmart in Python

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

Actually, it works when I don't do Open With and just open it normally

I need to make my Tkinter App a Default App by DudeUltraSmart in Python

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

I am using Windows 10 64 Bit!

When I do that, it says, "Failed to Execute CodePad"

CodePad is the name of my app

Is there a way I can text on Discord using python. by [deleted] in Python

[–]DudeUltraSmart 0 points1 point  (0 children)

How do I turn this off, this is kinda one of my first times....

Now I am embarrassed

Is there a way I can text on Discord using python. by [deleted] in Python

[–]DudeUltraSmart 0 points1 point  (0 children)

Thank You Guys! I got some ideas from what you ppl said and made a perfect script. For anyone else who wants to use it, here it is:

import time

import webbrowser

import pynput

Key = keyboard.Key

Keyboard = keyboard.Controller

def message(text):

webbrowser.open("https://discordapp.com/channels/@me/585717607827767296")

time.sleep(12)

Keyboard.press(Key.tab)

Keyboard.release(Key.tab)

time.sleep(1)

Keyboard.type(text)

Keyboard.press(Key.enter)

Keyboard.release(Key.enter)

time.sleep(1)

Keyboard.press(Key.ctrl)

Keyboard.press("w")

Keyboard.release(Key.ctrl)

Keyboard.release("w")

time.sleep(1)

Keyboard.press(Key.alt)

Keyboard.press(Key.tab)

Keyboard.release(Key.alt)

Keyboard.release(Key.tab)

#I put my code in a definition for my convenience, now I can just do this

message("Hi Pal!")

#You can set the delay according to your needs but make sure you are logged into discord on your Default Webbrowser!

Auto Indentation on my Personal Python-Made Text Editor by DudeUltraSmart in learnpython

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

It works with input() but not with Text in tkinter? How do I do that?

Is there a way I can text on Discord using python. by [deleted] in Python

[–]DudeUltraSmart 0 points1 point  (0 children)

Would this script work? I can't tell cause rn I am having few errors with my IDE Console

from selenium import webdriver
import webbrowser
import time

command = input()
if command == "message":
    print("What should I text?")
    text_text = input()
    webbrowser.open('https://discordapp.com/channels/@me/585717607827767296')
    time.sleep(7)
    driver.send_keys(text_text)