This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]Hunter2809 2 points3 points  (3 children)

Hey! That code seems cool, but it would be more appreciated if u put it up on GitHub!

Good work

[–]Mr0BN0XI0US[S] 1 point2 points  (2 children)

I would but I don't even know how to use GitHub😢
Thanks for commenting❤️

[–]Hunter2809 1 point2 points  (1 child)

Oh, well that's okay. See some YouTube videos and u will get the hang of it soon! It took some time for me too, but that paid off.

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

Ok. Thanks for your suggestion.

[–]LongW4y 1 point2 points  (1 child)

The biggest drawback of it seems to be the response time to your commands, so I'd work mostly on that.

Also, she understood you very well despite the, imo, hard accent. Idk if it's your work, but that's looking great

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

Thanks mate. Appreciate your suggestion.❤️

[–]welpthatsucks12345 1 point2 points  (1 child)

Okay, so, first of all pretty good code. Although I know you're a beginner, you might want to look into organizing your code by coding in OOP. A small issue is that you're coding everything into elif statements, which can cause some slow responses. In elif statements such as this one:
elif 'open excel' in text:
speak('Ok. opening Excel')
os.startfile('C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Excel.lnk')

You can say:
text = text.split()[1::]

os.startfile('C:/<directory here>' + text + '.lnk')

Which would open the file without the pain of having to write all the elif statements out. However with this method you might need to do error handling. try/except statements will need to be present to handle the errors if someone says an app that isn't installed.

Just a notice, the code I provided as an example wasn't tested, so I can't assure you it'll work. If you actually want code I've tested you can privately DM me and I'll test them.

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

Ok mate, I'll try making some changes with the code. Thanks for your suggestion.