Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




User Activity Log


Greetings, I've built a User Activity Log VB App that tracks some user info while on the server. Now I have to make some mods and wanted some feedback on the best approach. I will need to piggy back my app on the login and logout/lock station forms. How can I do this? I will also need a single datasource to store the user info, despite having one copy of this app per server. How can I do this?

This app is VB6 and will run specifically on NT 4 with the latest SP. All help is appreciated!

Thanks,

LS




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Monitoring User Activity
I need to monitor user activity in a project in that if the user has not touched any keys, or performed mouse clicks in a given length of time, I would perform an action like logging the user off. (Similar to a power saver feature in Windows, or “auto log off” in Windows NT)

My question: Am I forced to create an event for every control on my form to detect usage, or is there another way to capture usage via API, etc..

Any suggestions or help would be appreciated.

Thank You!

Checking For User Activity.
Im trying to find some information on getting user activity/inactivity via a timer.

I have an MDI form with a number of child forms I want to trap for key activity or mouse activity so that no matter what form I am in if time > x then I can execute a function, much the same way as a screensaver works in windows i would guess.

I have thought about having a timer class that when program loads it starts timer then in each form performing a reset on timer value if key or mouse is used but this isnt viable as I need to hard code each form seperatley.

If anyone has any ideas or can point me to somewhere that has a similar example I'd be grateful.

Thnx

Executing A Macro By Certain User Activity
Hi everyone.

Sorry if the title is a bit confusing. Let me elaborate.

I have created a utility in Excel which is basically a 'live' staff database containing names, positions, emails etc. etc. etc. In order to delete a member of staff from the list, the user simply right-clicks on the appropriate row number and selects delete.

Once someone has been deleted from the list, the list needs to be refreshed i.e. re-numbered and re-sorted. I have added instructions to inform the user that he/she needs to hit a 'refresh' button on a toolbar menu I have created.

However I was wondering if it was possible to execute a VBA 'course of action' from predetermined key strokes. What I mean by this is that if at any point during the user's time using this database, if a row is selected and then deleted, a macro kicks in which shows a MsgBox prompting the user to refresh the data. Better still, the macro would refresh the data automatically.

Is this possible? Any help would be greatly appreciated.

Detect User Internet Activity
I'm looking do a couple things thru a VB app.
The first is to see if a user is currently connected to the Internet (I did a search and saw that there is code floating around to do that).
If the user is connected, is there a way to tell the current URL they are on. (Beyond that, if they have more than one browser open, is there a way to get ALL the URLs they are currently pointing to?)

Any help is greatly appreciated.

Elasped Time Since User Activity
Hello,

I am attempting to create an app that reports who is and isn't at their desk. To do this I want to create a client app that sits in the background of the users computer and reports the idle time of the computer... ie time since keystroke or mouse activity... is this possible to do without too much trouble? And can anybody outline how I might go about this?

I guess programs such as Windows Messanger already do this?

Thanks

Scott

Activity Log
I want to create an app that tracks usage on a computer. When nothing has been done for say 10 minutes (mouse moves, kyboard inputs, etc) then the "inactivity period" has begun and wil end when computer is utilized again. Should also log actual power on and power off time.

Any ideas on how to approach this problem would be greatly apreciated.

Port Activity
Hello everybody !


Is there a way to scan ports for activity ??
Somekind of API or something, ...
I really don't have a clue.

I hope you understand the question.
If some port is used (e.g. sending files, portscan, etc..), I want to use it in my program.



Thanks already.
Jeroen Van den Eynde

Network Activity
Hi.
I want my program to monitor how many bytes are being sent/recieved over
the network. Much like when you double-click on those little computers in the tray, you get a form with some connection data and figures about bytes sent and recieved - that's almost exactly what I need.
Of course I dont have a clue as to how to do it.
So please help! Thanks.

Activity Monitor
I'm writing a program for a large clan to let them know whether thier members are active or not active. The general idea comes from XFire, but XFire can't be used for auto detection. On our server, we have a PHP script that checks for forum activity and if they dont login for a month or so, it automatically terminates thier membership or marks them as inactive. This is not fair for gamers who dont like to visit the forums, but still earn thier keep in the game.

My Solution is I want to write a program which runs on thier system tray, if they go into a game(exe is identified in a database on thier machine), it will connect to the server sql database and put them on the list as being in game and timestamp it. When they leave the game, it defines them as not being in the game. Basically, this tells our database whether or not they are in a game and if not, when they were last. I'm using Mark Mokoski's exe detection to detect the exe running, and i know how to put something on the system tray. I guess what i'm asking for is the best way to loop it so that it dont lag thier game out while it's doing it's exe checks/database connections. I thought of using the timer, which i still might. I wanted to get feedback from you guys before i got too deep into the project. I'm just concerned about lag because there will be several queries taking place to a remote database, and i wanna make sure there isn't a better way of doing this. Any suggestions?

