Welcome to Dream.In.Code
Become a VB Expert!

Join 149,908 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,184 people online right now. Registration is fast and FREE... Join Now!




Need hep writting a file in VB6

 
Reply to this topicStart new topic

Need hep writting a file in VB6, logging my text

m0ng00se
2 Jan, 2008 - 07:53 PM
Post #1

New D.I.C Head
*

Joined: 2 Jan, 2008
Posts: 2

I realy realy need help with this im making a system logger for my system records key strokes so forth now b4 u egt any ideas NO its not a malicious key logger.
Heres part of the code

CODE
Dim data$
Open "C:\log.txt" For Binary As 1

Get 1, , data
DoEvents

Put 1, , Text1.Text & data
DoEvents

Close 1
End Sub



this writes what i type into a text box great, how ever i want to moniter my system usage when im gone so what code would u use to moniter all text typed not just text typed into a text box. I need it to record all key strokes not just the strokes done in the text box i wana get rid of that text box

PM me if u need full code TY

This post has been edited by m0ng00se: 2 Jan, 2008 - 07:54 PM
User is offlineProfile CardPM
+Quote Post

benpap
RE: Need Hep Writting A File In VB6
3 Jan, 2008 - 06:58 AM
Post #2

New D.I.C Head
Group Icon

Joined: 24 Nov, 2007
Posts: 44


Dream Kudos: 100
My Contributions
This might be not usefull but you can have a search here if you didnt already.
User is offlineProfile CardPM
+Quote Post

LookNAO
RE: Need Hep Writting A File In VB6
3 Jan, 2008 - 07:39 AM
Post #3

D.I.C Head
**

Joined: 28 Dec, 2007
Posts: 66



Thanked: 1 times
My Contributions
Maybe try:
http://www.planetsourcecode.com/vb/scripts...98&lngWId=1

User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Need Hep Writting A File In VB6
3 Jan, 2008 - 09:52 AM
Post #4

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,029



Thanked: 38 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
You will have to use a Keyboard hook so that as soon as a key is pressed, Windows will call your 'callback' function which is to be used to write each keystroke at a time.
User is offlineProfile CardPM
+Quote Post

greymatter
RE: Need Hep Writting A File In VB6
8 Jan, 2008 - 07:34 AM
Post #5

New D.I.C Head
*

Joined: 8 Jan, 2008
Posts: 1

Try setting the form Keypreview to true and using form.keydown to trap each key
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Need Hep Writting A File In VB6
10 Jan, 2008 - 12:18 AM
Post #6

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 4,029



Thanked: 38 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
But that would capture keystrokes as long as the application has focus.
Keyboard Hooks can record keystrokes regardless of focus.
User is offlineProfile CardPM
+Quote Post

pickle
RE: Need Hep Writting A File In VB6
20 Jan, 2008 - 05:53 PM
Post #7

New D.I.C Head
*

Joined: 20 Jan, 2008
Posts: 1

welli use this you must use a text box a button and you must put in the filepath (ps i hope this helps)
CODE

Private Sub create_Click()
    Open "E:\Documents and Settings\username\My Documents\folder\textname.txt" For Append As #1
    Print #1, Text1 & vbCrLf & Text2
    Close #1
    
    MsgBox "Done!", , "done!!!!"
End Sub

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 01:32PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month