Sign in to follow this  
Followers 0
JBeardNC

Send keys before window closes

2 posts in this topic

So here's the deal... we use Microsoft Office Communicator at my company (basically a corporate IM client) and there is an option to automatically save all conversations to your Outlook. However, we have a group policy that blocks that option from being checked. We're still allowed to save the conversations but we just have to do it manually by clicking File -> Save Conversation. Why we're allowed to save manually but not use the auto-save feature is beyond me... its politics... whatever. Anyway, how hard would it be to have a little application running in the background that would detect each time a Communicator chat window closes and before it closes, automatically send Ctrl + S which is the shortcut key to save the convo? The chat window always has the same window title so that wouldnt be an issue. The question is how to "catch" a window closing and perform an action before it closes?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I'm not sure you can catch a closing window unless you are the one closing the window, then it is possible. If you're going to close the window you'd do something like detecting _IsPressed("whatever the hex for scroll lock is") then sending a Control+S to the Window then sending an Alt+F4.

Edited by rcmaehl

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

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