Question / Help Solved/ Hotkey Help

RawrStreams

New Member
Hotkeys wont work when OBS is not the active window.

if i'm playing a game I can't use the hotkeys for OBS unless i switch back to it.

I switched scenes twice with the window active, twice with the window inactive(doesn't work so its not in the log), and twice again with it active.

Here is the log.

Code:
17:55:12.823: CPU Name: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
17:55:12.823: CPU Speed: 3411MHz
17:55:12.823: Physical Cores: 4, Logical Cores: 8
17:55:12.823: Physical Memory: 16360MB Total, 9067MB Free
17:55:12.823: Windows Version: 10.0 Build 16299 (revision: 192; 64-bit)
17:55:12.824: Running as administrator: false
17:55:12.824: Aero is Enabled (Aero is always on for windows 8 and above)
17:55:12.824: Windows 10 Gaming Features:
17:55:12.824:     Game DVR: On
17:55:12.826: Sec. Software Status:
17:55:12.827:     IObit Malware Fighter: disabled (AV)
17:55:12.827:     Windows Defender Antivirus: enabled (AV)
17:55:12.828:     Windows Firewall: enabled (FW)
17:55:12.828:     Windows Defender Antivirus: enabled (ASW)
17:55:12.828: Portable mode: false
17:55:12.854: OBS 21.0.1 (64bit, windows)
17:55:12.854: ---------------------------------
17:55:12.855: ---------------------------------
17:55:12.855: audio settings reset:
17:55:12.855:     samples per sec: 44100
17:55:12.855:     speakers:        2
17:55:12.856: ---------------------------------
17:55:12.856: Initializing D3D11...
17:55:12.856: Available Video Adapters:
17:55:12.858:     Adapter 1: NVIDIA GeForce GTX 970
17:55:12.858:       Dedicated VRAM: 4255580160
17:55:12.858:       Shared VRAM:    4282679296
17:55:12.858:       output 1: pos={0, 0}, size={2560, 1440}, attached=true
17:55:12.858:       output 2: pos={2560, 0}, size={2560, 1440}, attached=true
17:55:12.862: Loading up D3D11 on adapter NVIDIA GeForce GTX 970 (0)
17:55:12.895: D3D11 loaded successfully, feature level used: 45056
17:55:13.644: ---------------------------------
17:55:13.644: video settings reset:
17:55:13.644:     base resolution:   2560x1440
17:55:13.644:     output resolution: 1280x720
17:55:13.644:     downscale filter:  Bicubic
17:55:13.644:     fps:               30/1
17:55:13.644:     format:            NV12
17:55:13.647: Audio monitoring device:
17:55:13.647:     name: Default
17:55:13.647:     id: default
17:55:13.647: ---------------------------------
17:55:13.649: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
17:55:13.650: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
17:55:13.844: [AMF] <obs_module_load> AMF not supported (no AMD graphics)
17:55:13.844: Failed to initialize module 'enc-amf.dll'
17:55:13.857: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
17:55:13.857: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
17:55:13.858: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
17:55:13.859: Failed to load 'en-US' text for module: 'obs-browser.dll'
17:55:13.859: [browser_source: 'Version: 1.29.0']
17:55:13.862: NVENC supported
17:55:13.925: Couldn't find VLC installation, VLC video source disabled
17:55:13.929: No blackmagic support
17:55:13.995: ---------------------------------
17:55:13.995:   Loaded Modules:
17:55:13.995:     win-wasapi.dll
17:55:13.995:     win-mf.dll
17:55:13.995:     win-dshow.dll
17:55:13.995:     win-decklink.dll
17:55:13.995:     win-capture.dll
17:55:13.995:     vlc-video.dll
17:55:13.995:     text-freetype2.dll
17:55:13.995:     rtmp-services.dll
17:55:13.995:     obs-x264.dll
17:55:13.995:     obs-vst.dll
17:55:13.995:     obs-transitions.dll
17:55:13.995:     obs-text.dll
17:55:13.995:     obs-qsv11.dll
17:55:13.995:     obs-outputs.dll
17:55:13.995:     obs-filters.dll
17:55:13.995:     obs-ffmpeg.dll
17:55:13.995:     obs-browser.dll
17:55:13.995:     image-source.dll
17:55:13.995:     frontend-tools.dll
17:55:13.995:     enc-amf.dll
17:55:13.995:     coreaudio-encoder.dll
17:55:13.995: ---------------------------------
17:55:13.995: ==== Startup complete ===============================================
17:55:13.995: Service '' not found
17:55:13.999: All scene data cleared
17:55:13.999: ------------------------------------------------
17:55:14.038: WASAPI: Device 'Headphones (High Definition Audio Device)' initialized
17:55:14.051: WASAPI: Device 'Microphone (Yeti Stereo Microphone)' initialized
17:55:14.079: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
17:55:14.350: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
17:55:15.649: Switched to scene 'Bye'
17:55:15.650: ------------------------------------------------
17:55:15.650: Loaded scenes:
17:55:15.650: - scene 'Starting':
17:55:15.650:     - source: 'Image' (image_source)
17:55:15.650:     - source: 'Music' (browser_source)
17:55:15.650:         - filter: 'Color Key' (color_key_filter)
17:55:15.650: - scene 'Play':
17:55:15.650:     - source: 'minecraft' (game_capture)
17:55:15.650:     - source: 'Game' (game_capture)
17:55:15.650:     - source: 'Cam' (dshow_input)
17:55:15.650:     - source: 'Hide Cam' (image_source)
17:55:15.650:     - source: 'overlay' (image_source)
17:55:15.650:     - source: 'Details' (browser_source)
17:55:15.650:     - source: 'Discord' (game_capture)
17:55:15.650:         - filter: 'Color Key' (color_key_filter)
17:55:15.650:     - source: 'Music' (browser_source)
17:55:15.650:         - filter: 'Color Key' (color_key_filter)
17:55:15.650:     - source: 'PNG' (image_source)
17:55:15.650: - scene 'BRB':
17:55:15.650:     - source: 'Image 2' (image_source)
17:55:15.650:     - source: 'Music' (browser_source)
17:55:15.650:         - filter: 'Color Key' (color_key_filter)
17:55:15.650: - scene 'Bye':
17:55:15.650:     - source: 'Image 3' (image_source)
17:55:15.650:     - source: 'Music' (browser_source)
17:55:15.650:         - filter: 'Color Key' (color_key_filter)
17:55:15.650: ------------------------------------------------
17:55:15.710: ---------------------------------
17:55:15.710: [DShow Device: 'Cam'] settings updated:
17:55:15.710:     video device: C922 Pro Stream Webcam
17:55:15.710:     video path: \\?\usb#vid_046d&pid_085c&mi_00#7&1f0228a4&1&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
17:55:15.710:     resolution: 640x480
17:55:15.710:     fps: 30.00 (interval: 333333)
17:55:15.710:     format: YUY2
17:55:28.263: User switched to scene 'BRB'
17:55:29.705: User switched to scene 'Bye'
17:55:38.201: User switched to scene 'BRB'
17:55:38.944: User switched to scene 'Bye'
17:55:41.916: ==== Shutting down ==================================================
17:55:41.927: Switched to scene '(null)'
17:55:42.243: WASAPI: Device 'Headphones (High Definition Audio Device)' Terminated
17:55:42.247: WASAPI: Device 'Microphone (Yeti Stereo Microphone)' Terminated
17:55:42.250: All scene data cleared
17:55:42.250: ------------------------------------------------
17:55:42.329: Freeing OBS context data
17:55:42.485: [Scripting] Total detached callbacks: 0
17:55:42.494: == Profiler Results =============================
17:55:42.494: run_program_init: 2964.63 ms
17:55:42.494:  ┣OBSApp::AppInit: 15.383 ms
17:55:42.494:  ┃ ┗OBSApp::InitLocale: 1.374 ms
17:55:42.494:  ┗OBSApp::OBSInit: 2941.14 ms
17:55:42.494:    ┣obs_startup: 6.304 ms
17:55:42.494:    ┗OBSBasic::OBSInit: 2885.14 ms
17:55:42.494:      ┣OBSBasic::InitBasicConfig: 0.577 ms
17:55:42.494:      ┣OBSBasic::ResetAudio: 0.144 ms
17:55:42.494:      ┣OBSBasic::ResetVideo: 791.386 ms
17:55:42.494:      ┣OBSBasic::InitOBSCallbacks: 0.005 ms
17:55:42.494:      ┣OBSBasic::InitHotkeys: 0.044 ms
17:55:42.494:      ┣obs_load_all_modules: 347.874 ms
17:55:42.494:      ┃ ┣obs_init_module(coreaudio-encoder.dll): 1.228 ms
17:55:42.494:      ┃ ┣obs_init_module(enc-amf.dll): 192.078 ms
17:55:42.494:      ┃ ┣obs_init_module(frontend-tools.dll): 4.625 ms
17:55:42.494:      ┃ ┣obs_init_module(image-source.dll): 0.003 ms
17:55:42.494:      ┃ ┣obs_init_module(obs-browser.dll): 0.093 ms
17:55:42.494:      ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.885 ms
17:55:42.494:      ┃ ┃ ┗nvenc_check: 0.819 ms
17:55:42.494:      ┃ ┣obs_init_module(obs-filters.dll): 0.017 ms
17:55:42.494:      ┃ ┣obs_init_module(obs-outputs.dll): 0.009 ms
17:55:42.494:      ┃ ┣obs_init_module(obs-qsv11.dll): 52.879 ms
17:55:42.494:      ┃ ┣obs_init_module(obs-text.dll): 1.283 ms
17:55:42.494:      ┃ ┣obs_init_module(obs-transitions.dll): 0.004 ms
17:55:42.494:      ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
17:55:42.494:      ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
17:55:42.494:      ┃ ┣obs_init_module(rtmp-services.dll): 0.427 ms
17:55:42.494:      ┃ ┣obs_init_module(text-freetype2.dll): 0.077 ms
17:55:42.494:      ┃ ┣obs_init_module(vlc-video.dll): 0.047 ms
17:55:42.494:      ┃ ┣obs_init_module(win-capture.dll): 0.077 ms
17:55:42.494:      ┃ ┣obs_init_module(win-decklink.dll): 2.973 ms
17:55:42.494:      ┃ ┣obs_init_module(win-dshow.dll): 1.713 ms
17:55:42.494:      ┃ ┣obs_init_module(win-mf.dll): 59.708 ms
17:55:42.494:      ┃ ┣obs_init_module(win-wasapi.dll): 0.005 ms
17:55:42.494:      ┃ ┗reset_win32_symbol_paths: 0.117 ms
17:55:42.494:      ┣OBSBasic::ResetOutputs: 0.238 ms
17:55:42.494:      ┣OBSBasic::CreateHotkeys: 0.026 ms
17:55:42.494:      ┣OBSBasic::InitService: 1.325 ms
17:55:42.494:      ┣OBSBasic::InitPrimitives: 0.281 ms
17:55:42.494:      ┗OBSBasic::Load: 1654.11 ms
17:55:42.494: obs_hotkey_thread(25 ms): min=0.004 ms, median=0.018 ms, max=0.401 ms, 99th percentile=0.137 ms, 100% below 25 ms
17:55:42.494: audio_thread(Audio): min=0 ms, median=0.077 ms, max=0.364 ms, 99th percentile=0.147 ms
17:55:42.494: obs_graphics_thread(33.3333 ms): min=0.24 ms, median=0.65 ms, max=1561.98 ms, 99th percentile=3.083 ms, 99.8773% below 33.333 ms
17:55:42.494:  ┣tick_sources: min=0.001 ms, median=0.015 ms, max=1561.41 ms, 99th percentile=0.569 ms
17:55:42.494:  ┣output_frame: min=0.235 ms, median=0.475 ms, max=22.69 ms, 99th percentile=2.266 ms
17:55:42.494:  ┃ ┣gs_context(video->graphics): min=0.157 ms, median=0.261 ms, max=22.456 ms, 99th percentile=2.058 ms
17:55:42.494:  ┃ ┃ ┣render_video: min=0.023 ms, median=0.092 ms, max=0.742 ms, 99th percentile=0.189 ms
17:55:42.494:  ┃ ┃ ┃ ┣render_main_texture: min=0.006 ms, median=0.066 ms, max=0.709 ms, 99th percentile=0.14 ms
17:55:42.494:  ┃ ┃ ┃ ┣render_output_texture: min=0.004 ms, median=0.008 ms, max=0.176 ms, 99th percentile=0.04 ms
17:55:42.494:  ┃ ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.009 ms, max=0.042 ms, 99th percentile=0.026 ms
17:55:42.494:  ┃ ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.002 ms, max=0.068 ms, 99th percentile=0.047 ms
17:55:42.494:  ┃ ┃ ┣download_frame: min=0 ms, median=0.002 ms, max=0.755 ms, 99th percentile=0.232 ms
17:55:42.494:  ┃ ┃ ┗gs_flush: min=0.044 ms, median=0.155 ms, max=1.192 ms, 99th percentile=0.263 ms
17:55:42.495:  ┃ ┗output_video_data: min=0.168 ms, median=0.21 ms, max=0.692 ms, 99th percentile=0.428 ms
17:55:42.495:  ┗render_displays: min=0 ms, median=0.14 ms, max=2.532 ms, 99th percentile=2.013 ms
17:55:42.495: video_thread(video): min=0.001 ms, median=0.001 ms, max=0.009 ms, 99th percentile=0.002 ms
17:55:42.495: =================================================
17:55:42.495: == Profiler Time Between Calls ==================
17:55:42.495: obs_hotkey_thread(25 ms): min=24.8 ms, median=25.056 ms, max=26.328 ms, 76.7781% within ±2% of 25 ms (0% lower, 23.2219% higher)
17:55:42.495: obs_graphics_thread(33.3333 ms): min=9.126 ms, median=33.333 ms, max=1561.99 ms, 99.3857% within ±2% of 33.333 ms (0.36855% lower, 0.2457% higher)
17:55:42.495: =================================================
17:55:42.513: Number of memory leaks: 9

Edit: Found out it was my macros that wouldn't work with obs when it was minimized but the regular keys worked.

Edit: Delaying the ms between keystrokes on my macros to 30 fixed my issue!
 
Last edited:
Back
Top