Re: Lockscreen and progress bar
Basically my script takes a list of images, checks the imagedata of every image for possible white areas at the top, bottom, left or right, crops the image if necessary, resizes the image and groups it with fields created on the fly with text data from an xml file. When I simply lock the screen at the beginning of the main loop, everything works as expected. But when I use a group of objects on top of everything to hide the rest, with a couple of unlock/lock screen to update a progress bar and the content of a field in that top group, then imagedata processing stops working. I don't get any error, but it is as if images didn't feature any white area, when some of them actually do. I suspect there is a memory problem or something similar. ___ 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/mailman/listinfo/use-livecode
Re: Lockscreen and progress bar
Try wait 1 millisecond with messages then lock screen again. But I have run into this issue where even when I pause execution by some means the screen does not update. I find the whole process unreliable, and by the way when you lock the screen then do something with a datagrid, the screen gets unlocked in the process because the datagrid library for reasons unknown unlocks the screen for certain operations. Bob S > On Jul 26, 2024, at 12:12 AM, jbv via use-livecode > wrote: > > Hello Terry, > > Yes I thought of that. The problem is that "lock screen" hinders > the progress bar to be updated while the loop is running. > I also tried to shortly "break" the lock screen by inserting > unlock screen > lock screen > within the loop, hoping that it would update the display, but > to no avail. > > Thank you anyway for the idea. > > Le 2024-07-26 02:54, Terry Judd via use-livecode a écrit : >> How about taking a screengrab just before you run the loop, place that over >> the top of the content that changes, layer the progress thingy over that and >> then delete the screengrab and hide the thingy when the loop is done? >> From: use-livecode on behalf of jbv >> via use-livecode >> Date: Friday, 26 July 2024 at 4:44 PM >> To: How to use LiveCode >> Cc: j...@souslelogo.com >> Subject: Lockscreen and progress bar >> Hi list, >> I have a main loop that does a lot of things, like resizing images, >> precessing imagedata, creating fields and groups, etc. >> On top of the loop I have added "lock screen" to speed things up, and >> also because I don't want users to see what is going on, only the final >> layout when the loop is over. >> However, while the loop is running, I would like to have a progress bar >> and a message such as "step 1/20" etc. >> How can I handle that ? I took a look at callbacks, but unless I missed >> something, it seems limited to players. >> Thank you in advance. >> jbv >> ___ >> 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/mailman/listinfo/use-livecode >> ___ >> 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/mailman/listinfo/use-livecode > > ___ > 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: Lockscreen and progress bar
The solution I came up with was a standalone that I could send messages to. I called it Spinner because I wanted to show a dialog that displayed a message and a spinning graphic while Livecode was processing handlers. I could send commands to show itself, hide itself, display a message and activate the graphic. A progress bar could have been added but I stopped using it for some reason. On MacOS I used Applescript to send commands, but you could use sockets just as easily. I think there are widgets now that will do what you want. My understanding is that widgets can be designed to run independent of Livecode’s single processing thread. Bob S > On Jul 25, 2024, at 11:42 PM, jbv via use-livecode > wrote: > > Hi list, > > I have a main loop that does a lot of things, like resizing images, > precessing imagedata, creating fields and groups, etc. > On top of the loop I have added "lock screen" to speed things up, and > also because I don't want users to see what is going on, only the final > layout when the loop is over. > However, while the loop is running, I would like to have a progress bar > and a message such as "step 1/20" etc. > > How can I handle that ? I took a look at callbacks, but unless I missed > something, it seems limited to players. > > Thank you in advance. > jbv > > ___ > 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: Lockscreen and progress bar
Actually I forgot that I had a "lock screen" at the very beginning of my script. And successive "lock screen" cumulate. Therefore the following sequence doesn't update the screen layout : lock screen .. lock screen .. unlock screen lock screen Funny how I can get stalled with very basic things sometimes... ___ 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/mailman/listinfo/use-livecode
Re: Lockscreen and progress bar
Sent from my iPhone > On 26 Jul 2024, at 08:13, jbv via use-livecode > wrote: > > Hello Terry, > > Yes I thought of that. The problem is that "lock screen" hinders > the progress bar to be updated while the loop is running. > I also tried to shortly "break" the lock screen by inserting > unlock screen > lock screen > within the loop, hoping that it would update the display, but > to no avail. Unlock screen Wait 0 millisecs with messages Lock screen I think 🤔 Alex > > Thank you anyway for the idea. > > Le 2024-07-26 02:54, Terry Judd via use-livecode a écrit : >> How about taking a screengrab just before you run the loop, place that over >> the top of the content that changes, layer the progress thingy over that and >> then delete the screengrab and hide the thingy when the loop is done? >> From: use-livecode on behalf of jbv >> via use-livecode >> Date: Friday, 26 July 2024 at 4:44 PM >> To: How to use LiveCode >> Cc: j...@souslelogo.com >> Subject: Lockscreen and progress bar >> Hi list, >> I have a main loop that does a lot of things, like resizing images, >> precessing imagedata, creating fields and groups, etc. >> On top of the loop I have added "lock screen" to speed things up, and >> also because I don't want users to see what is going on, only the final >> layout when the loop is over. >> However, while the loop is running, I would like to have a progress bar >> and a message such as "step 1/20" etc. >> How can I handle that ? I took a look at callbacks, but unless I missed >> something, it seems limited to players. >> Thank you in advance. >> jbv >> ___ >> 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/mailman/listinfo/use-livecode >> ___ >> 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/mailman/listinfo/use-livecode > > ___ > 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: Lockscreen and progress bar
I was thinking you would omit the lock screen altogether. Or if things are too slow without it can you move to a different card while all that other stuff is happening? From: use-livecode on behalf of jbv via use-livecode Date: Friday, 26 July 2024 at 5:13 PM To: How to use LiveCode Cc: j...@souslelogo.com Subject: Re: Lockscreen and progress bar Hello Terry, Yes I thought of that. The problem is that "lock screen" hinders the progress bar to be updated while the loop is running. I also tried to shortly "break" the lock screen by inserting unlock screen lock screen within the loop, hoping that it would update the display, but to no avail. Thank you anyway for the idea. Le 2024-07-26 02:54, Terry Judd via use-livecode a écrit : > How about taking a screengrab just before you run the loop, place that > over the top of the content that changes, layer the progress thingy > over that and then delete the screengrab and hide the thingy when the > loop is done? > > From: use-livecode on behalf of > jbv via use-livecode > Date: Friday, 26 July 2024 at 4:44 PM > To: How to use LiveCode > Cc: j...@souslelogo.com > Subject: Lockscreen and progress bar > Hi list, > > I have a main loop that does a lot of things, like resizing images, > precessing imagedata, creating fields and groups, etc. > On top of the loop I have added "lock screen" to speed things up, and > also because I don't want users to see what is going on, only the final > layout when the loop is over. > However, while the loop is running, I would like to have a progress bar > and a message such as "step 1/20" etc. > > How can I handle that ? I took a look at callbacks, but unless I missed > something, it seems limited to players. > > Thank you in advance. > jbv > > ___ > 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/mailman/listinfo/use-livecode > ___ > 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: Lockscreen and progress bar
Hello Terry, Yes I thought of that. The problem is that "lock screen" hinders the progress bar to be updated while the loop is running. I also tried to shortly "break" the lock screen by inserting unlock screen lock screen within the loop, hoping that it would update the display, but to no avail. Thank you anyway for the idea. Le 2024-07-26 02:54, Terry Judd via use-livecode a écrit : How about taking a screengrab just before you run the loop, place that over the top of the content that changes, layer the progress thingy over that and then delete the screengrab and hide the thingy when the loop is done? From: use-livecode on behalf of jbv via use-livecode Date: Friday, 26 July 2024 at 4:44 PM To: How to use LiveCode Cc: j...@souslelogo.com Subject: Lockscreen and progress bar Hi list, I have a main loop that does a lot of things, like resizing images, precessing imagedata, creating fields and groups, etc. On top of the loop I have added "lock screen" to speed things up, and also because I don't want users to see what is going on, only the final layout when the loop is over. However, while the loop is running, I would like to have a progress bar and a message such as "step 1/20" etc. How can I handle that ? I took a look at callbacks, but unless I missed something, it seems limited to players. Thank you in advance. jbv ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: Lockscreen and progress bar
How about taking a screengrab just before you run the loop, place that over the top of the content that changes, layer the progress thingy over that and then delete the screengrab and hide the thingy when the loop is done? From: use-livecode on behalf of jbv via use-livecode Date: Friday, 26 July 2024 at 4:44 PM To: How to use LiveCode Cc: j...@souslelogo.com Subject: Lockscreen and progress bar Hi list, I have a main loop that does a lot of things, like resizing images, precessing imagedata, creating fields and groups, etc. On top of the loop I have added "lock screen" to speed things up, and also because I don't want users to see what is going on, only the final layout when the loop is over. However, while the loop is running, I would like to have a progress bar and a message such as "step 1/20" etc. How can I handle that ? I took a look at callbacks, but unless I missed something, it seems limited to players. Thank you in advance. jbv ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Lockscreen and progress bar
Hi list, I have a main loop that does a lot of things, like resizing images, precessing imagedata, creating fields and groups, etc. On top of the loop I have added "lock screen" to speed things up, and also because I don't want users to see what is going on, only the final layout when the loop is over. However, while the loop is running, I would like to have a progress bar and a message such as "step 1/20" etc. How can I handle that ? I took a look at callbacks, but unless I missed something, it seems limited to players. Thank you in advance. jbv ___ 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/mailman/listinfo/use-livecode
Re: lockscreen?
Thanks both: sorted out a lot of my nonsense. Richmond. On 8/15/17 3:30 pm, hh via use-livecode wrote: Richmond wrote: If I lock the screen (so these automations don't show up) will that speed things up? lock screen; lock messages ___ 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
Re: lockscreen?
> Richmond wrote: > If I lock the screen (so these automations don't show up) will that > speed things up? lock screen; lock messages ___ 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/mailman/listinfo/use-livecode
Re: lockscreen?
If you use lock screen to have 1 screen update rather than hundreds or thousands of screen updates, it will be vastly faster. Sent from my iPhone > On Aug 15, 2017, at 7:26 AM, Richmond Mathewson via use-livecode > wrote: > > So . . . owing to some oddities of my Devawriter Pro I have set up a new > interface that automatically converts encoded documents from it original > to another format; but that is implemented as an automation of one of > the manual interfaces; so a series (hundreds, thousands) of mouseUp > signals are despatched to images that function as buttons. > > This makes for an extremely pretty user feedback situation, but also > means that things tend to be s . . . l . . . o . . . w . . . > > If I lock the screen (so these automations don't show up) will that > speed things up? > > Richmond. > ___ > 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/mailman/listinfo/use-livecode ___ 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/mailman/listinfo/use-livecode
lockscreen?
So . . . owing to some oddities of my Devawriter Pro I have set up a new interface that automatically converts encoded documents from it original to another format; but that is implemented as an automation of one of the manual interfaces; so a series (hundreds, thousands) of mouseUp signals are despatched to images that function as buttons. This makes for an extremely pretty user feedback situation, but also means that things tend to be s . . . l . . . o . . . w . . . If I lock the screen (so these automations don't show up) will that speed things up? Richmond. ___ 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/mailman/listinfo/use-livecode
Re: Lockscreen and Visual effect
Hi Phil... Use unlock screen instead of show object... lockscreen for visual effect --draw the new set of people into the same rect as the old ones, while the screen is locked unlock screen with push down ___ 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/mailman/listinfo/use-livecode
re:Why does lockScreen not work here?
Thank you Mark!Now you all know why I don't ask questions very often.But I do enjoy reading all my Digests every evening (can't understand how you people keep it up in real time) and that takes so long I never get around to working on my stacks (or reading the fm)! Barry ___ 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/mailman/listinfo/use-livecode
Re: Why does lockScreen not work here?
Barry, You made a mistake. The correct syntax is: lock screen or set the lockScreen to true and unlock screen or set the lockScreen to false -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 New: Download the Installer Maker Plugin 1.6 for LiveCode here http://qery.us/ce On 2 jul 2011, at 15:18, bar...@libero.it wrote: > > > This is a similar question to that of Tiemo (why does lock screen doesn't > locks the screen? (Tiemo Hollmann TB)) about finding colours under other > objects (controls) but that thread evolved so fast in a single Digest I may > appear a bit late. Thus the hijacked thread title. > > The following handler detects the colour onto which a dragged object is > dropped by moving it and getting the mouseColor but. Although it could be > interpreted as a settling wobble, I would prefer not to see the little > movement . > > This works correctly, as is, but if I uncomment the lines 'lockScreen' and > 'unlockScreen' then the whole handler is stopped. > > I've tried moving the commented lines around and using 'set lock screen' but > the result is always the same, suggestions please. > > --- > Global gCurrBall > > on Rollit > --lockScreen > move gCurrBall relative 20,-20 --These movements should not be seen by > user- > get the mouseColor > put it into tColour > move gCurrBall relative -20,20 > --unlockScreen > if tColour is 0,0,0 then > Dropit > else exit to top > end Rollit > > on Dropit.. > --- > Using Windows XPHome, Rev vs 3.5 / 4.0 > > Best to all > Barry Barber ___ 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/mailman/listinfo/use-livecode
Why does lockScreen not work here?
This is a similar question to that of Tiemo (why does lock screen doesn't locks the screen? (Tiemo Hollmann TB)) about finding colours under other objects (controls) but that thread evolved so fast in a single Digest I may appear a bit late. Thus the hijacked thread title. The following handler detects the colour onto which a dragged object is dropped by moving it and getting the mouseColor but. Although it could be interpreted as a settling wobble, I would prefer not to see the little movement . This works correctly, as is, but if I uncomment the lines 'lockScreen' and 'unlockScreen' then the whole handler is stopped. I've tried moving the commented lines around and using 'set lock screen' but the result is always the same, suggestions please. --- Global gCurrBall on Rollit --lockScreen move gCurrBall relative 20,-20 --These movements should not be seen by user- get the mouseColor put it into tColour move gCurrBall relative -20,20 --unlockScreen if tColour is 0,0,0 then Dropit else exit to top end Rollit on Dropit.. --- Using Windows XPHome, Rev vs 3.5 / 4.0 Best to all Barry Barber ___ 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/mailman/listinfo/use-livecode