Sign in to follow this  
Followers 0
s4nDer123

Send Alt + F4 Command

4 posts in this topic

#1 ·  Posted (edited)

Hello,

i created a script with several install orders and i want to close a window by pressing Alt + F4 but i don't know whats the exact function for that.

i tried it with that...

Send({Alt down} + {F4})

... but that doesn't work. I believe it's a very simple solution but i have no idea.

Regards s4nDer

Edited by s4nDer123

Share this post


Link to post
Share on other sites



Hello,

i created a script with several install orders and i want to close a window by pressing Alt + F4 but i don't know whats the exact function for that.

i tried it with that...

Send({Alt down} + {F4})

... but that doesn't work. I believe it's a very simple solution but i have no idea.

Regards s4nDer

Try Send("!{F4}")

or the function WinClose ( "title" [, "text"] )

Share this post


Link to post
Share on other sites

If you're trying to close something that can be seen in the task manager, find out the name of the process, and then insert the "ProcessClose" function. It should kill whatever you had running.

Share this post


Link to post
Share on other sites

Okay, thanks for your reply.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0