Jump to content

Recommended Posts

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 :P ( Opt ('MustDeclareVars', 1 is one of those) 


Here it is : 


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 by Melba23
Keylogger code removed
Link to post
Share on other sites
  • Moderators


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.



Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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:


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


Link to post
Share on other sites
  • Jon unfeatured this topic
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...