Sign in to follow this  
Followers 0
win2k

Having trouble closing a window

2 posts in this topic

#1 ·  Posted (edited)

nm it finally worked

Edited by win2k

Share this post


Link to post
Share on other sites



Hey! No fair taking away your code! :whistle:

This worked for me:

Run(@ComSpec & " /c start services.msc", "", @SW_MINIMIZE)
WinWait("Services", "Services (Local")
Sleep(5000)
WinActivate("Services", "Services (Local")
Send('!{F4}')

BlueBearrOddly enough, this is what I do for fun.

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