Change
Save
Saving
Drag and Drop a photo, drag to position, and hit Save

Group Details Private

Moderators

Member List

  • nathan323

    Try using os.execute. Untested sorry right, let me know if dramas.

    Edit:

    This how I run batch files.

    os.open("C:\\Users\\xxx\\Documents\\test.bat")

    posted in Q&A read more
  • nathan323

    Great!
    I like left/right for jump back forward & up/down for volume, because if I happen to be walking past my keyboard, away from my Unified device, I can just reach down & tap them really easily without needing a modifier key in there as well.

    posted in Remotes read more
  • nathan323

    Are you on Windows? If so, take a look at C:\ProgramData\Unified Remote\Remotes\Bundled\Unified\Main\VLC\remote_win.lua in a text editor. Look for something similar to code below. Note, I think I changed mine at some stage, so your kb.stroke may have a different value:

    [email protected] Jump back 10 seconds
    actions.jump_back = function ()
        actions.switch();
        kb.stroke("left");
    end
    

    Can you confirm that its exactly as shown here?

    posted in Remotes read more
  • nathan323

    Replace the contents of remote.lua located C:\ProgramData\Unified Remote\Remotes\Bundled\Unified\Main\foobar2000 with following code. Restart foobar2000 remote. Works for me, let me know how ya go..

    local win = libs.win;
    local keyboard = libs.keyboard;
    local kb = libs.keyboard;
    local timer = libs.timer;
    local server = libs.server;
    local win = libs.win;
    local utf8 = libs.utf8;
    local tid = -1;
    
    
    -- Commands
    local WM_APPCOMMAND                     = 0x319;
    local PlayPauseTrack                    = 0xE0000;
    local MuteTrack                         = 0x80000;
    local StopTrack                         = 0xD0000;
    local PreviousTrack                     = 0xC0000;
    local NextTrack                         = 0xB0000;
    
    
    events.detect = function ()
        return
            libs.fs.exists("C:\\Program Files (x86)\\foobar2000") or
            libs.fs.exists("C:\\Program Files\\foobar2000");
    end
    
    events.focus = function()
        tid = timer.interval(actions.update, 1000);
    end
    
    events.blur = function()
        timer.cancel(tid);
    end
    
    [email protected] Update state
    actions.update = function()
        local hwnd = win.window("foobar2000.exe");
        local title = win.title(hwnd);
        if (title == "" or utf8.startswith(title, "foobar2000")) then
            title = "[Not Playing]";
        else
            local pos = utf8.indexof(title, "[foobar2000");
            if (pos > -1) then
                title = utf8.sub(title, 0, pos);
            end
        end
        server.update({ id = "info", text = title });
    end
    
    [email protected] Focus foobar2000 application
    actions.switch = function()
        if OS_WINDOWS then
            local hwnd = win.window("foobar2000.exe");
            if (hwnd == 0) then actions.launch(); end
            win.switchtowait("foobar2000.exe");
        end
    end
    
    [email protected] Launch program
    actions.launch = function()
        if OS_WINDOWS then
            os.start("foobar2000.exe");
        end
    end
    
    [email protected] Lower volume
    actions.volume_down = function()
        actions.switch();
        kb.stroke("ctrl", "down");
    end
    
    [email protected] Mute volume
    actions.volume_mute = function()
        actions.command(MuteTrack);
    end
    
    [email protected] Raise volume
    actions.volume_up = function()
        actions.switch();
        kb.stroke("ctrl", "up");
    end
    
    [email protected] Previous track
    actions.previous = function()
        actions.command(PreviousTrack);
    end
    
    [email protected] Next track
    actions.next = function()
        actions.command(NextTrack);
    end
    
    [email protected] Stop playback
    actions.stop = function()
        actions.command(StopTrack);
    end
    
    [email protected] Toggle playback state
    actions.play_pause = function()
        actions.command(PlayPauseTrack);
    end
    
    [email protected] Forward track five seconds
    actions.forward = function()
        if OS_WINDOWS then
            os.start("foobar2000.exe", '/command:"Ahead by 5 seconds"');
        end
    end
    
    [email protected] Rewind track five seconds
    actions.rewind = function()
        if OS_WINDOWS then
            os.start("foobar2000.exe", '/command:"Back by 5 seconds"');
        end
    end
    
    [email protected] Send raw command
    [email protected] cmd:number Raw command number
    actions.command = function(cmd)
        local hwnd = win.window("foobar2000.exe");
        win.send(hwnd, WM_APPCOMMAND, 0, cmd);
        actions.update();
    end
    
    [email protected] Set play order to Default
    actions.orderDefault = function()
        if OS_WINDOWS then
            os.start("foobar2000.exe", '/command:"Default"');
        end
    end
    
    [email protected] Set play order to Random
    actions.orderRandom = function()
        if OS_WINDOWS then
            os.start("foobar2000.exe", '/command:"Random"');
        end
    end
    
    [email protected] Set play order to Repeat (playlist)
    actions.orderRepeatPlaylist = function()
        if OS_WINDOWS then
            os.start("foobar2000.exe", '/command:"Repeat (playlist)"');
        end
    end
    
    [email protected] Set play order to Repeat (track)
    actions.orderRepeatTrack = function()
        if OS_WINDOWS then
    
    *       os.start("foobar2000.exe", '/command:"Repeat (track)"');
        end
    end
    
    [email protected] Set play order to Shuffle (albums)
    actions.orderShuffleAlbums = function()
        if OS_WINDOWS then
            os.start("foobar2000.exe", '/command:"Shuffle (albums)"');
        end
    end
    
    [email protected] Set play order to Shuffle (folders)
    actions.orderShuffleFolders = function()
        if OS_WINDOWS then
            os.start("foobar2000.exe", '/command:"Shuffle (folders)"');
        end
    end
    
    [email protected] Set play order to Shuffle (tracks)
    actions.orderShuffleTracks = function()
        if OS_WINDOWS then
            os.start("foobar2000.exe", '/command:"Shuffle (tracks)"');
        end
    end
    

    posted in Q&A read more
  • nathan323

    I am not a developer, so I cannot help you with a refund.

    Is there a problem with the app's functionality I can help you with?

    posted in General read more
  • nathan323

    The closeest is this tutorial https://www.unifiedremote.com/tutorials/how-to-create-a-custom-keyboard-shortcuts-remote

    The syntax you are after is

    [email protected] Move Mouse
    actions.move_mouse = function ()
        ms.moveto(100, 200);
    end
    

    You could add other commands to that action, eg.

    [email protected] Move Mouse
    actions.move_mouse = function ()
        ms.moveto(100, 200);
        ms.click("right");
    end
    

    Check out https://github.com/unifiedremote/Docs/blob/master/intro/getting-started.md as well.

    posted in Q&A read more
  • nathan323

    Have you installed the server on your PC?

    https://www.unifiedremote.com/download/windows

    posted in Q&A read more
  • nathan323

    Nice, glad you got it working!

    You're right about the forum formatting, double backslashes display as single backslashes, I hadn't noticed it in my post..
    I looked up info on Markdown, language used by NodeBB Forums. Learnt you should use two backslashes for every one you want to display. Couldn't find why in the official docs.

    This is the proper syntax for UR: os.start("C:\\Program Files\\MPV\\mpv.exe");

    This is what it looks like to me: os.start("C:\\\\Program Files\\\\MPV\\\\mpv.exe");

    posted in Q&A read more
Internal error.

Oops! Looks like something went wrong!