Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2001, 10:40 PM
User 850 User 850 is offline
Member
 
Join Date: Jan 2001
Posts: 71
Default How to find out if my app was auto - or manualy started?

How to find out if my app was autostarted by windows start-up, or if the user dubble-clicks on it, or runs it manualy in some other way?

Thanks in advance
Reply With Quote
  #2  
Old 01-11-2001, 12:06 AM
OregonGhost OregonGhost is offline
Member
 
Join Date: Jan 2001
Posts: 77
Default RE: How to find out if my app was auto - or manualy started?

When you register the program to run at windows start-up, you can start it with a parameter (e.g. '/auto'). With ParamStr(1) you can read this parameter (I think the function will fail if no parameter is specified)

Oregon Ghost
---
Wenn NULL besonders gro▀ ist, ist es fast schon wie ein bi▀chen eins.
Reply With Quote
  #3  
Old 01-11-2001, 04:46 AM
Obeliks Obeliks is offline
Senior Member
 
Join Date: Aug 2000
Posts: 139
Default RE: RE: How to find out if my app was auto - or manualy started?

Yeah, I see no other possibility.

By the way, you can get the numbers of params with the function ParamCount.

Gru"z,
Obeliks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 08:09 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.