> Ludovic T. wrote:
> If I go on a website to download text files within the widget browser,
> where I retrieve the downloaded file ?
You could try to use browserUnhandledLoadRequest.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please vi
> Thanks Sean.
> I will have to work hard because I am not familiar with Dynamic HTML.
One simple way to do that:
Write, a little bit more as Sean wrote, in your html file:
Then first set in LC newsound, may be randomly:
put "/audio/guitar-melody.wav" into newsound
Then issue from LC:
do "do
> > Matthias R. wrote:
> > Are the workshops also available through Simulcast or are they "offline"?
> > Would be great even if only watching would be possible w/o interaction,
> > but i am afraid they aren´t, right?
>
> Trevor D. wrote:
> I don’t know the answer to that. I’m not sure what is b
The problem is that you cannot cancel the page navigation in the widget,
not even by using simple JavaScript (unbeforeunload).
Find below instead a way to "revert" the navigation. If you don't want to
hide the widget you can similarly use two widgets and change their layer.
Or you can show a snaps
Forgot to mention:
There is also a post "Browser widget and loading animation"
http://forums.livecode.com/viewtopic.php?p=173867#p173867
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and mana
> Matthias R. wrote:
> ... force the browser widget to go to a previous page
besides using "go in widget" make your own history, see
http://forums.livecode.com/viewtopic.php?p=174936#p174936
> Matthias R. wrote:
> ... i cannot layer the spinner over the browser widget.
> Is there a way to do this
As Phil said, but don't set the text of the (empty) image
used as icon of the button but set the filename of the image.
The icon will change accordingly.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, un
What you've seen is the difference of the htmltext of a browser
(also of a browser widget) and the *generated* htmltext.
The latter includes for example also parts that are generated by
JavaScript parts of the htmltext.
> BobS. wrote:
> I've seen that too.
>
> > Rick H. wrote:
> > I thought it w
> Rick H. wrote:
> I am able to load the browser widget with a URL
> and go to the URL successfully.
>
> I can get the HTMLtext of the page I have browsed to just fine.
> What I have yet to do is to get the page source code of the page
> I have browsed to in LiveCode into a field.
The htmltext is
-- Converts a simple table field with tabstops to a html
http://lists.runrev.com/pipermail/use-livecode/2019-March/253271.html
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your su
(Getting the selection of a browser widget: Aee my previous post).
Setting the selection of a browser widget:
Assume you have an element click me in your webpage.
Then the following selects char 1 to 4 of the link text (= "clic").
on mouseUp
put "var node = document.getElementById('jlg1').firs
> Is there a way to get/set selected text in a browser widget?
> I couldn't find anything.
Why is the LC Builder forum not among your search places?
With LC Script: No.
With JavaScript. Yes.
http://forums.livecode.com/viewtopic.php?p=174936#p174936
___
Bill,
nothing changed. And here it still works with the latest LC 9.
http://livecodeshare.runrev.com/stack/903/DatePicker89_v108
Did you check that it is installed with the Extension Manager?
___
use-livecode mailing list
use-livecode@lists.runrev.com
> Brian M. wrote:
> May be able to take a screen shot, show it, hide the real browser,
> show the tree widget. That does require that the browser contains
> something static and user can’t interact with the browser while the
> tree is visible.
This is probably the easiest solution. But problems ma
> JLG wrote:
> If you load the htmltext from a file on disk, the URL is set to
> the file path and it will respond to an anchor link sent via script.
> This is probably the most viable solution since I can write the text
> to disk first and then load it.
The browser widget does the following (look
> JLG wrote:
> I may need to go back to the revBrowser implementation, since
> layering isn't working with the widget anyway and internal links
> aren't reliable.
The browser widget needs some time after a "reloading" (setting the
htmltext in your case).
set htmltext of widget "browser" to empty
Your syntax is wrong (see dict), "footer" is not a widget kind.
Try this:
popup widget "com.livecode.widget.paletteactions" at the mouseloc
Nevertheless the wrong syntax should result in an error,
not in a crash. Please report to https://quality.livecode.com
__
popup widget works here in LC 8/9 without problems.
What is your crashing line(which widget)?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://l
To summarize some of the previous advices and to
show beginners how easy it is to use applescript:
-- begin commandline
osascript -e 'tell application "LiveCode"
activate
do script "put the internet date"
end tell'
--end commandline (include the last char which is cr)
___
Thanks for closing all these (hidden) memory leaks.
I had the first time in LC 9 no crash of LC when working
several hours with CPU/GPU-stressing scripts.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, uns
RaspberryPi has an own subforum
http://forums.livecode.com/viewforum.php?f=76
For Raspi special interfaces use (the fastest) LC 6.5.1 and
the python libraries via shell.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url
> Jerry J. wrote:
> "Starting in version 7.0 it is possible to modify the container
> variable inside a for each loop without affecting the iterations
> of the loop."
>
>> jbv wrote:
>> repeat for each line j in cc
>> add 1 to item 1 of j
>> put return & j after var2
>> end repeat
You can't c
That's why "tick" is 1/60 seconds ...
A native display (as a browser widget in LC) or a browser (as Colin used)
may be a good test object.
See also https://www.testufo.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this ur
> Mark Wieder wrote:
> Thanks to a suggestion from Mikey, the refactor plugin has been removed
> from SampleStacks/LiveCodeShare and now lives at
> https://github.com/mwieder/revRefactor
What's the purpose of such a move?
___
use-livecode mailing list
So useful and so clever made ... 5/5 stars!
> Mark Wieder wrote:
> Uploaded to LiveCodeShare:
> http://livecodeshare.runrev.com/stack/934/revRefactor
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubsc
Create a *full* filePath. For example:
ask file "Save as:" with imagePath("export",".png")
function imagePath f,x
put the effective filename of this stack into p
set itemdel to slash
put 0 into z
put f&z&x into last item of p
repeat while there is a file p
add 1 to z
put f&z&x i
> Tore N. wrote:
> Are there any ways to start a download of a file via a link in
> the browser widget? It works fine in any other browser ...
on browserUnhandledLoadRequest pURl
-- do your thing with pURL, for example:
-- use libURL for showing progress
put url(pURL) into
end browserUnhand
Why not use the future: HTML5 video tag, in a browser widget
or a HTML5 standalone?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev
Hi,
I use MacOS or linux (on Raspi only), never really worked with windows.
I'm using Windows only to test my stacks/apps on the PC of my youngest son.
Scripting Host-WScript can execute JScript, the MS-extension of ECMAScript. It
has a
lot of features. We probably can use a lot of these feature
** Get selected files of the file manager (without user interaction like
dragDrop) **
(I write the following such that also beginners can read it.)
+++
[a] Solution for MacOS (tested to work on MacOS 10.14):
(a1) Put the following in a field "myScript".
# Full path of selec
> > Richmond M. wrote:
> > Had that happened initially I would not have started this thread.
> Mark Wieder wrote:
> I think there's a valuable lesson to be learned here. I'm not sure
> what it is.
I wrote also things to the use-list (mostly silly typos) I wished a
few seconds later I could cor
Roger,
a side effect of my announcement is that also your "Coup de Graph"
is seen which opens a much wider field of applications.
(You didn't announce it here in the list!sss?)
So the same thanks to you.
Hermann
___
use-livecode mailing list
use-livec
This tabulates and displays 20 distributions:
binomial, hypergeometric, negativebinomial, poisson,
arcsine, beta,cauchy, centralF, chisquare, exponential,
gamma, invgamma, kumaraswamy, lognormal, normal, pareto,
studentt, triangular, uniform and weibull.
Uses jStat ( https://github.com/jstat/j
> Michael K. wrote:
> >> Non-Opaque polygons block the mouse click, when their
> >> lineSize is greater than 9. (This figure varies)
> Hi hh, if you are a reg member of the bug site then please go
> ahead and report it, because Im not.
https://quality.livecode.com/show_bug.cgi?id=21877
_
> Roger G. wrote:
> Is there any way to export myFld to URL and retain the Tab spacings
> 15,250,320 ?
> ...
> I’m working with rtfText instead of HTMLText. (Again, not sure if that makes a
> difference or even what the trades are of each).
RtfText is, without a large JavaScript library, unusable
Last trial. Typos removed and tested to work.
Sorry for the previous faulty version, it's too late here.
-- Converts a simple table field with tabstops to a html
-- [-hh fecit, Mar 2019]
on mouseUp
put the htmltext of fld 1 into ht
put the effective textSize of fld 1 into fs
put the tabstop
To avoid misunderstandings here again the (correctly displayed) code:
-- Converts a simple table field with tabstops to a html
-- [-hh fecit, Mar 2019]
on mouseUp
put the htmltext of fld 1 into ht
put the effective textSize of fld 1 into fs
put the tabstops of fld 1 into tStops
put the wi
The itemdel (that was translated from html in my last post to a tab)
is the htmlCode of tab: numToChar(38)&"#9;".
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
pr
Using the htmltext or the rtfText will not work:
They contain the tabs but NOT the tabspacing.
You could try the following, it works for me.
Make a browser widget with the width of your table field = fld 1.
-- Converts a simple table field with tabstops to a html
-- [-hh fect Mar 2019]
on mouseU
Yes. I have it too here, in LC 9.0.2 and LC 8.1.10.
Did you already report the bug?
Currently we could use as a workaround to disable the graphic,
from the message box, for simple scenarios.
And set the foreColor of it to have a full color.
> Michael K. wrote:
> Non-Opaque polygons block the mous
Just updated PDFViewer (uses parts of pdf.js,
see https://github.com/mozilla/pdf.js ).
Use it if you can't/won't rely on the user's PDF-plugin.
Download PDFViewer_v100 from "Sample Stacks" or
http://livecodeshare.runrev.com/stack/916/
Current features:
* Switch to prev/next/any page of the PD
> BR wrote:
> though I just discovered that if you group the widget, by itself, in
> does accept the graphic effects.
Was the first time published by Jeanne DeVoto:
http://lists.runrev.com/pipermail/use-livecode/2016-October/232259.html
after a question of BR in the use-list ...
The corresponding versions that use JavaScript (from midth 2017)
use the full SVG power of a browser and store the SVG as a
property of the image. And then they convert (very fast) the SVG
again to the image whenever the image is resized.
This doesn't need any additional space if you already use a
That's a fake, as long it is called "SVG"-Icons.
These are ordinary images, converted from SVG, no longer
SVG objects.
Also the import is not a real SVG import but an import
of the converted image.
This is fine, but we shouldn't name these objects "SVG"
as they are ordinary images in the stack.
Release 9.0.3 RC-1:
Thanks Panos (especially) for your work of the last months.
The "size" field for images disappeared a while ago and is now back.
TMHO the name "size" may be misleading. It is
= not the size = (width, height) of the image,
= not the size of the raw data (=4*formattedWidth*forma
[The LC 6 bitmap modes have modern variants. Deduce the math from there.]
LC uses (probably) the cairo library (doesn't support bitmap modes any more):
https://www.cairographics.org/operators/
(also the SVG-link there)
See also:
https://imagineer.in/blog/math-behind-blend-modes/
Actual state of
> Tore wrote:
> Since my student does not need any handlers (in fact would not
> want any handlers added to the widgets) ...
That's exactly why I wrote ControlHandles: The approach doesn't
change any property of a control/widget.
Your approach does (grouping, scripting) ...
_
Widgets are not ordinary controls.
So this is not a bug, rather a missing feature (the widget
author will have to implement an own "grab"-handler).
The widget passes mouseDown but not in a way that "grab" can
be used. MouseMove isn't passed (=> not usable) at all.
You could try "ControlHandles89"
Each and every MacOS 10.x.0 and 10.x.1.
Even Windows 10 is closer to "stable" than these "first" versions.
> Bob S. wrote:
> Really? Which ones?
> > hh wrote:
> > * People are updating their OS without denoting it (for example
> > some MacOS versions are highly unstable). This affects especially
>
All LC 9 versions have some serious problems, especially memory
problems with widgets.
But we should have also the following possible reasons for
"malfunctions" of LiveCode in mind.
* People are updating their OS without denoting it (for example
some MacOS versions are highly unstable). This affe
> GlenB. wrote:
> I found the problem...in my Indy Version 8.0.0 DP4 there is
> no image library under the development menu?? In LC 6.7.6
> there is. So why isn't there one in LC 8.0.0?
Lost in space? Only the sky is the limit for LiveCode ...
___
use-
1. If you quote the modes then it works.
set the ink of img "DSC03103.jpeg" to "srcCopy"
2. The bitmap modes are no longer supported in LC 9.
This is reported in several of the release notes. Probably they
are still listed to allow legacy stacks (LC 6/7/8/9).
3. For example:
https://en.wikipedia.
Two basic ways:
set the url of widget "Browser" to "https://duckduckgo.com";
set the htmltext of widget "Browser" to "Hello"
If these two work, the problem is your html file.
To open a local file drag its icon to the url field of the widget in
the property inspector. Then you see the correct syn
> Roger E. wrote:
> If the rotate speed also included "0", this could be used to display
> the same card, or the same video as SBS (side-by-side). That would
> make it possible to create SBS apps for use on phones in a VR headset.
If I understand correctly what you mean: In the turnImage-sample
> Roger G. wrote:
> Let’s say that I have 3 globals:
> gGlobal1 = 10.1, gGlobal2 = 20.2 and gGlobal3 = 30.3
> I have an expression like gGlobal1*gGlobal2/gGlobal3
> I want to transform this to the expression 10.1*20.2/30.3.
As everything in LC is a string:
put gGlobal1 &"*"& gGlobal2 &"/"& gGlob
While making another example stack for the TurnImage widget
I missed some features and added them to the widget.
So we have now in version 1.3.5:
(1) The two images are now also saved with the widget.
(2) The sometimes appearing stripes when animating are gone.
(3) The rotation axes can optionally
> Richmond wrote:
> because LiveCode seems unable to "see" my User/library folder.
A simple way that you (and LiveCode) can see the Library Folder:
Select your home folder in the finder. Hit cmd-J (= View >Show View Options)
and check "Show Library Folder".
_
Bill,
I had severe problems when starting with MacOS 10.14.
As I know now these were mostly permission problems.
The Apple security hystery may help to that. I still
have some files of zero size that are not deletable
and change their name. I think this is caused by MacOS.
But meanwhile I'm runni
Bill,
the installer button should work, did you use an earlier stack?
The widget is not downloaded by the installer button but is a
custom property of the downloaded stack:
** You have to download the sample stack for each new version. **
Sorry, as soon as the "widgets store" works I'll use that.
The widget has a huge background or transparency,
needed for the turns and rotation.
So I added a "clickedInTransparency" message that you
can use, see tab "Custom" of the property inspector
for an example script.
Deinstall the old version and download version 1.1.0 from
the sample stack, still a
> Al wrote:
> Where could I find Tutorials for creating LCB Libraries
> (not widgets)?
https://livecode.com/topic/creating-an-lcb-library/
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and ma
>> hh wrote:
>> ... the browser widget is still memory leaking when using JS
>
> Brian M. wrote:
> I don’t think that leak is browser widget specific. I was able to reproduce
> the effect of increasing memory usage with the tree view widget, but much
> more slowly.
Very interesting, so it may
I tested now more intensive the widget with LC 9.0.2 on Win 7-10
and linux (Xubuntu 1604).
It works as it should but I changed the (only partially working)
sample stack:
I had to rewrite the video grabbing loop so that the browser widget
has no problems on windows and linux.
Especially on Xubuntu
> BR wrote:
> Now, if I could only figure out how to use a series of images
> instead of just two?
You can set new images at any time, even during rotation. Setting
an image needs at about 10 millisecs (the widget has to adjust its
size). See the help at topright of the sample stack.
The video gra
> Rick H. wrote:
> A YouTube type video showing the effects, and some instructional
> examples of how to use the widget would be helpful.
The SAMPLE STACK (which works after installing the widget and then
restarting LiveCode) has a few lines of help and
++ one ordinary widget (the Tiger) for use
TurnImage is a pure LiveCode Builder widget, there is no essential
script access and no use of JavaScript.
The widgets lets you
= turn an image horizontally or vertically with a 2D-perspective view,
= switch from an image to a second image while turning or rotating.
Thus it is essentially an anim
> This has nothing to do with LiveCode, is only influenced
> by Windows and the user's graphics card.
>
> Did the user already try
> Settings > Advanced settings > Let windows try to fix apps so
> they're not blurry: ON ?
>
> You could also compare with system screenshots (win+print).
Sorry, the
This has nothing to do with LiveCode, is only influenced
by Windows and the user's graphics card.
Did the user already try
Settings > Advanced settings > Let windows try to fix apps so
they're not blurry: ON ?
You could also compare with system screenshots (win+print).
__
I think this is not related especially to behaviors.
There is possibly something going wrong with the memory management
of LC 9.
I had, especially when developing or using widgets, several
strange effects. For example changed scripts worked not before
saving 2-3 times and closing the script editor
The stack TimelapseCamera works with all editions of LC 6/7/8/9 on
Mac/Win/linux and on Raspi 2/3 (with LC 651 and 704)
Download timeLapseCamera6789_v105 from "Sample Stacks" or
http://livecodeshare.runrev.com/stack/928/
TimelapseCamera lets you ...
* select one of the (web-)cameras attached
> You could use "the target" do get the browser
> that is calling the handler...
.. and put the browserDocumentLoadComplete *only*
in the card's script (or the stack's script if the
widgets are on different cards).
___
use-livecode mailing list
use-liv
You could use "the target" do get the browser
that is calling the handler.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mail
I don't know exactly the differences between the editions.
But did you already try https://livecode.com/trial/ ?
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
pre
This is now updated to v102 that removes a display bug on Windows
where I could not make two cams visible at the same time. So, if
you have two cameras attached then you see on MacOS the display
of both and on Windows10 only the selected one.
Tested to work on MacOS 10.14 and Windows 10 with LC 9.
Find some info here:
https://livecode.com/products/livecode-platform/pricing/
>From the 9.0.2-dict entry to cameraControlCreate:
Edition: Indy
OS: mac, windows, ios, android
So, the Community plus edition is not the Indy edition.
I will soon publish a *timelapseCamera* stack that runs on
Mac/Win
*** The stack does NOT run with LC Community ***
(Because it uses the cameraControl that is available in the
Indy or Business versions of LC only.)
Download IndyCam2 from "Sample stacks" or
http://livecodeshare.runrev.com/stack/927/
You can take snapshots with up to two (intern oder extern)
camer
There is also
https://jamesfriend.com.au/pce-js/
that lets you have retro pc's (IBM/Atari/Mac) in the browser.
The MacPlus could be enhanced to have the full latest HyperCard
available.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please
(1) https://vipercard.net
(2) https://github.com/kreativekorp/openxion
(3) https://github.com/uliwitness/stacksmith/
See also the xtalk interviews here:
http://www.zathras.de/angelweb/articles.htm
(4) Why not make a rather complete LC HTML5 standalone?
It could have an optional "retro-look" (Hy
http://lists.runrev.com/pipermail/use-livecode/2018-December/251858.html
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailma
Use Bernd's TinyDictionary.
There everybody can add his own (private) notes.
Download from "Sample Stacks" or
http://livecodeshare.runrev.com/stack/825/TinyDictionary
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to s
> Kee N. wrote:
> I’m confused. Can someone explain why merge function exists when
> the put function works just as well?
> merge([[ 1 + 2 ]] = 3) vs put 1 + 2 && “= 3”
merge([[ 1 + 2 ]] = 3) produces a script error,
this should read merge("[[ 1 + 2 ]] = 3").
Merge is the one and only function to
Until parametrization is implemented for LC 9 one could use
the following generalization of Andre's method for David.
This is still fast enough because replace is so fast in LC.
David would call merge2(string, "{{", "}}").
To make merge xml safe use e.g. merge2(string,,,"<1>","<2>")
Of course you
> BR wrote:
> and you have a "flicker" as the "cache" htmltext seems to load
> and then the my code set it.
>
> So, now the question is... is the htmltext of browser widget
> a saved property?
I already answered both in my last post! Especially:
= To avoid flicker hide the widget until it is r
Until parametrization is implemented for LC 9 one could use
the following generalization of Andre's method for David.
This is still fast enough because replace is so fast in LC.
David would call merge2(string, "{{", "}}").
To make merge xml safe use e.g. merge2(string,,,"<1>","<2>")
Of course you
Browser widget:
A. URL
There are some problems with caching if one sets the URL and reloads.
Then the chance is really big that you get fooled by the cache.
I tried even to delete the widget and create a new one with the same URL.
Also unloadig the url doesn't help.
I couldn't catch with several
> Geoff wrote:
> ... you've just given me an idea how to handle things like font/styling
> tags. Something like:
> function ifTag b,o,s,c
> if b then return o & s & c else return s
> end ifTag
Allow me two remarks.
1. You could use, in order to avoid the check:
function tag s,o,c
return
> Geoff wrote:
> using value():
> the name of tID && "[" & the id of tID & "]"
> using merge():
> [[the name of tID]] - ([[the id of tID]])
> (is there a way to escape the "["?)
You could use with merge not only variables but also functions
that are available for the script that calls merge:
[[br
BR,
assuming you don't have a local server running:
It is an essential difference whether you set the htmltext or
set the URL of the widget.
If the image is called in the htmltext then there is no way but
using a dataURL (=inline image), no matter if it is an img tag or
called in the style tag.
LCImageToolBox89 and LCImageToolBox6789Mac are updated to v190:
Added 5 methods of a stippling effect
[ see https://en.wikipedia.org/wiki/Stippling ]
Download LCImageToolBox from "Sample Stacks" or
http://livecodeshare.runrev.com/stack/826/ (for LC 8/9)
http://livecodeshare.runrev.com/stack/827/
Field and button names below relate to my example stack.
http://forums.livecode.com/viewtopic.php?p=173867#p173867
To use a local file (= NOT from a local or remote server) you have
to load the image from a stack property or url("binfile:"...) and
add it inline (base64 encoded):
Step 1: imageVari
Looking again at your problem my experiences with both statistics
and images say that the *median* would be a better average than
the *arithmeticMean*. So you could try and compare both averages
(more exactly: location parameters of your WxH-color-distribution).
local t="temp"
-- hL,vL is the top
> Bernd N. wrote:
> At times it is hard to believe that it is "just" a HTML5 stack, it
> seems like a little IDE in its own.
It is in fact an interesting question how much of the IDE can be "ported"
to a HTML5 standalone. Currently we are at the level of a non-debugging
message box. If somebody is
Sorry for my several double postings. This was a problem with my email server.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/m
Sorry, my last post had a typo. Now it is correct.
> Beat C. wrote:
> What I need is to get the RGB of a specific screen
> location - I need to make an avarage of e.g. 5x5 pixels.
Make a new small stack with a button. Script it as given below.
On mouseUp the average is taken from the 5x5-rect lef
Sorry, my last post had a typo. Now it is correct.
> Beat C. wrote:
> What I need is to get the RGB of a specific screen
> location - I need to make an avarage of e.g. 5x5 pixels.
Make a new small stack with a button. Script it as given below.
On mouseUp the average is taken from the 5x5-rect lef
> Beat C. wrote:
> What I need is to get the RGB of a specific screen
> location - I need to make an avarage of e.g. 5x5 pixels.
Make a new small stack with a button. Script it as given below.
On mouseUp the average is taken from the 5x5-rect left of the topleft
of your stack.
- begin button
Try
if there is no img "temp" then create invisible img "temp"
export snapshot from rect to img "temp" as PNG
Then average the imagedata of that image. If you would
like to use transparency then also use the alphadata.
This is for desktop, on mobile there are some specials
(see the dictionary).
Try
if there is no img "temp" then create invisible img "temp"
export snapshot from rect to img "temp" as PNG
Then average the imagedata of that image. If you would
like to use transparency then also use the alphadata.
This is for desktop, on mobile there are some specials
(see the dictionary).
There is nearly no documentation in the dictionary what works (or works not)
in HTML5 standalones. That's why I made this tool:
Here is "hhTestInStandalone", a HTML5 standalone that is ready for testing
code snippets up to local libraries (script-only stacks).
I use it to isolate critical script
> Geoff C. wrote:
> So you want drag and drop in the stack list to reorder the windows?
> What's the purpose? To bring a particular stack to the foreground?
What others do with the "z-index". Or what we can do with setting the
layer of card controls (no only setting the layer of a control to "top"
201 - 300 of 858 matches
Mail list logo