This is my first post and I am very new to Python so please excuse if I ask something a little daft.
I am thinking about trying to make a simple script that can complete a keypress upon hearing a certain audio cue. Is this an easy task or is this something that requires advanced knowledge?
Much appreciate any input.
Many thanks,
Phil
Related
Ok, so I'm a total noob with aspirations of learning to code. I've read about a guy who, for example, wrote a script which, if he was at work past a certain time, would automatically send a text to his wife stating he would be late. I want to do something sorta similar.
What I want in essence is a script that will log in to a website at a certain time of day, check if a box/text is green/yes or red/no, and send a text or notification to my phone informing me of the result each day.
The progress I've made so far is installing Python, installing PyCharm and done some research about tools I could use toward achieving my goal. Selenium seems like it would be capable of logging into the website, but I've no idea how to go about setting up a conditional statement to check the result, nor how I could set it up to send a text/notification to my phone. Also, if there is a more appropriate tool I should look into rather than Selenium and Python, I'm not attached to the idea of using these specific tools.
Finally, I realize that this may end up being too complicated for a first project, so I'd be up for hiring a freelancer to set this up. Equally, if this is something that could feasibly be written by someone with very little knowledge of coding such as myself, I'd really appreciate some direction from an expert!
Thanks for any input!
You are on the right track with selenium for web form automation. Sending notification however would require something else as was pointed out, and if you're on windows you can use windows task scheduler to automate, to performed only on certain time of day etc.
To make things more simplified, you can also look up general purpose automation programs that might support all these features together. For example, JRVSInputs uses selenium for web auto-fills https://jrvs.in/forums/viewtopic.php?t=182 and have features to send email or windows notifications. It can convert all its scripts into a neat batch file, you can then automate this batch file in the task scheduler.
So I have been studying Python for some time now, learned all the foundations.
With this knowledge I decided to create a project, right now I have written some code and some functionality, but everything is done by the terminal.
Does anybody know where I can find the resources to learn how to create a fully fleshed-out Python program? I want to convert the script to a true .exe, with a GUI , inputs outside the terminal, etc…
If anyone is interested here is the basic program: GitHub - pedrodeoliamarante/roadto10k. There isn’t much yet but the idea is to create a program where I can save data on what i have been studying, set goals, etc…
Thanks for reading!
Take a look at QT for Python.
https://www.qt.io/qt-for-python
I think this is what you are looking for.
My friend asked me as a Joke if I can make a "programm" that will higher your ping.
So that you will have a little delay.
The Problem is that i want to this in python cause i want to learn it.
And I have less to no experience in python.
Everybody that had a clue how python works wanted me to reset the whole program to do that (like System.Threading.Thread.Sleep(1000)). But when I told them that I want to reset or delay the Internet on my computer so if I send a package to the server the answer needs +5sec to get back they had no Idea.
I have no code that could help you help me cause I only have the GUI and some irrelevant and independet other features ready.
So if anyone can show me how this in python could work or give me at least an idea how I could try it, it would be awesome.
Thanks for reading and maybe even helping :D
Leo
i want to use python3 to make a "chat bot", but, i don't want it to be complex, i just want it to say something when someone enters the chat room imvu. Any ideas where to get some docs to read or something? Would be nice. Thank you all.
I recommend watching the YouTube channel called The Coding Train because he has done a few things with chat-bots and twitter-bots. If that's not what you're looking for do a few quick google searches on the subject "how to make a chat-bot" or something like that. there's a lot of material out there.
So, I am completely new to programming. I've been learning basic Python over the last couple weeks. I've always wanted to learn a programming language but right now my primary reason for delving into it is to Create an AI program for my man cave. Here are my Ideas which I am sure have been thought of many times before. They are just my goals:
I would like to take a pre-established open source chat bot and tie it to a Natural Language process to give it the ability to convert my speech to a text command that it can execute and at the same time take its text output and filter it through an audible speech sample (very much like SIRI). This way when I have the function of Natural Language response on, I can have basic conversations with it. I can also turn the conversational aspect off via a voice command so that the only thing it responds to is direct commands (e.g. "Gerard, please open an email, execute. Recipient, logan.wolf.ypher#gmail.com, Subject, Hello World, Body, insert text i speak.)
I would also like to have it recognize that I am there when my phone attempts to connect to the wifi.
I know that this may be a bit complicated for me at the moment but I hear the best way to learn a language is to jump on into a project you enjoy.
Does anyone have any pointers on where to start looking for a base AI or just any tips in general that you wish to give me? I'd appreciate the info very much. Thank you.
-Logan
Considering that So, I am completely new to programming, I would recommend you take a smaller part of this project and successfully implement it. For example, an email account which is checked every 1 minute and you can send textual commands to it. From there, start upgrading it to use chat, cell phone, speech-to-text, and lastly, AI. I only say this because I know the diffulculty of starting a too-ambitious project when I am new at an area (electronics, engineering, programming, language, etc...) and fail. Success, even in small steps, is better!