Sign in to follow this  
Followers 0
parham

Logging Keypresses (Alphanumeric Only)?

2 posts in this topic

Hello everyone,

I'm trying to write an application with AutoIt that would allow me to read the contents of a text file, without opening a window. This is a proof-of-concept project for university. The problem is, I am trying to also add a "Find" functionality in this application, and since the application is meant to be hidden (I.E. no system tray icons, no message boxes, and no input boxes), I am trying to log all the alphanumeric key presses (a-z and 0-9).

Now, I have read that AutoIt is not to be used as a key logger and I fully understand it. However, I'm not trying to write a key logger. If I wanted to do so, there would be tools much better suited to the task. I'm merely using AutoIt because my project requires me to do it.

So, are there any ways of doing this in an easy-to-read fashion?

Thanks a lot!

Share this post


Link to post
Share on other sites



parham,

Welcome to the AutoIt forum. :)

I realise that you are not writing a keylogger, but what you want to do is precisely what a keylogger does and any help given to you would be easily convertible to that end.

Sorry - I hope we can help you later in the project. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0