Code:
Private Sub Form_Load()
Timer1.Enabled = True
Timer1 = True
Timer1.Interval = 5000
End Sub

Private Sub Timer1_Timer()
Dim test As String
test = "notepad.exe"
If IsProcessRunning(test) = True Then
Text1.Text = "Running"
Else
Text1.Text = "NOT Running"
End If
End Sub

Monitoring Activity
is there anyway to monitor the avtivity between you and the internet.

like, make is so that you can see what servers you are communicating with and how much you are sending/recieving to them

thanx in advance,
Byan

Activity Timer
Hello,

First off let me introduce myself. My name is Benjamin D. Smith, Co-founder and Co-Owner of Pro Designs. Pro Designs is a newly formed company that produces Proformance parts for race cars that run at community 1/4 mile racetracks. I am developing an application that will allow myself and my neighbor/ Co-found/Co-owner to communicate back and forth and will store company information on the company itself and it's confidental research and development products.

NOW, with that said, because all of our project products are completely confidental This application is multi-secured. Another measure I have decided to take on this application is to make a timer that would close the application after a period of user inactivity.

Here's more detail on what I need help with.

I want a timer to count down once the program becomes inactive for one second. The counter will be set for 5 minutes. I want it to be, if Jason or I do not click any buttons or make any movement on the application it will close.

SO, The timer will need to start when the mouse stops moving on the app. and then RESET when the mouse moves again. Or if the mouse stays motionless for the 5 minutes the App. will close. I know how to set the timer for the time and how to close... I just need to know what code would be used to detect user movement.

If you can get a better idea from this here's an example. Capital One (as I'm sure other Credit card companies do) have it to where if you do not click a link or scroll for a long period of time it will automatically log you out... I want something like that ONLY it will close the entire App. instead of just logging out.

I am using Microsoft Visual Basic 2005.

Any and ALL help is greatly thanked ahead of time.
Sincerely,
Benjamin D. Smith


**I want to add I recently have come to understand handing out code is not allowed on this site. I'm not really asking for a code hand out I'd much rather do it myself, however I have no idea what to do as I am new to VB 2005. I also did not know I shouldn't post VB 2005 questions in General it should be in VB.net however I thought VB.net was a different program.
Thanks to DougT for this information.
B.D.Smith

File Activity
Dear All,

I am using a directory which have 5 files and there is a process that modify the contains of the files.

Is there any way to regulary check that the file contains have been changed and send a msgbox for notification?

Could you please?

Thanks

Drag Over Activity
Hey buddies... Need some ideas

I have a label control on a form. I want it to change color when i drag over another control over it, but only till that duration during which the dragged control is over the label.

I tried using the Dragover property to change the colour, but there's no dragout property, so I don't know when the dragged control goes out of the label's area.

Any idea how i can make a hotspot sort of a label that changes colour when a control is dragged over it?

Thanks for your help

Log Printer Activity
Using VB6 (windows 2000 and xp)
I want to be able to log all the printer activity. Nothing crazy just anything that comes through the print que on my computer. So if I have added a network printer then I can see the items printing. Why not log them. SO is there an example of how to grab the print evens from windows print que? I know there are programs out there that do this but they are either to much or crappy!! I want to make my own.

So I need to get:
Printer name
User name
Number of pages
Item name
Number of copies
Number of KB
Time started
Status (print job starts/stopped/paused)
Time finished

Does anyone know how? Or where to start?

Detect Activity
Hi, I have this question, how I can detect if someone modify something on my application, I can detect if the user is making changes, but If my Form have a lot of controls I don't want use the Change even in every control in the form to detect modifications !!!!



Thanks !!!

Drive Activity
I'm not even sure where to start looking for this. What I want is to capture when a drive (or even all drives) are reading and writing. I don't just want it limited to physical drives, partitions (or volumes) too.

I don't really need this for anything specific. I just like learning cool stuff. I might build a little LED flashing program, or maybe track stats or something. I'd like to be able to get this information for CD-ROM drives and floppy drives also, but at the very least for hard drives. Like I said, I'm not even sure where to start looking.

Thanks in advance.

Disk Activity
I need to find a way of raising an event when a file on a target disk is created, changed or deleted and return a fully qualified path.
The intention is to write this info to SQL and process it later.
Can you help Please ?

