wanhuz / dropout

Jack-of-all trade script to stream game using Steam Big Picture while using PC at the same time.
GNU General Public License v3.0
0 stars 0 forks source link

Make the script generalize to user #34

Open wanhuz opened 2 years ago

wanhuz commented 2 years ago

As in #13, make Dropout is usable to all user instead of only, well, myself.

wanhuz commented 2 years ago

I'd try to make this simpler. Add config file to the apps directory and let user changes what they want the program to do. The explanation to this config file should be written in docs.

Example config:

setdefaultdisplay = 3 enablesteamoverlayhotkey = true enablesteamcontrollerresethotkey = true enableexitgamehotkey = true enabledefaulttaskbar = true enabledefaultdesktopicon = true monitoronlyhavesteamandgame = true enableaudioseperation = true savedesktopiconeverysecs = 10 reopenfolderwhentaskbarchange = false defaultaudio = "Realtek High Definition Audio\Device\Speakers\Render" targetaudio = "VB-Audio Virtual Cable\Device\CABLE Input\Render"

wanhuz commented 2 years ago

For most part, I'm able to make the configuration option works, except for two:

  1. Taskbar - Make an context menu to save taskbar registry key. However, user need to set their desired taskbar on their desired display one time.
  2. Default Monitor - Current script only uses 2 coordinate to detect whether an apps is running on the monitor if the monitor are arranged from left to right. This will not work if monitor are from right to left or up or down. Etc. This needs major rewrite and testing.

EDIT: For 2, thankfully, critical function "NumAppAt" is only used at Dropout.ahk. So, the function only need to change a bit to support 4 coordinate detection.