AntiMicroX / antimicrox

Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support.
GNU General Public License v3.0
2.25k stars 138 forks source link

"Launch At Windows Startup" Not Working #870

Open rileychan6 opened 7 months ago

rileychan6 commented 7 months ago

Is there an existing issue for this?

Current Behavior

The settings option "Launch At Windows Startup" in the General section, does not have any effect, and the check box to toggle the setting is unchecked when the program is minimized or closed. I have also tested this with settings such as "Close To Tray" and "Minimize To Taskbar" to see if that made any difference, and it did not.

Expected Behavior

The setting should remain selected when toggled even when closing or minimizing, and it should actually launch when logging in to Windows.

Steps To Reproduce

  1. Open AntiMicroX
  2. Select the "Options" drop down menu
  3. Click "Settings"
  4. Toggle "Launch At Windows Startup" to be active
  5. Click "OK"
  6. Minimize/close the program
  7. Repeat steps 1-3 to see it is unchecked

Environment

No response

Anything else?

I also checked in the settings file in AppData, and there doesn't seem to be any variables in the file that I can see that relate to it launching at startup.


Upvote & Fund

Fund with Polar

Gjreeew commented 6 months ago

Please help me solve this problem, the program does not start with Windows 10, the checkbox keeps disappearing «Запускать при старте Windows»

Gjreeew commented 6 months ago

With the help of the task scheduler, you can configure everything and it will start, everything worked for me

HaseoWeasel commented 5 months ago

I fixed mine with a .bat file, task scheduler didn't work for me. here is the bat file code I used, just make a text file in the install location of AntiMicroX, bin folder (default is C:\Program Files\AntiMicroX\bin) , and place the following code in it, then rename the .txt to antimicrox.bat and add that to the Startup in windows settings, or place a shortcut in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp. However this will start the program with admin right, just so your aware.

@echo off
if "%1"=="runas" (
  cd %~dp0
  echo Hello from admin mode
  pause
) else (
  powershell Start -File "cmd '/C %~f0 runas'" -Verb RunAs
)

start antimicrox.exe