Sign in to follow this  
Followers 0
ending

LastKeyPressed()?

3 posts in this topic

I did search the forums for this, but all I could find is crap about key logging. I guess this could be considered a key logger but what I'm asking is if there is a function included in the APIs to return the last key that was pressed. I could make my own by using a boat load of "HotKeySet"s, but I'd rather use an API then have to write a messy function like that. This is for a application that's going to be hidden, and to do certain tasks they require a key combination. Like how in Windows you can press Ctrl Alt Del and get the task list, no matter what application you are running (minus Novell security apps and etc.). So I won't be having a GUI, I'll just have a defined set of keystrokes that will launch each task since its going to be a hidden running app. Yes, I know its not going to be completely hidden (via task list). Anyways, I couldn't find on in the Help file so I'm just asking if I missed something.

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Try searching in Scripts and Scraps for _IsPressed

<{POST_SNAPBACK}>

This helps a bunch, thanks. Need to get this included in the AutoIt package :whistle:. Good work from ezzetabi. Edited by ending

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