Capture When A Machine Is Idle?
Jan 21, 2009
Is it possible to capture when a machine is idle? I realize that a machine is never really idle, but screen savers work and power management schemes work... So, there must be a way to create an application to capture the same thing, correct?
Has any tried this or has any success capturing when a machine is idling?
View 6 Replies
ADVERTISEMENT
Sep 16, 2010
Can anyone tell me how I could make my program (running in background) do something when when Windows becomes active after being idle?
View 4 Replies
Dec 9, 2010
I develop an application using vb.net.application will run on client server architecture.when we try to execute the program in client side then it will give me an error which is related to sqlclientexception.how can i handle this situation.i used vb.net 3.5 as front end and sql server 2000 as back end.i have done total coding with system.data.sqlclient namespace.
View 6 Replies
Nov 26, 2011
I'm making an application in which I'm implementing auto-monitor turn off when system is idle, i.e. when user is not interacting with the system. [URL]it does provides the componenent to know when system is idle. But when I include:
Public WM_SYSCOMMAND As Integer = &H112
Public SC_MONITORPOWER As Integer = &Hf170
<DllImport("user32.dll")> _
[code]....
It shows this error: Cross-thread operation not valid: Control 'Form1' accessed from a thread other than the thread it was created on.
View 3 Replies
Jul 29, 2009
Is there a way in which I can detect how long someone has been idle using a form (ie. Not clicking or entering any information into any fields/textboxes). Or would I have to implement a timer which counts this and reset it in the event handler for any entry?
View 3 Replies
May 4, 2009
I have an MDI form in VB.nEt where I have to find, if the application remains idle for 20 mins, I got to log off the logged in user. On doing RnD, I found a class that helps us do the same :- http://blog.perfectapi.com/2008/05/detecting-idle-state-in-winforms-apps/
I saved that class in my applicaiton. In my mdi form's Form Load created an instance of that class. Now I don't know how to move ahead i.e. how to find that 20 min lastActivity duration. I belive I got to trap some evcent in my mdi form and find the value of lastActivity and if that is >= 20, then logoff. But which event to trap and how, I have no clue. In the events for the from also, I didn't found any useful.
View 14 Replies
Dec 7, 2011
I would like to get the idle time of my winforms application (not the system). This will enable me to update the database to show which users are online/offline amongst other things.
View 2 Replies
Jun 9, 2011
can i make idle system for my application...so when user login system & idle for 30 minutes, system automaticly logoff...
View 6 Replies
Apr 8, 2009
I need to get the sytem idle time.It must be developed in vc++ and the code should not use hooks is there any possible way of getting SystemIdleTime from taskmanager
View 1 Replies
Mar 30, 2010
Adding How would you detect if the user is using the computer? I want a program to detect if the user is using the computer (i.e. mouse and keyboard movements), and if the user doesn't type or move the mouse for a specific amount of time, it executes a command. Normally I would do this with the Application.Idle, but I want it to be detected throughout the system. Any starters?
View 22 Replies
Jun 22, 2009
I've build a vb.net windows service which does nothing but ping a wcf webservice and handles sending a maintenance request to this same webservice at night time. It does both tasks using a timer event. If the service does nothing but these two things it says at startup that it's shutting down cause of being idle. The windows service thread needs something todo.[code]....
View 2 Replies
Dec 21, 2010
I've inherited a lot of custom made software for an office, and, while managing it, I've found it performs differently from machine to machine.I mean, some controls get painted in weird ways in some machines but well in another, or just work differently, like in some machines clicking something selects it, and in the next machine clicking the same thing makes it editable.I suspect, o course, of the myriad of DLL the software loads
View 2 Replies
Apr 20, 2009
I'm developing an Ajax-based application which makes heavy use of server calls to a WCF layer that communicates with a DB.Whenever I effect from the client (an ASP.NET page) many calls within a short span of time to the underlying WCF services, the system hangs and goes into a idle state.
View 2 Replies
Feb 11, 2011
Windows resets the IDLE time every time the user touches the keyboard or the mouse. My application needs to reset the IDLE time at specific moments, but how to do this programmatically.
The following does NOT reset the IDLE time using VB, C# or QT4.
- Programmatic mouse movement / click.
- Programmatic keystroke.
Somehow Windows knows these actions are simulated. How can I reset the IDLE time?
View 3 Replies
Oct 13, 2011
I am in the process of developing an application for one of my clients. I am not going into the details of the applications, but brief facts of the same. The application is divided into two tiers (actually three, but the third tier is the database (SQL SERVER) so that is not included). The top tier (or first tier) is a web application (ASP.NET) where the users shall log into the system and use the application. This web application will also access the Database directly. One important activity the users shall do is uploading excel files with various information to the server. Web Application once the upload is successful shall enter the details in the in Database about the upload along with an ID and save the excel file at a location in the server.The Second tier is a VB.NET Application which will run in the server. The application will connect the database and retrieve the list of excel file uploaded by the web application and start processing one excel file after another based on ID. The processing that will be done is very simple: read the excel file, check for certain parameters, do some calculations and insert the whole details into the database. (say some 100 records per excel file)
The server in which the VB.NET Application (Second tier) runs is hosting a serious of services and application which shall run simultaneously including the Database (SQLSERVER), web server. The Database also host tables and database for various other applications. In order to help in the smooth functioning of the system, it has been decided that the VB.NET shall do the processing activity only when the server is idle (including CPU usage is idle). I have searched the Net and found API to get the system Idle status. But the real question is how to pause the processing activity when the system switch from idle mode and continue when it is again back to idle mode. Please note that I am talking about system being idle because no other application is executing any activity except the VB.NET Application.
View 1 Replies
Mar 9, 2011
I have a small problem with process priorities (Win Server 2003 Standard, 8 Core, 16GB RAM). My VB.NET 2005 program starts a process like this:
Dim WithEvents proc As New Process
Sub Main()
proc.StartInfo.FileName = "blastx.exe"[code].....
In this case, blastx.exe runs on 4 cores.I would expect that my started process is idle and has 0% CPU usage while the system is under full load (I simulate this with prime95, 8 worker threads) and only runs if there are free resources. But it generates 25% cpu load and prime95 only 75% instead of expected 0%/100%. In the task manager, I can see that my process has the lowest priority and prime95 has the normal priority.
View 1 Replies
Mar 31, 2009
way to reset a timer if there is form activity so it will not expire until the mouse has been at rest for 2 minutes.
This timer runs for 120000 milliseconds usually, and sometimes it lapses (and logs you out) when you are in the middle of editing. Sometimes 2 minutes is not enough time to do all the edits. So I wish to reset the remaining interval as long as there is mouse activity. But I am not sure the best method to do this?
I have found the mousemove event but to me this seems like it's going to fire way too often and tax the resources if I preform operations here, maybe not? Is there a better way to get this functionality?
I want this functionality so that if someone starts editing on the UI and walks off/gets distracted it will lock the grids back so that some other user can't come dork things up.
View 14 Replies
Dec 28, 2009
My main form has a timer that monitors idle time in my app: no mouse movements and no clicks.If the idle time reached 3 seconds, in *this example below*, then I want to show frmRestart, which will call the UnloadAllFormsExcept(Me) function from frmMain.When three idle seconds are reached, frmRepeat starts to show on the screen but never does!! I just see the border of the form and nothing else. My mouse goes into "thinking" mode forever.[code]
View 5 Replies
Jan 21, 2008
I want to block a perticular machine from accessing my machine..Both the machines are in LAN..I dont want a perticular machine to access my computer How can i achieve this...I want to do this using VB.NetAny idea....
View 9 Replies
Apr 5, 2009
So I am hacking together an app which listens to traffic using SharpPcap library, it reconstructs the packets from sessions using the code from TpcRcon.
Listening and reconstructing part work on their own . What I want is on each packet arrival main window gets an event so it can display the packet , and when session is reconstructed display a complete packet (I am interested in HTTP ones) . -That is where it breaks with weird symptoms: for example right now it does not stop on invoking stop listening method - the sharppcap library function hangs there forever waiting on this line of code : m_pcapThreadEvent.WaitOne();//wait for the 'stopped' signal from thread
I also had it not working and crashing in sharppcap function because I had omitted one parameter in form delegate- which makes no sense, because form delegate does not deal with packet capture at all and only reacts on "New Packet" event from my "Listener" class (which is only there to notify main form)
My app starts as module main instancing class "Listener". MainForm has it
registered as friend with event and handles even "New Packet"
Main Form:
Private Sub uiListenStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btListenStart.Click
aLogger.AddMessage("Started Listening")
[Code]....
View 1 Replies
Dec 5, 2011
I wanna know how to make a Idle event that sets a timer to determine if my system idles for a minute and pop outs a form and stop the timer if that form loads?
View 2 Replies
Mar 12, 2010
Here's a snippet of VB .NET code we have, which always returns a printerStatus code of "3" (meaning idle) even though the printer is switched off and in the printer properties box within control panel is says, "Error - Printing" under the Status column.
Snippet of VB code below:
Dim scope As New ManagementScope("\" & t_node.Text & "
ootcimv2")
Dim query As ObjectQuery
Dim searcher As ManagementObjectSearcher
[code]....
View 5 Replies
Jun 22, 2010
I need to detect when no moving of cursor or keyboard then my form will automatic closing...how to do that.
View 1 Replies
Dec 13, 2010
I am trying to capture a tv dvb-s signal via vb.net since a long time now.I have tried to get it work with the Microsoft examples, but no success till yet.I had success with analog tv tuning, but digital tuning is still far away, also I don't find any examples with dvb-s and vb.net or c#.
View 1 Replies
Feb 4, 2011
how can i capture the value of left in the line below using string function:
left position is left:215px
i must capture the value 215.
View 2 Replies
Mar 7, 2011
Target:
Send commands to a CMD.
Retrieve their corresponding output (result).
Present the output in a TextBox.
Example:
send "ipconfig" to CMD.Present the output (result) of the command in Text1 TextBox.
View 2 Replies
Mar 26, 2012
I want to capture Form1 window, not what is on top (what I actually see).
Dim screenshot As System.Drawing.Bitmap
Dim graph As Graphics
[code]....
It captures what is on top, for example: I have firefox on top, so in myPic.bmp will by firefox, not Form1 window. So, how can I do that when some programs are on top, it captured Form1 window?
View 3 Replies
Nov 15, 2011
i want a code for capturing snap through webcam i have a form where i placed a button, what i want is when i click that button it capture a snap and save it in c: drive ?
View 1 Replies
Aug 27, 2010
Searching found many answers along the lines of it depends on the device driver", but I don't think that it's that way here.
I have a cheap & nasty RFID tag reader. You just have to open notepad, touch a tag to the read and its serial number appears in notepad (I have not tried it in Linux).
Anyhoo, how can I programatically capture this serial number in VB.net (20088 express)?
View 2 Replies
Oct 13, 2010
When I first saw Silverlight, I thought that there was a How Do I: video that demonstrated how to capture the PC screen and save it in a WMV file. Since I can't find anything like that I'm wondering if I was dreaming or it has been removed from the Net. My goal is to create a video capture Class that I can use to demonstrate my program and add the feature in my program so the user can record any issues they are having with my program and send it to me. This way I can see what issues they are having with my program.
View 2 Replies