473,387 Members | 1,347 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,387 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 2102
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.