Page 1 of 1

Manialink Browser Features

Posted: 30 Jul 2015, 16:24
by zocka
I have some questions which are more related to the manialink browser itself I think. I guess you have more important things to do atm, but I'd like to see, what we can expect from the future.

1) I would like to know, if there is any way to suppress default actions to use for example the right click on a manialink.

2) To catch the ESC-key, I got a little hack working with EnableMenuNavigation and TriggerPageAction("quit") to emulate default behaviour, but I'm not sure yet, if there might be side-effects to that which I didn't encounter yet.

3) Can we expect any development towards the accessibility of the address bar (between TMT und MP4)?
3a) read address
3b) write fragment
3c) force-show/autohide the bar

Re: Manialink Browser Features

Posted: 31 Jul 2015, 10:50
by Dommy
2) This is only way I personally know too. I didn't noticed any side effects of using this in manialink browser.

1) You can use EnableMenuNavigation() for this, because it also disables RMB default action (afaik). Then it will be easy to make "custom event" on right click using MouseRightButton.

Code: Select all

declare PrevRMB = False;
while (True) {
    yield;
    if (MouseRightButton != PrevRMB) {
        PrevRMB = MouseRightButton;
        if (MouseRightButton) {
            // instructions
        }
    }
}

Re: Manialink Browser Features

Posted: 31 Jul 2015, 15:00
by zocka
I use

Code: Select all

EnableMenuNavigation(True, True, Page.GetFirstChild("esc"), 1);
which does not prevent the default RMB behaviour (still goes to previous page). I'm not sure about the parameters though even after I read this ^^
I think it's called the right way, since it catches Esc, but maybe it is simply not supposed to work.