profile-image

mederi

mederi mederi , Slovak Republic
Moments' Tracker VLC Extensions
Sep 21 2017
Time v2.1 VLC Extensions
Aug 23 2017
Time v2.1 VLC Extensions
Jul 06 2017
Time v2.1 VLC Extensions
Jul 06 2017
Time v2.1 VLC Extensions
Jul 06 2017
WIP collection VLC Extensions
Apr 14 2017
WIP collection VLC Extensions
Apr 13 2017
Time2Clipboard VLC Extensions
Mar 14 2017
Time2Clipboard VLC Extensions
Mar 09 2017
VLSub VLC Extensions
Dec 06 2016
Time v2.1 VLC Extensions
Jun 03 2016
Time v2.1 VLC Extensions
Mar 27 2016
Jump to time (Previous frame) v2.1 VLC Extensions
Sep 23 2015
Jump to time (Previous frame) v2.1 VLC Extensions
Thank you for the screenshots. Now I see the difference. VLC for OS X is all different from Windows/Linux. Please can you make 2 more screenshots of 2 different variations for me?
Quote:-- text_input: col_span=1; button: col=3;
textinput_time = d:add_text_input(Time2string(0), 2,1,1,1) -- "00:00:00,000"
d:add_button(">> &Set time", click_Set_time, 3,1,1,1)
textinput_jump = d:add_text_input(jumps[1][2], 2,3,1,1) -- default jump length (1-st in the list)
d:add_button(">> &Forward", function() click_Jump(1) end, 3,3,1,1)

-- text_input: col_span=2; button: col=4;
textinput_time = d:add_text_input(Time2string(0), 2,1,2,1) -- "00:00:00,000"
d:add_button(">> &Set time", click_Set_time, 4,1,1,1)
textinput_jump = d:add_text_input(jumps[1][2], 2,3,2,1) -- default jump length (1-st in the list)
d:add_button(">> &Forward", function() click_Jump(1) end, 4,3,1,1)Here is how it looks in my computer: https://cdn.pbrd.co/images/NYpDsUO.png

I would like to make a different layout for OS X and to keep the compact one for Windows and Linux. I would like to ask you whether you could help me to find out the best way how to distinguish OS X from Linux in VLC Lua. It can be useful for other cases/extensions, too. Perhaps there is an environment variable that is available in all OS X systems and not available in Linux, or they have a different value. According to this link: http://www.cyberciti.biz/faq/set-environment-variable-unix/unix-env-printenv-set-command-to-display-environment-variables/ the OSTYPE could be the one I am looking for. Please check its value in OS X:Quote:-- some environment variables like "OS" and "windir" on Windows (OS=Windows_NT; windir=C:\WINDOWS). "OSTYPE" on OS X and Linux?
-- word "Application" in userdatadir on OS X, not on Linux?
d:add_html(tostring(os.getenv("OSTYPE")) .."<br />".. vlc.config.userdatadir(), 1,5,3,1)
Do the ampersands "&" in the buttons work as hotkeys (Alt+G, Alt+S, ...)? Probably not as they are not invisible there. I can remove them from OS X layout.
Which of the buttons is the "submit" button? While I am editing a string in a text_input field or selecting an item in the drop-down list on Windows, then the first button in the code "Time format" is automatically focused and ready for action by pressing the Enter key on keyboard.
Sep 21 2015
Jump to time (Previous frame) v2.1 VLC Extensions
Sep 17 2015