• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Problem with the character ":" (1 Viewer)

thiagoapr

Newcomer
Joined
Jan 28, 2022
Messages
1
Reaction score
0
I have a script to capture the window using a hotkey in OBS and it works.
The problem is when the window name has the character ":", in this case OBS does not show the screen.
I am sending the command to OBS as follows:


local window_title = get_active_window_title()
local window_class = get_active_window_class()

obs.obs_data_set_string(data, 'window', window_title .. ':' .. window_class .. ': ')


Does anyone know a way to make this work when it has the ":" character?
 
Top