Detecting HDD Activity
Does anyone know how to dectect hdd activity. I really have no idea where to start but im pretty sure its an api call. ill keep looking but if anyone knows how to do this please post as soon as possible. Thanks

Inet Activity
AAARrrrggghh!!!


I am having difficulties in dealing with the inet control... i am almost done.... just a part of problem that i don't understand..

can anyone tell me how to shut the inet control operation "while it is busy downloading"...

1. when the inet hang in half-way download? how to re-request?
2. when the inet encounter error during download, how should i re-request the download
3. i couldn't shut down the program properly when the inet is still busy.......
HELP

Activity Indicator
Hey all,

I'm writing an app that creates a document and right now I have a multi-line textbox that simply fills up with some of the data that is being dumped into the created file to show that some activity is happening. The problem is, the box doesn't scroll as it is being filled. The box fills, but all you see is the first 5 lines or so that were put into it.

How do I make the textbox always show the most recent data?

Or is there another way I should do this?

Thanks.

Inet Activity App
I would like to write a small app that accesses the internet every 10 minutes or so just to keep my ISP from knocking me off line.

I thought about a webbrowser control on an invisible form with a timer, but there has got to be a more elegant way of doing it.

Any suggestions?

Tracking Activity
I want to be able to track whether there has been any activity on the pc and if there has not been any for a certain amount of time, trigger an event. A bit like the screensaver must do. My program will be running in the system tray but will not always be the active program.

I can't get an answer to this anywhere.... please help!

Matt

How Can I Monitor LAN Activity?
Hello World,

For a couple of days, I'm trying to monitor system resources, all of them open local ports etc. and LAN activity using SetWindowHookEx, but i was not able to.

If you know how to, please let me know, too.

Thanks in advance

Process Activity
Hi all.
I'm writing a software that has to "hook" some process and monitor all its network activity.
somthing like getting process ID (I already have its ID - this is not the problem), and from that point of time, just "know" about all of its tcp/udp activity...

I look up for this and found about counter ID's of single process. but I need is just the tcp activity.

any suggestions?

10x.
Daniel.

Msgbox Spacial Activity
Hi
Msgbox has an special specification(maybe for me) that makes every thing stop till msgbox form is showing.
Latter lines after msgbox won't execute until msgbox is open.


After editing textbox1 I need every thing stop and a form.show ,some setings change by user, then next textbox2 got focus base on these changes.

How can I make a form act like msgbox?

How Do I Uhh... {Responding To IM Client Activity}
I dont really know how to explain this, but I want to monitor a program and when something happens within that seperate program I want my program to have an action...make sense? I know it prolly has something to do with packets, but i know 0 about that stuff....ne good tutorials bout this?? or does someone of you just know the answer to my question off hand?

Monitoring Network Activity
What I am wanting to do is write a program that monitors network activity on the local machine. Connections that have been established, network traffic from the computer, port monitoring, etc. Anybody know how I'd go about doing this? Thanks! :-)

Detecting Disk Activity
^topic^

Defraggers can do it; can VB?

Child Activity Center Help
hi all, i am creating a child activity center for a school assignment. its aimed at childen aged 3-4, so i need a little help on programming a little activity thing.

i want to make a little ball that the child clicks on and drags from one side of a bar to anoter(pretty boring aye), but i dont know how to program it, my mate is a 1337 programmer and said somthing about using x and y axies or somthing. does n e one know what he means?

heres a little piccy of what i want

Database Activity Alert !
Dear All,

I am working on two Visual Basic 6 Projects. One project deals with only Data Inputs and another only for reporting. Both projects use same database (.mdb file).

Is it possible that when ever user inputs a new record or modifies any record it sends an alert or triggers some sort of event in another application or project?

I will be grateful for your helpful reply.

Farhan

Detecting Browser Activity
Hi all,

How to detect the browser activity.
If an user browses each & every click he does in the browser should be tracked.

How to do it with VB.

Babu

If No Activity For 5 Min Then Call A Form
I want that if no activity is there with the software for 5 minutes then the program should automatically call a form named frmlogin. How can this be done?

Watching File Activity
can anyone help me on this

I am developing a program in which it will copy files from a source folder into a target folder. If there is a new file in the source folder, it will automatically copy the file to the target folder but how do i know if the file is already copied or is still copying ?

Catch Printer Activity
Hi all,

Just wondering if there is some VB6 code that can "watch" the system, and if someone tries to print, launches an application? I'm trying to make a kind of print auditing/print controller type application.

