Can someone help me out?

I’m a beginner at scripting python and was wondering how to run a script by pressing a button in the tools tab. I’d also like to have another script run when a key is pressed. I already have the scripts but what exactly can you add above it that will make the script run afterwards?

Didn’t know you can’t repost to another thread. Calm down.
Admins, please erase this thread for codemanx’s satisfaction.

Please don’t double post to raise awareness, it’s annoying if the same discussions is split into multiple threads. Besides, this is the wrong section, it’s exclusively for C/C++ side of Blender, not Python.

Like I said. I did not know that, admin. Please erase this thread.