on
laravel
- Get link
- Other Apps
from tkinter import*
import win32com.client as comctl
window = Tk()
window.title("Button Clicked")
window.geometry('350x200')
wsh = comctl.Dispatch("WScript.Shell")
def clicked():
wsh.AppActivate("Notepad")
wsh.SendKeys("a")
btn = Button(window, text="a", command = clicked)
btn.grid(column = 1, row = 0)
window.mainloop()
4.First Open Notepad and after than run that python program
Comments
Post a Comment
If you any doubt of any topic then you can comment me.