The problem with most of the ready-made apps, is that they require a print server to run the controller on, and my printer connects directly to the network. So I'd like to make a stand-alone app that will run on each PC in the network (5 in total, so not many) and logs who prints and adds a total to their balence.

Any code which can make my application run as a service, and maybe respond to a key-combination (similar to key-logger type programs and DeepFreeze) would also be appreciated.

Thanks!
James.

Lock Internet Activity
Hi Someone can help me

How can i Lock/Unlock all internet activity


Thanks JP

Indicator For Ethernet Activity
I am developing an application that a user can configure to retrieve information from an industrial controller. I would like to place two LED indicators on my form, one for transmit and one for receive. Is it possible to detect ethernet activity to and from a specific IP address?

Thanks,
Chris

Capture Screen Activity?
Does anyone know of a good activex control to capture the screen activity with sound to a video file? The only one I know of is at viscomsoft.com and it does not work well.

Thanks!

How To Monitor Internet Activity?
hello...

anyone has a good idea on how to monitor internet activity?
i've tried NetStat but it's been giving ,e lots of problems...

thanx,
Dekel

Need To Log Activity On A Simple UCP Port?
i have a program that sits and listens for incoming messages at an UCP port. How can i make another program that can also intercept that UCP sent message and LOG it to a file.. The message is sent from remote location to my local computer..
So indeed i should be able to listen to an UCP port with two differnt programs? or what?
But how can we make a small program that listens to an UCP port and logs everything it recieves to a text file?

Please help me make a 1 UCP PORT LISTENER and LOGGER..
..I need it..


Please help me,or ask if you did not fully understand the question!

Low Level Http Activity Spy
Hi,

Have seen a lot of stuff about getting stuff from Internet sessions using information provided by IE (eg, sites visted, cookies,...). What I'd like to know is how can I do this on a lower level to make it independent of the type of browser. Also, how can all http traffic be blocked or released to block access to the Internet.

I'm starting a new project on managing Internet access by users and would like to have a few pointers by anyone.

Thanks in advance.

Mike.

Tracking Modem Activity.
Hi,

I am working on program which would enable me to 'monitor' the activites of a particular user. My monitoring includes modem activities.

Is there a way to track the activities of a modem, as in what numbers were dialed, amount of data sent/received and ....etc.

To my knowledge, if a modem is already connected to the internet or being used by another program to 'do things', it would be impossible for another program to interfere in the same modem's activities, which also prevent the modem from being monitored.

Pls correct and advise, thanks in advance.

How To Interrupt DCOM Activity.
I have a thin client that makes calls to a middle tier via DCOM which in turn communicates with an alpha via winsock. My question is when the applications starts fetching data from the middle tier and the alpha I am unable to abort or interrupt the operation until all operations are complete. I get the switch to / retry MsgBox. I would like a way to abort or interrupt operation.

Thanks
Danny

Keep Track Of Internet Activity
I have seen this mentioned here and there, but i haven't figured out how to do it. People said you can set up internet explorer so you can listen to a certain port w/ winsock and see all internet activity through your computer. Does anyone know how to Set Up IE, and how to make the app so it works?

Logon And Activity Logging?
I was wondering if someone could help me with the following questions. Thanks
[list=1][*]I need this program to start logging all activities when it is ran, including keypress, mouse click, etc.[*]It also needs to record the time and date the program was run, and for how long it was run for.[/list=1]

please get me started with this.

Any help is great, thanks.

Modem Activity Monitor
HI! I am working in a project and I need to be able to know how many bytes my modem has sent and recieved. Something like when you double click on those 2 little computer in the taskbar and a window opens and you can see the activity of the modem.

THANK YOU!

Stopping Inet.Activity
How do I stop all internet activity (ITC, the Microsoft Internet Control) so that I can quit my program at any time without crashing.

I now use Inet1.Cancel In the Form_Unload, Form_Terminate and Form_QueryUnload

but it seems to wait before closing.

I think it's not good to just put an END after inet.cancel, will it crash the prog, make the system unstable?

Catching Keyboard Activity
How would I make a program that catches everything that happens with the Keyboard (when someone presses a key) and put it all into a textbox. This sounds easy, but the catch is: I want it to be able to do this without having the focus on my program. So I could type in Notepad and it would all show up in my program too.

~Stoinker~

Monitor Internet Activity
Hi there

Does anybody know of a way how I can monitor internet activity (bytes uploaded and
downloaded)?

Many thanks

Disk I/O Activity Indicator?
Is their an API call I can use that will return true/false if their is any current disk I/O activity?

Thanks, Rob.

Copyright © 2005-08 www.BigResource.com, All rights reserved