Jump to content

Recommended Posts

Posted

That would only work for one time when I start the script for the first time, I want to check if when the script is first run, that first time is at startup or not.

Posted

You didn't get it. I want the program to minimize when started but only if it was started from the startup. making a log would tell me it's not the first time but I can't know if it's ran at startup or not...

Posted (edited)

when you place it in the startup routine, use a parameter like myexe.exe -param

So if it was started through startup it would have that param there, if started manually by user then it would not be called with any parameters

EDIT: Something like that?

Edited by danwilli
Posted

I still have to detect whether is started with startup or not...there is no startup routine except puttin' the shortcut in the startup dir and that doesn't help. 10x for tryin'

Posted

We could help more if you were more specific in asking. The command line parameter will work just fine, as suggested.

Have the startup entry say "script.exe -onstartup" and check for -onstartup. If it isn't there, then it wasn't run from the startup entry. There is no Window's defined way to see if it started at startup or by the user.

Well actually, I guess you could check the login time and the process starting time. If they are close enough together you can probably assume the script was run at startup. Dunno how to do so, but I know it is possible.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...