Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

easy questions..

Posted on 2001-07-08
3
Medium Priority
?
145 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

597 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