trynhyty Posted August 11, 2015 Share Posted August 11, 2015 (edited) Hi everybody, I'm new on this forum, and new to AutoIt and coding. I began using AutoIt to make a script that plays GameDevTycoon for me, but turned out it was really hard to do. Now I'm trying to make myself a script that will run on my computer, to see what has been typed on the keyboard, Just to know if my kids are doing bad things on it.I find some keyloggers sample (though I don't really like the name of this), but was trying to understand what the code does and improve it a bit.And there we are, I'm stucked with a really weird problem. Let me explain it.My code is actually a bit messy, since I don't understand 100% of it yet ( Opt ('MustDeclareVars', 1 is one of those) Here it is : <snip>What I'm trying to do, is to detect when a Shift key is being pressed, and if it is, wait for a second key to be pressed, and send the char (which is a capital letter since I made a second array for it) to the file. Except that, when I launch the code, it tolds me that $b = 166, and that i'm out of array...I can't figure out why though, can somedy explain me this ? =) By the way, don't hesitate to tell me how to improve the way i'm coding, how to view things ... Thanks to all Edited August 11, 2015 by Melba23 Keylogger code removed Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 11, 2015 Moderators Share Posted August 11, 2015 trynhyty,Welcome to the AutoIt forum.Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about discussing neither game automation nor keyloggers - and then you will understand why you will get no help and this thread will now be locked. You might also find this announcement worth a read.See you soon with a legitimate question I hope.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts