Need OC to start automatically on boot

210 views
Skip to first unread message

阳熙来

unread,
Aug 29, 2023, 7:57:17 AM8/29/23
to OneCommander
Hi Milos, 

I'd like to know if you can let OC be set to start automatically on boot, and then hide in the system tray for seamless operation.There're other ways to do it, but they're complex and inconvenient for me to set and I'm just wondering if you can offer an official functions option about it.

OneCommander Support

unread,
Aug 30, 2023, 9:40:16 AM8/30/23
to OneCommander
You can create shortcut, add -nowindow as parameter
Then do Win+R, type shell:startup
and copy the shortcut there
Now the problem is that you must no pin a program that is run like this, or it won't show window, which is the main reason I cannot run these steps from the program

Sinacs D

unread,
Nov 13, 2023, 1:42:13 PM11/13/23
to OneCommander
Hi there  阳熙来,

Since I tried to do the same thing with you, and I've found that the below method works perfectly! Yon can do the following steps to set a task with task scheduler:

1. Press `Win` key.
2. Search `Task Scheduler` and open it.
3. Click `Create Task...`.
4. Navigate to the `General` tab.
5. Name your task within the `Name` field. e.g. LaunchOC
6. Select `Run only when user is logged on`.
7. Navigate to the `Triggers` tab.
8. Click `New` to add a trigger.
9. Click the dropdown menu of `Begin the task` and select `At log on`.
10. Select `Specific user`.  (or `Any user` just depends on your needs)
11. Click `OK`
12. Navigate to `Action` tab.
13. Click `New` to add an action.
14. Click the dropdown menu of `Action` and select `Start a program`.
15. In the `Program/script` field, enter the full path of the `OneCommander.exe`. e.g. "C:\Program Files\OneCommander\OneCommander.exe"
16. In the `Add arguments` field, enter the command `-nowindow`. (not include backticks)
17. Click `OK`
18. Navigate to the `Conditions` tab.
19. Disable the `Start the task only if the computer is on AC power` (optional)
20. Click `OK` to finish the whole task settings.

And then now you can test it by rebooting your PC. Hope it helps!

阳熙来

unread,
Nov 13, 2023, 8:53:52 PM11/13/23
to OneCommander
Thank you, Sinacs, for your kind and detailed share! However, I have found my own method of accomplishing the task.

There is a programming tool called AutoIt, which is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. All you need to do is create an AU3 format script and place it in the Windows startup menu. To access the startup menu, press "Win+R" to open the Run box, enter "shell:startup," and press "Enter." The statements in the script will be executed every time the computer starts up.

Specifically, I wrote "Send("#e");" to simulate the combined hotkey "Win+E" and open OC (assuming OC refers to a specific application), and "MouseClick("left", 1173, 35)" to simulate a left mouse click on the minimize button of the OC window, hiding it. The numbers indicate the coordinates of the button's position on my PC screen.

In fact, AutoIt is capable of performing various tasks, and I have customized my script to handle everything during startup. All I need to do is unlock my PC and let the script take care of the rest. I hope this information is helpful!
Reply all
Reply to author
Forward
0 new messages