166
www.analogway.com
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
F.c.c.
Mouse events
[event_message] is of format "Mouse [event_type] [x] [y]"
where [event_type] is one of Move, ButtonLeftDown, ButtonLeftUp, ButtonMiddleDown, ButtonMiddleUp,
ButtonRightDown, ButtonRightUp
where [x] [y] are the x y coordinates. Their range is related to the browser window width and height of the
webpage, which can be configured in media manager and commander.
where [modifiers] is optional and is zero or more of CapsLock, NumLock, Shift, Ctrl, Alt, AltGr, Meta,
MouseButtonLeft, MouseButtonMiddle, MouseButtonRight
Example usage, of moving mouse while left mouse button is down and Alt button is down:
send_ui_event("source1", "Mouse Move 900 700 MouseButtonLeft Alt")
Appendix G.
JavaScript examples
Picturall Commander can run custom JavaScript just like most web browsers. In Chrome for instance, this is
done in
Menu > More tools > Developer Tools > Console
.
Here are a few examples of this feature.
Note
: When developing your own JavaScript code, its recommended to first make sure your code runs without error in your own browser.
Tip
: It is possible to add multiple custom JavaScript to one web page.
G.a.
Ex: Browser scroll up and down
In Commander > Media > Network > Webpage:
- Set
Web page address
to https://en.wikipedia.org/wiki/Main_Page
- Set
Browser window width
to 1920
- Set
Browser window height
to 1080