Solved

easy questions..

Posted on 2001-07-08
3
136 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 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