473,288 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,288 software developers and data experts.

Urgent also(Need help how to set the timer for outo logout when still run system)

11
hallo, Is me again. I'm beginner also is new member. I want to ask that how to do the function auto logout when the system still run (but the mouse don't move)? How to control this and the timer..
Thank for ur help
:)
Jul 14 '06 #1
4 2100
sashi
1,754 Expert 1GB
Hi Candice,

first of all you need to have a little knowledge on API programming part.. there are some API can be used to capture the idle state of you keyboard or mouse action.. you need to intialize a timer control to capture the idle event.. set a preset time or delay to automatically logout after a predefined time.. good luck my fren.. :)
Jul 14 '06 #2
BSOB
77
depending on your application, you could skip the whole api part. mouse movement on a form is fairly simple. But if you dont have a form or if you want to see how long the mouse has moved on the screen (and not on the form) then really, ignore everything from here down.
'<public declarations>
dim lastmoved as long
form_mousemove(Button As Integer, Shift As Integer, X As Single, Y As Single)
lastmoved = timer
end sub
timer1_timer() 'set interval to 1000 milleseconds.
if timer-lastmoved>120 then 'seconds, this is two minutes
call autologout
end if
end sub

ok, i may not have helped you with the auto log out, or much with the mouse move, but you have 2 lines of timer code!
(im looking into the auto logout bit.)
Jul 15 '06 #3
candice
11
[quote=sashi]Hi sashi,

Thank for ur reply. very Happy because have people reply me. I know the API function but don't know how to apply in my system. can you send a simple code to me. If can't is ok,Anyway thank ur help and good suggestion. :)
Jul 17 '06 #4
candice
11
[quote=BSOB]
Hi BSOB,

Very happy see ur reply and thank for ur help and good suggestion. I will try it. Have a nice day .. :)
Jul 17 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: SB | last post by:
What I want to achieve ... Display file names from sql server database, on click the file should open up using test.exe file. Using the following code, I am able to display the files and click on...
1
by: greesh maheshwari | last post by:
i am successfull to Create the Project on the Remote Web Server, now i want to add a Class Library in same project, but the following Error Occur. 1)The project is not filly trusted by the .net...
6
by: Mike L. | last post by:
Hi, Pls, beware that I'm new to this :) I've developed several web appl, either with ASP or ASP.NET. All using SQL server as the back end. In my development environment, I have a single...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
2
by: Martin | last post by:
Hello, We are in the process of putting together an A class PHP Development team(ecommerce / billing applications) for a project in the Bay Area. Reqt. details: ReqId : Req-3616 - Senior PHP...
1
by: pyramid36 | last post by:
A national healthcare software client of ours has an urgent need for 2 C++ Developers with SQL Server eexperience for a 4-6 month contract. Overall the consultants should have 5-8 years experience...
6
by: martin DH | last post by:
**Urgent Need** I'll throw out the basics and any assistance is very, very, very much appreciated! Access 2003 on XP On a form (frmMain) is an option group of check boxes (ReportFrame) from...
1
by: psantosh12 | last post by:
Hello Frnds Please need help to resolve error.......... it is very very urgent........ The error is Runtime Error Description: An application error occurred on the server. The current custom...
1
by: javabeginner123 | last post by:
i have a java prob, and i have to solve it fast, but i'm just getting to know it, so plz help me solve it with full code completed, thanks so much. the prob is to create a monter fight and there is...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.