Open mythbuster74 opened 10 months ago
I'll need a log to debug this. Run with flex-launcher.exe -d
, either in a terminal or via shortcut. That will create flex-launcher.log
in the same folder as flex-launcher.exe
.
Please also upload your config.ini
.
In the log where you see Key Right (#4000004F) detected
then Key Left (#40000050) detected
I have also tried to send a Enter
in various forms. Using https://w3c.github.io/uievents/tools/key-event-viewer.html I can see the key press is being detected.
log
Flex Launcher version 2.1, using:
SDL 2.24.2
SDL_image 2.6.2
SDL_ttf 2.20.0
Build date: Jan 7 2023
Compiler: Microsoft C/C++ 19.34
Config file found: .\config.ini
================== Video Information ===================
Resolution: 2560x1440
Refresh rate: 32 Hz
Video driver: windows
Supported Texture formats:
SDL_PIXELFORMAT_ARGB8888
SDL_PIXELFORMAT_YV12
SDL_PIXELFORMAT_IYUV
======================= General ========================
DefaultMenu: Main
VSync: true
FPSLimit: -1
OnLaunch: Blank
ResetOnBack: false
MouseSelect: true
InhibitOSScreensaver: true
StartupCmd: :fork "C:\Users\redacted\AppData\Roaming\LAB02 Research\HASS.Agent\HASS.Agent.exe"
QuitCmd: :fork explorer.exe
===================== Background =======================
Mode: Image
Color: #000000FF
Image: C:\Users\redacted\Downloads\wallhaven-l8rjvr.jpg
SlideshowDirectory: (null)
SlideshowImageDuration: 30
SlideshowTransitionTime: 1.50
Overlay: false
OverlayColor: #0000007F
======================= Layout =========================
MaxButtons: 5
IconSize: 256
IconSpacing: 128
VCenter: 50%
======================== Titles ========================
Enabled: true
Font: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\fonts\OpenSans-Regular.ttf
FontSize: 36
Color: #FFFFFFFF
Shadows: false
ShadowColor: #000000FF
OversizeMode: Shrink
Padding: 20
====================== Highlight =======================
FillColor: #FFFFFF3F
OutlineSize: 0
OutlineColor: #0000FFFF
CornerRadius: 0
VPadding: 30
HPadding: 30
================== Scroll Indicators ===================
Enabled: true
FillColor: #FFFFFFFF
OutlineSize: 0
OutlineColor: #000000FF
======================== Clock =========================
Enabled: false
ShowDate: false
Alignment: Left
Font: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\fonts\SourceSansPro-Regular.ttf
FontSize: 50
Margin: 72
FontColor: #FFFFFFFF
Shadows: false
ShadowColor: #000000FF
TimeFormat: Auto
DateFormat: Auto
IncludeWeekday: true
===================== Screensaver ======================
Enabled: false
IdleTime: 300
Intensity: 70%
PauseSlideshow: true
======================= Gamepad ========================
Enabled: true
DeviceIndex: -1
ControllerMappingsFile: (null)
LStickX- :left
LStickX+ :right
ButtonA :select
ButtonB :back
ButtonDPadLeft :left
ButtonDPadRight :right
======================== Hotkeys =========================
Hotkey 0 Keycode: 1B
Hotkey 0 Command: :quit
Hotkey 1 Keycode: D
Hotkey 1 Command: :select
Hotkey 2 Keycode: 73
Hotkey 2 Command: :select
======================= Menu Entries =======================
Menu Name: Main
Number of Entries: 5
Entry 0 Title: Kodi
Entry 0 Icon Path: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\kodi.png
Entry 0 Command: "C:\Program Files\Kodi\kodi.exe"
Entry 1 Title: YouTube
Entry 1 Icon Path: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\youtube.png
Entry 1 Command: "C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --start-fullscreen --user-agent="Mozilla/5.0 (Linux; Tizen 2.3; SmartHub; SMART-TV; SmartTV; U; Maple2012) AppleWebKit/538.1+ (KHTML, like Gecko) TV Safari/538.1+" youtube.com/tv
Entry 2 Title: Moonlight
Entry 2 Icon Path: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\moonlight.png
Entry 2 Command: "C:\Program Files\Moonlight Game Streaming\Moonlight.exe"
Entry 3 Title: Steam
Entry 3 Icon Path: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\steam.png
Entry 3 Command: "C:\Program Files (x86)\Steam\steam.exe" steam://open/bigpicture
Entry 4 Title: System
Entry 4 Icon Path: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\system.png
Entry 4 Command: :submenu System
----------------------------------------------------------
Menu Name: System
Number of Entries: 3
Entry 0 Title: Shutdown
Entry 0 Icon Path: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\system.png
Entry 0 Command: :shutdown
Entry 1 Title: Restart
Entry 1 Icon Path: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\restart.png
Entry 1 Command: :restart
Entry 2 Title: Sleep
Entry 2 Icon Path: C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\sleep.png
Entry 2 Command: :sleep
Loading menu 'Main'
Begin program loop
Gained keyboard focus
Key Right (#4000004F) detected
Key Left (#40000050) detected
Key Right (#4000004F) detected
Key Left Alt (#400000E2) detected
Lost keyboard focus
Lost mouse focus
Lost mouse focus
Gained keyboard focus
Key Left Alt (#400000E2) detected
Lost keyboard focus
Lost mouse focus
Gained keyboard focus
Key Left Alt (#400000E2) detected
Lost keyboard focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Gained keyboard focus
Key Right (#4000004F) detected
Key Left (#40000050) detected
Key Up (#40000052) detected
Key Down (#40000051) detected
Key Space (#20) detected
Key Space (#20) detected
Key Space (#20) detected
Key Space (#20) detected
Key Left Alt (#400000E2) detected
Lost keyboard focus
Lost mouse focus
Gained keyboard focus
Key Left Alt (#400000E2) detected
Lost keyboard focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Gained keyboard focus
Key Right (#4000004F) detected
Key Left (#40000050) detected
Key Right (#4000004F) detected
Key Left (#40000050) detected
Key Left Alt (#400000E2) detected
Lost keyboard focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Gained keyboard focus
Key Left (#40000050) detected
Key Right (#4000004F) detected
Key Left (#40000050) detected
Key Right (#4000004F) detected
Key Left Alt (#400000E2) detected
Lost keyboard focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Lost mouse focus
Gained keyboard focus
Key Right (#4000004F) detected
Key Left (#40000050) detected
Key Left Alt (#400000E2) detected
Lost keyboard focus
Lost mouse focus
Gained keyboard focus
Key Left Alt (#400000E2) detected
Lost keyboard focus
Lost mouse focus
Lost mouse focus
ini
# Flex Launcher v2.1 sample configuration file
# For documentation of these settings, visit: https://complexlogic.github.io/flex-launcher/configuration
[General]
DefaultMenu=Main
VSync=true
#FPSLimit=
OnLaunch=Blank
ResetOnBack=false
MouseSelect=true
InhibitOSScreensaver=true
StartupCmd=:fork "C:\Users\redacted\AppData\Roaming\LAB02 Research\HASS.Agent\HASS.Agent.exe"
QuitCmd=:fork explorer.exe
[Background]
Mode=Image
Color=#000000
Image=C:\Users\redacted\Downloads\wallhaven-l8rjvr.jpg
#SlideshowDirectory=
#SlideshowImageDuration=30
#SlideshowTransitionTime=3
#ChromaKeyColor=#010101
Overlay=false
OverlayColor=#000000
OverlayOpacity=50%
[Layout]
MaxButtons=5
IconSize=256
IconSpacing=5%
VCenter=50%
[Titles]
Enabled=true
Font=C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\fonts\OpenSans-Regular.ttf
FontSize=36
Color=#FFFFFF
Opacity=100%
Shadows=false
ShadowColor=#000000
OversizeMode=Shrink
Padding=20
[Highlight]
Enabled=true
FillColor=#FFFFFF
FillOpacity=25%
OutlineSize=0
OutlineColor=#0000FF
OutlineOpacity=100%
CornerRadius=0
VPadding=30
HPadding=30
[Scroll Indicators]
Enabled=true
FillColor=#FFFFFF
OutlineSize=0
OutlineColor=#000000
Opacity=100%
[Clock]
Enabled=false
ShowDate=false
Alignment=Left
Font=C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\fonts\SourceSansPro-Regular.ttf
FontSize=50
FontColor=#FFFFFF
Shadows=false
ShadowColor=#000000
Margin=5%
Opacity=100%
TimeFormat=Auto
DateFormat=Auto
IncludeWeekday=true
[Screensaver]
Enabled=false
IdleTime=300
Intensity=70%
PauseSlideshow=true
[Hotkeys]
# Esc to quit
Hotkey1=#1B;:quit
# enter and return, hopefully fixes hass agent
Hotkey2=#0D;:select
Hotkey3=#73;:select
[Gamepad]
Enabled=true
DeviceIndex=-1
#ControllerMappingsFile=
LStickX-=:left
LStickX+=:right
#LStickY-=
#LStickY+=
#RStickX-=
#RStickX+=
#RStickY-=
#RStickY+=
#LTrigger=
#RTrigger=
ButtonA=:select
ButtonB=:back
#ButtonX=
#ButtonY=
#ButtonBack=:exit
#ButtonGuide=
#ButtonStart=
#ButtonLeftStick=
#ButtonRightStick=
#ButtonLeftShoulder=
#ButtonRightShoulder=
#ButtonDPadUp=
#ButtonDPadDown=
ButtonDPadLeft=:left
ButtonDPadRight=:right
# Menu configurations
[Main]
Entry1=Kodi;C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\kodi.png;"C:\Program Files\Kodi\kodi.exe"
Entry=YouTube;C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\youtube.png;"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --start-fullscreen --user-agent="Mozilla/5.0 (Linux; Tizen 2.3; SmartHub; SMART-TV; SmartTV; U; Maple2012) AppleWebKit/538.1+ (KHTML, like Gecko) TV Safari/538.1+" youtube.com/tv
Entry2=Moonlight;C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\moonlight.png;"C:\Program Files\Moonlight Game Streaming\Moonlight.exe"
Entry3=Steam;C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\steam.png;"C:\Program Files (x86)\Steam\steam.exe" steam://open/bigpicture
Entry4=System;C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\system.png;:submenu System
[System]
Entry1=Shutdown;C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\system.png;:shutdown
Entry2=Restart;C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\restart.png;:restart
Entry3=Sleep;C:\Users\redacted\Documents\flex-launcher-2.1-win64\flex-launcher-2.1-win64\assets\icons\sleep.png;:sleep
It looks like the space bar is being detected. Perhaps that is what is being sent? If you change your config Hotkeys
section to below, does it work?
[Hotkeys]
# Esc to quit
Hotkey1=#1B;:quit
# enter and return, hopefully fixes hass agent
Hotkey2=#0D;:select
Hotkey3=#73;:select
Hotkey4=#20;:select
I'm trying to control a HTPC using HASS.Agent, but I'm unable to get
Enter
or :select
to work correctly and start the highlighted app. Up/Down/Left/Right/Back work correctly though.I've tried sending
Enter
and mapping a normal keys
to:select
using hotkeys, but have been unsuccessful.As a side note sending
Enter
does work in Kodi.OS: Windows 10 64-Bit