Programmatic access to key history?
#1
Posted 24 June 2012 - 05:10 PM
At a couple of occasions, I've found myself needing to know the last 2-3 keys, and have had to come up with complicated workarounds to achieve what I wanted (and such workarounds aren't even going to be possible every time).
Can AHK_L provide such a feature in some future release?
#2
Posted 24 June 2012 - 05:25 PM
And I would too like to see this feature.
#3
Guests
Posted 11 October 2012 - 03:15 AM
Logging keys to a file via keyhistory command is the same as "direct access" to key history.// Logging keys to a file is disabled in the main version in an effort to prevent
// AutoHotkey from being branded as a key logger or trojan by various security firms and
// security software. Uncomment this line to re-enabled logging of keys to a file:
//#define ENABLE_KEY_HISTORY_FILE
So
#4
Posted 11 October 2012 - 10:31 AM
#5
Posted 11 October 2012 - 11:20 AM
In any case, making a key-logger shouldn't be hard without this feature:
1) Make ~ (go through) hotkeys for all keys.
2) Log to a file on each hotkey invocation.
#6
Posted 25 October 2012 - 02:24 AM
making a key-logger shouldn't be hard without this feature
I always had the issue that while one key was messing with the file, the other keys were missed, and I only got around 2/3 of the keys while I was typing quickly.
#7
Posted 25 October 2012 - 10:26 AM
This pages has an example with OnMessage by just me: <!-- l --><a class="postlink-local" href="http://www.autohotkey.com/community/viewtopic.php?f=1&t=75242&start=15">viewtopic.php?f=1&t=75242&start=15</a><!-- l -->
And this one has one using WindowsHook <!-- l --><a class="postlink-local" href="http://www.autohotkey.com/community/viewtopic.php?p=299816#p299816">viewtopic.php?p=299816#p299816</a><!-- l -->
Missing keys is usually solved with SetBatchLines -1, but I suppose you have that already.




