?
Solved

easy questions..

Posted on 2001-07-08
3
Medium Priority
?
140 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 225 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 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