topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 7:03 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Does anyone know any temporary startup manager?  (Read 4868 times)

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Does anyone know any temporary startup manager?
« on: July 13, 2008, 11:04 PM »
I am looking for a startup manager that can start items only once(one session) then deletes them. I know I can make batch files, use startup applications etc but that is not the path I want to take. I need more convenient solution so that I do not forget to disable-delete any temporary startup application-item.

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Does anyone know any temporary startup manager?
« Reply #1 on: July 13, 2008, 11:59 PM »
Someone who knows AHK can probably do this better, but here's a start...

FileSelectFile, programname

Gui, Add, Text, x22 y22 w80 h20 , Program to run:
Gui, Add, Text, x112 y22 w320 h20 , %programname%
Gui, Add, Text, x22 y62 w190 h20 , Command line parameters:
Gui, Add, Edit, x22 y82 w410 h20 vCommandlp,
Gui, Add, Button, x22 y122 w100 h20 , OK
Gui, Add, Button, x142 y122 w90 h20 , Cancel
; Generated using SmartGUI Creator 4.0
Gui, Show, h166 w440, RunOnce Control
Return

ButtonOK:
Gui, submit
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\Currentversion\RunOnce, %programname%, %programname% %commandlp%

ButtonCancel:
GuiClose:
ExitApp


This new version will allow you to add command line parameters if you want after selecting the program to run.

Carl
« Last Edit: July 14, 2008, 01:27 AM by cthorpe »

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: Does anyone know any temporary startup manager?
« Reply #2 on: July 14, 2008, 01:15 AM »
Thanks cthopre!

I will give a try once I need to restart today

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Does anyone know any temporary startup manager?
« Reply #3 on: July 14, 2008, 01:27 AM »
I made some changes to the script to allow you to enter command line parameters if needed.  The exe file attached is updated as well.

kartal

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 1,529
    • View Profile
    • Donate to Member
Re: Does anyone know any temporary startup manager?
« Reply #4 on: July 14, 2008, 01:32 AM »
Thanks for the update. It might work, because I just checked out runonce key via autoruns. The stuff I have added via your app is listed there. Thanks again
 

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
  • c++thorpe
    • View Profile
    • Donate to Member
Re: Does anyone know any temporary startup manager?
« Reply #5 on: July 14, 2008, 03:11 AM »
Btw, it's easy to change the script to add a program that is specific to your user account.

Just change the line:
RegWrite, REG_SZ, HKEY_LOCAL_MACHINE, SOFTWARE\Microsoft\Windows\Currentversion\RunOnce, %programname%, %programname% %commandlp%

to
RegWrite, REG_SZ, HKEY_CURRENT_USER, SOFTWARE\Microsoft\Windows\Currentversion\RunOnce, %programname%, %programname% %commandlp%

justice

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,898
    • View Profile
    • Donate to Member
Re: Does anyone know any temporary startup manager?
« Reply #6 on: July 14, 2008, 04:00 AM »
[explained the obvious]