How to run a script at startup minimized?

Official forum for open source FreePIE discussion and development.
Post Reply
User avatar
andreaspada
One Eyed Hopeful
Posts: 23
Joined: Thu Jul 13, 2017 10:06 am
Location: Rio de Janeiro
Contact:

How to run a script at startup minimized?

Post by andreaspada »

Hi! I'm getting my hand at work in FreePIE. Currently, I already had produced a good script to solve my main needs for my trackball. Now, I want my script to run each time I logon and, of course, minimized.
I now I can run a script usinr /r after it. but I cannot understand how to have FreePIE minimize itself...

Thanks,
Andrea
Commander89
One Eyed Hopeful
Posts: 7
Joined: Tue Jul 11, 2017 1:49 pm

Re: How to run a script at startup minimized?

Post by Commander89 »

Couldn't this be solved with a batch file
User avatar
andreaspada
One Eyed Hopeful
Posts: 23
Joined: Thu Jul 13, 2017 10:06 am
Location: Rio de Janeiro
Contact:

Re: How to run a script at startup minimized?

Post by andreaspada »

Possibly yes, however I'm quite new to Windows - I'm coming from 15 years of Linux and OSX...
I have a batch file which run freepie, open my scripts and execute it. When it launch, it opens a cmd.exe window - which can be minimized through the .lnk properties - but the FreePIE stay open.
User avatar
andreaspada
One Eyed Hopeful
Posts: 23
Joined: Thu Jul 13, 2017 10:06 am
Location: Rio de Janeiro
Contact:

Re: How to run a script at startup minimized?

Post by andreaspada »

Got it. Using Autohotkey I created such a script:

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Run, C:\Program Files (x86)\FreePIE\FreePIE.exe my/scripts/full/path.py /r,,Min
Jabberwock
Cross Eyed!
Posts: 197
Joined: Mon Mar 02, 2015 3:58 pm

Re: How to run a script at startup minimized?

Post by Jabberwock »

You can create a link from Freepie.exe, add the script parameter in the link properties and make it run minimized.
Post Reply

Return to “FreePIE”