Main Area and Open Discussion > General Software Discussion
Does anyone know any temporary startup manager?
kartal:
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:
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
kartal:
Thanks cthopre!
I will give a try once I need to restart today
cthorpe:
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:
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
Navigation
[0] Message Index
[#] Next page
Go to full version