Solved

easy questions..

Posted on 2001-07-08
3
131 Views
Last Modified: 2012-05-04
I have three easy questions...

1- How can i detect which resolution user uses and which color depth?

2- How can i open ex: http://www.experts-exchange.com in users default browser?

3- I have a timer component and want to count back from 10min. Example : Now is 12.03.05 and i want to warn user after 10 min (12.13.05). How can i do this?

Thanks for all
0
Comment
Question by:yarasakol
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 75 total points
ID: 6262191
Hello

1) read this artilce
http://delphi.about.com/compute/delphi/library/weekly/aa011100a.htm

2) use shellexecute api

uses shellapi;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ShellExecute(handle,'open','http://www.experts-
exchange.com',nil,nil,sw_show);
end;

3) in interval every 1000 = 1 second
                     600000 = 10 min
 
 and write ur code in the timer event

Best regards
Mohammed Nasman
0
 

Author Comment

by:yarasakol
ID: 6264061
Thanks for you but if you explain 3) again i will be happy..
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6264328
Hello

from delphi help :

TTimer.Interval
Determines the amount of time, in milliseconds, that passes before the timer component initiates another OnTimer event.

property Interval: Cardinal;
};

Description

Interval determines how frequently the OnTimer event occurs. Each time the specified interval passes, the OnTimer event occurs.

Use Interval to specify any cardinal value as the interval between OnTimer events. The default value is 1000 (one second).

Note:     A 0 value is valid, however the timer won't call an OnTimer event for a value of 0.
///

so as you see, 1000 value in interval property mean 1 second, so if you want to ur code work every 600 second (10 min)  need to multiply by 1000 = 600000
so you have to put 600000  value in interval property and place ur code in the timer event

if that still not clear, send me email : nasman@mogaza.org
and i will send u sample

Mohammed
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Filemaker 14 vs Delphi Embarcadero 7 186
Using FastMM4... should I enable MMX option? 9 76
how to draw animated progressbar in Tvirtualstringtree 5 117
Simple Delphi Question 9 83
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now