zdimension / usbrawmap

USB scancode mapper / driver for old nonstandard keyboards
MIT License
26 stars 7 forks source link

Run the application on background #3

Open NSlas opened 1 year ago

NSlas commented 1 year ago

Hi, I love your job and aplication so much and it's working perfectly fine. I just want to ask, is it possible to run the cmd or the application on background? because i always accidentally exit the application and i have to open it up again. If it possible please le me know. Thanks you guys did amazing work. ( I wore this with Sun Type 7 keyboard, love it so much)

zdimension commented 1 year ago

Hi! Glad the app is working fine for you! Have you followed the steps 7 and 8 on the README to setup the autostart? If I remember correctly it's supposed to run in background (not visible). (I may be mistaken)

nicholsbp commented 10 months ago

On windows 10 21H2 I was unable to get the application to run hidden using the instructions in the readme. If I set the scheduled task to "Run only when user is logged on" the program would run but the window was visible. If I set the task to "Run whether user is logged on or not" the task would fail with error code 0x1.

The way I was able to get it to run hidden was setting the scheduled task to "Run only when the user is logged on". "program/script" on the action window to "powershell.exe" and then placed the following in the arguments field

-noexit -WindowStyle hidden -command ".\usbrawmap.exe"

The "start in" field was set to the directory containing usbrawmap.exe and "Run with highest privileges" was checked.

zdimension commented 10 months ago

On windows 10 21H2 I was unable to get the application to run hidden using the instructions in the readme. If I set the scheduled task to "Run only when user is logged on" the program would run but the window was visible. If I set the task to "Run whether user is logged on or not" the task would fail with error code 0x1.

The way I was able to get it to run hidden was setting the scheduled task to "Run only when the user is logged on". "program/script" on the action window to "powershell.exe" and then placed the following in the arguments field

-noexit -WindowStyle hidden -command ".\usbrawmap.exe"

The "start in" field was set to the directory containing usbrawmap.exe and "Run with highest privileges" was checked.

Thanks, I updated the instructions in the README file.