Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1579

General Discussion • Re: SnipPage & WebViewPlugin

$
0
0
Displaying an URL on the desktop is already possible, but only a full page.
The rest is to create some kind of layer to display only a specific region of the webpage and hide the rest...

That is already kinda possible, but only using a local HTML file, iframes and a lot of CSS which is not exactly easy to do.

I don't know it that it possible, but it would be a great plugin idea don't you think ?
Yet again, everything is possible, if you really want it. No need for a plugin, but if khanhas made his WebView measure a meter instead, a lot of things would have been easier to do (like using a container meter to mask what you don't need from the webpage, for example). Since he didn't, a bit of creativity to snip the page ourselves via the skin and measure options gets us closer to the objective:

Code:

[Rainmeter]Update=-1AccurateText=1SkinWidth=960SkinHeight=170BackgroundMode=2SolidColor=0,0,0,1---Measures---[WebView]Measure=PluginPlugin=WebViewX=-150Y=-130W=1280H=720URL=https://www.cnbc.com---Meters---[Dummy]Meter=Image
SnipPage.jpg
This is where the fun part stops though, as there are several drawbacks to this method of having the entire page offset and cropped by the skin:
- you can't have a skin margin where you can do skin related stuff like dragging or context menu (a position synced skin behind it can alleviate that)
- some pages, e.g. google.com, will not scroll in this setup, not sure if it's about the W and H of the WebView measure or something else
- while the webpage is visually cropped by the measure offset and skin size, hovered links are shown as if the webpage was entirely visible
There might be other shortcomings I didn't discover yet, so while the method is trivial, some things still need adjustments or cannot be avoided.

Statistics: Posted by Yincognito — Today, 2:04 pm



Viewing all articles
Browse latest Browse all 1579

Trending Articles