does anybody know?

i have only 2 questions, 1 if its possible how do i make a widnows notification or message and 2 if its possible agian how do i make the "press key for 0.1 sec and wait" key press the windows key? (i can mod projects so i can get hacked blocks.)

https://preview.redd.it/sp6hefmw2gbe1.png?width=738&format=png&auto=webp&s=3cbf1546075ab11aa7c22733390ac4597729c4b9

https://preview.redd.it/1ls2xxi43gbe1.png?width=265&format=png&auto=webp&s=513e02bf5cf3ba85297761dc495b1984ab03bc54