Solved

easy questions..

Posted on 2001-07-08
3
130 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:
mnasman earned 75 total points
Comment Utility
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
Comment Utility
Thanks for you but if you explain 3) again i will be happy..
0
 
LVL 22

Expert Comment

by:mnasman
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

763 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

6 Experts available now in Live!

Get 1:1 Help Now