• nathan323

    No other examples that I know of. The buttons should stretch to any resolution though, and you can just copy/paste blocks of layout.

    posted in Q&A read more
  • nathan323

    Toggle:

    layout.xml:

    <toggle text="my toggle" onchange="toggle_action" />
    

    remote.lua:

    actions.toggle_action = function()
        kb.stroke("alt", "tab");
    end
    

    As far as updating the button, I think it's possible from a quick look at documentation, haven't got time now to check it out, have a look see what you think.

    posted in Q&A read more
  • nathan323

    Yeah it would definitely be great to have more control over the layout in a remote, I guess it adheres to basic XML standards.

    You can play around with the row weight, as seen in this remote, to spread the remote out differently. This can allow for dead space too (http://community.unifiedremote.com/topic/715/emulators-emulators-emulators/3).

    posted in Layout read more
  • nathan323

    Remote for JW Player, used for a lot of HTML5 video sites (eg. 123movies.to).

    screenshot_2017_08_15_14_13_28.png

    remote.lua

    local ms = libs.mouse;
    local kb = libs.keyboard;
    
    [email protected] Seek back 5 seconds
    actions.left = function()
        kb.stroke("left");
    end
    
    [email protected] Seek forward 5 seconds
    actions.right = function()
        kb.stroke("right");
    end
    
    [email protected] Lower system volume
    actions.volume_down = function()
        kb.stroke("down");
    end
    
    [email protected] Mute system volume
    actions.volume_mute = function()
        kb.stroke("m");
    end
    
    [email protected] Raise system volume
    actions.volume_up = function()
        kb.stroke("up");
    end
    
    [email protected] Toggle playback state
    actions.play_pause = function()
        kb.stroke("space");
    end
    
    [email protected] Toggle fullscreen
    actions.fullscreen = function()
        kb.stroke("f");
    end
    
    [email protected] Escape
    actions.escape = function()
        kb.stroke("esc");
    end
    
    [email protected] Captions
    actions.captions = function()
        kb.stroke("c");
    end
    
    [email protected] Focus
    actions.focus = function()
        ms.moveto(904, 337);
        ms.click();
        os.sleep (350);
        ms.click("right");
    end
    
    [email protected] Focus (taskbar)
    actions.focus_task = function()
        ms.moveto(1133, 1061);
        os.sleep (50);
        ms.click();
        os.sleep (50);
        ms.moveto(1073, 1019);
        os.sleep (50);
        ms.click();
        os.sleep (350);
        ms.click("right");
    end
    
    [email protected] move mouse
    actions.movemouse = function()
            x,y = ms.position();
            if (y == 331) then ms.moveto(1900, 330);
            else ms.moveto(1900, 331);
            end
    end
    
    --SEEK-------------------------------------------------------------------------------------------------
    
    [email protected] Seek - position 0
    actions.seek0 = function()
        kb.stroke("0");
    end
    
    [email protected] Seek - position 1
    actions.seek1 = function()
        kb.stroke("1");
    end
    
    [email protected] Seek - position 2
    actions.seek2 = function()
        kb.stroke("2");
    end
    
    [email protected] Seek - position 3
    actions.seek3 = function()
        kb.stroke("3");
    end
    
    [email protected] Seek - position 4
    actions.seek4 = function()
        kb.stroke("4");
    end
    
    [email protected] Seek - position 5
    actions.seek5 = function()
        kb.stroke("5");
    end
    
    [email protected] Seek - position 6
    actions.seek6 = function()
        kb.stroke("6");
    end
    
    [email protected] Seek - position 7
    actions.seek7 = function()
        kb.stroke("7");
    end
    
    [email protected] Seek - position 8
    actions.seek8 = function()
        kb.stroke("8");
    end
    
    [email protected] Seek - position 9
    actions.seek9 = function()
        kb.stroke("9");
    end
    

    layout.xml

    <?xml version="1.0" encoding="utf-8"?>
    <layout onVolumeUp="volume_up" onVolumeDown="volume_down" onpause="play_pause" >
        <row weight="3" color="#FF0092">
            <button icon="vmute" onTap="volume_mute" />
            <button icon="vdown" onTap="volume_down" />
            <button icon="vup" onTap="volume_up" />
        </row>
        <row weight="3" color="#FF3168">
            <button text="-5 secs" onTap="left" />
            <button text="+5 secs" onTap="right" />
            <button icon="search" onTap="movemouse" />
        </row>
        <row weight="3" color="#FF3168">
            <button icon="docclose" onTap="escape" />
            <button icon="fullscreen" onTap="fullscreen" />
            <button icon="playpause" onTap="play_pause" />
        </row>
        <row weight="1">
            <button text="captions" weight="1" onTap="captions" color="#FF0092" />
            <button text="focus" weight="1" onTap="focus" color="#FF0092" />
            <button text="taskbar" weight="1" onTap="focus_task" color="#FF0092" />
        </row>
        <row weight="1" color="#FF3168">
            <label text="SEEK" weight="1" />
        </row>
        <row weight="2">
            <button text="0" onTap="seek0" color="#FF0092" />
            <button text="1" onTap="seek1" color="#FF3168" />
            <button text="2" onTap="seek2" color="#FF0092" />
            <button text="3" onTap="seek3" color="#FF3168" />
            <button text="4" onTap="seek4" color="#FF0092" />
            <button text="5" onTap="seek5" color="#FF3168" />
            <button text="6" onTap="seek6" color="#FF0092" />
            <button text="7" onTap="seek7" color="#FF3168" />
            <button text="8" onTap="seek8" color="#FF0092" />
            <button text="9" onTap="seek9" color="#FF3168" />
        </row>
    </layout>
    

    Download: https://drive.google.com/open?id=0BxzKibd8YxtJOVpuYXBJTnhqTVU

    posted in Projects read more
  • nathan323

    It's supposed to be:

    <layout orientation="landscape">
    

    but it doesn't work for me.

    https://github.com/unifiedremote/Docs/blob/master/controls/layout.md#orientation

    posted in Q&A read more
  • nathan323

    I can only think to uninstall app, and server, reinstall and see if that helps.

    posted in Q&A read more
  • nathan323

    No worries. Looks like a cool prog. Post the finished remote in http://community.unifiedremote.com/category/5/projects!

    posted in Q&A read more
  • nathan323

    You can't use any other icons unfortunately, the devs would have to change access to icon packs. But you can use images instead:

    <button image="my_icon.png" scale="native" />

    https://github.com/unifiedremote/Docs/blob/master/controls/button.md#image

    What video-editing program is it btw?

    posted in Q&A read more
  • nathan323

    Ok yeah it's a bit tricky to find. Go to the hamburger menu on the left instead of the right, choose Preferences=>General=>Quick Switch, and then tick boxes of the remotes you want, they'll then show up in that right hand menu (called Quick Switch).

    posted in Q&A read more
  • nathan323

    Do you mean this menu?

    screenshot_2017_08_11_10_49_08.png

    posted in Q&A read more

Internal error.

Oops! Looks like something went wrong!