Skip to main content

How to Sending Keystrokes to Windows exe Programs

Python Blog #Author: ManishHacker1

Hello Guys, Today we will learn about How to send keystrokes to windows exe program using pyautogui module and using win32api.

If you want to friendship with a girl and you want to impress with your program and ask for friendship. Or if you want to all your daily computer work done automatically. Then you can also use python script.

For Example:


import time
import win32com
import win32com.client
import pyautogui


shell = win32com.client.Dispatch('WScript.Shell')
shell.Run('notepad')
time.sleep(0.1)
shell.AppActivate('notepad')
while True: 
    mm = pyautogui.typewrite('Hello Akan!, Will you friendship with me? If yes then tell me.', interval=0.25)
    pyautogui.press('enter')
    pyautogui.typewrite('Your Wellwisher :)', interval=0.25)
    shell.SendKeys("mm",0)
    shell.SendKeys("{Enter}", 0)
    shell.SendKeys("{F5}", 0)   # F5 prints the time/date
    pyautogui.press('enter')

The above programe need some requirment:

  • win32api: For windows purpose
  • pyautogui: For handle all keyboard functionality

Using pyautogui, You are able to handle all keyboard functionality.
Read full Documentation about pyautogui:pyautogui Documentation

Using pyautogui you can also create a amaging program. You can handle your daily same computer work just a one click. If you want to convert your program in exe. You can also use pyinstaller.

Thank You for reading this article.I hope this article helpful for biginners and newbie who do not know about sending keystrokes to Windows exe Program. If any query please comment. And also like my FB page givin below link and share it.

Kryptora Digital Security Provided Python Training and Ethical Hacking Training
  • Best Python Training in Noida
  • Best Python Training in Delhi
  • Best Python Training in Meerut
  • Best Python Training in India
  • Best Ethical Hacking Training in Noida
  • Best Ethical Hacking Training in Delhi
  • Best Ethical Hacking Training in Meerut
  • Best Ethical Hacking Training in India

Follow ManishHacker1

Comments

Popular posts from this blog

How to create Folder Lock with Password Protected using Python

Amazon.in Widgets Python Blog #Author: ManishHacker1 Hello guys, Today we will be learn how to create folder lock with password protected using Python programming language. What is Folder Lock? Folder Lock is a data security software that is allows its users to encrypt thier files and folder. Lock, hide and password protects files and folder on your computer. You can use Folder Lock to secure your files and folder on windows. So, I am going to tell you how to make your own Folder Lock, without using any software. Pre-Reuisites: You will need only pyhton installed in your operating system. if you want to distribute your Folder Lock then you will be also need pyinstaller using to convert our python file to .exe file. Compatibility: Compatible with any Microsoft Windows Operating system. Instructions: First open your python IDE or Notepad, where you want to write code. If you use to notepad please remember indentation using to write code. Or copy th...

How to Connect Window Machine to Linux Machine Using Python via SSH

Python Secret #Author: ManishHacker1 Hello everyone, This is my another article about SSH connectivity to the client machine. In my previous article we have some trouble using pxssh module on windows machine. That's why I am writing another article for the SSH connection. In this article we will use paramiko module to connect another machine. This is fully supported windows, Mac and Linux machine users. In this article, I will show you how to use Paramiko SSH (a Python SSH library) to connect and gather information from another Machine. What is Paramiko? Paramiko is a Python (2.6+, 3.3+) implementation of the SSHv2 protocol [1], providing both client and server functionality. While it leverages a Python C extension for low level cryptography (Cryptography), Paramiko itself is a pure Python interface around SSH networking concepts. Read Full Documentation Let start our demonstration: Requirment: Paramiko( For SSH connection) How to Install paramilko modu...

How to Create MD5 Brute Force Script Using Python

Python Secret #Author: ManishHacker1 How to Create MD5 Brute Force Script Using Python Hello guys, Today we will be learn How to create MD5 brute force script using Python. What is brute-force Attack? Brute-force attack also known exhaustive key search Process of checking all possible keys Using a dictionary to attack with Dictionary is usually more effective than searching the whole key space. Exponentially grow with increasing key size. Brute force Attack Limit Because time/energy required to crack a key grows exponentially with key size, encryption in today's standards and computing power are safe brute-force attack. A 256 bit key would take on 50 of today's super computer 3x10^51 years What is Dictionary Attack Much faster than a whole key space search Not guaranteed Commonaly used on passwords Dictionaries can be found online A popular one is darkc0de.lst Good to run before a big dictionary like darkc0de. Can eliminate the most com...