Re: object beneath mouseLoc?
Try the mouseControl - that should work. Phil On 7/3/11 10:09 PM, Nicolas Cueto wrote: Hello. Does LC have a built-in way of returning the id of the object(s) at a mouseLoc? For now, I'm relying on mouseMove combined with mouseColor. But on my stack there's a weakness to this method. (It's a grid of round-edged tiles each of which can be deleted if contiguously connected. A diagonal move between tiles, though, enters the clearing between the rounded corners and causes mouseColor to trigger.) As always, thank you for the help. -- Nicolas Cueto (iPhone) ___ 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 -- Phil Davis PDS Labs Professional Software Development http://pdslabs.net ___ 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
AW: why does lock screen doesn't locks the screen?
Good idea Chris, thank you Tiemo -Ursprüngliche Nachricht- Von: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] Im Auftrag von Nonsanity Gesendet: Freitag, 1. Juli 2011 17:29 An: How to use LiveCode Betreff: Re: why does lock screen doesn't locks the screen? lock screen only locks the window contents, not the whole screen (despite the name) and never the cursor. The cursor belongs to the user and lives above the screen. But you can lock cursor to keep in in the shape that you want. I can't get set cursor to none to hide the cursor here, so there may be something wrong with that feature. What you can do instead is make a 16x16 all-alpha png file and import that into the stack. Then you can set the cursor to that image's id and then lock the cursor and do your movements. When the handler exits, the lock will be released, but it's always better to put an unlock cursor (or screen) because these commands stack. (Five locks takes five unlocks.) I made such an image and tested it, and it worked. I'd give you a link to the image, but Dropbox is being flaky right now. Wait... I'll put it on another server: http://nonsanity.com/x/invisible16x16.png And here's my script. I made sure the points I picked were over different objects, like a field, to make sure the cursor wouldn't change as it would normally. on mouseUp set the cursor to 1007 lock cursor set the cursor to 1007 wait 50 repeat with a = 1 to 4 set the screenmouseloc to word a of 202,398 290,270 168,222 363,594 wait 50 end repeat end mouseUp Hope that helps. ~ Chris Innanen ~ Nonsanity On Fri, Jul 1, 2011 at 4:14 AM, Tiemo Hollmann TB toolb...@kestner.dewrote: Hello, In a function I set the screenMouseLoc to four different locations on an image to get the mousecolor of these four locations. I have set the screen lock at the beginning of the function, but the cursor is flickering at all four locations, so obviously the screen is redrawn everytime I set the mouse at a new location though the screenloc is true. What can I do to not see the mouse (and perhaps speed up the function), and why does the lock screen doesn't work in this case? Thanks Tiemo ___ 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: object beneath mouseLoc?
Try the mouseControl - that should work. Phil Thanks, Phil. Didn't know about that function. But, still a no-go. My script relies on mouseMove and mouseStillDown to let the user select grouped objects by dragging the mouse. I'd also now like the script to know when the user has moved out of an object, even if the mouse is down. According to the docs, though, if the mouse button is down, the mouseControl function returns the control that was clicked, even if the mouse has moved to another control. I tested mouseControl out anyway, and sure enough, only the clicked control gets returned. Perhaps there's other suggestions... -- Nicolas Cueto ___ 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: object beneath mouseLoc?
I should also note that I'm using AnimationEngine, in case there's an AE-based solution. -- Nicolas Cueto ___ 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: object beneath mouseLoc?
Could you track mouseEnter messages to capture the object rect entered (or does that only work on fields - sorry not on my LC machine to check the docs)? Best, Keith.. On 4 Jul 2011, at 11:45, Nicolas Cueto wrote: Try the mouseControl - that should work. Phil Thanks, Phil. Didn't know about that function. But, still a no-go. My script relies on mouseMove and mouseStillDown to let the user select grouped objects by dragging the mouse. I'd also now like the script to know when the user has moved out of an object, even if the mouse is down. According to the docs, though, if the mouse button is down, the mouseControl function returns the control that was clicked, even if the mouse has moved to another control. I tested mouseControl out anyway, and sure enough, only the clicked control gets returned. Perhaps there's other suggestions... -- Nicolas Cueto ___ 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: object beneath mouseLoc?
Could you track mouseEnter messages to capture the object rect entered Way back when, I tried both mouseEnter and mouseLeave. And learnt the hard way that these messages only get sent when the mouse is no longer down. Which is when I began experimenting with mouseStillDown and mouseMove. Thanks anyway, Keith. -- Nicolas Cueto ___ 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: record sound problem on windows
Hi Alex, If you report this in the QCC we'll investigate it. If you could upload the stack that is demonstrating the problem at your end that will help us a great deal. Warm regards, Ben On 4 July 2011 05:25, Alex Shaw a...@harryscollar.com wrote: Hi Just tried on a Windows 7 machine. Works ok. This is definitely a XP-only issue. Anyone recording audio on XP successfully? If not, I will bugzilla it. regards alex On 4/07/11 12:39 AM, Alex Shaw wrote: Hi I'm having a similar problem recording sound on Windows XP with updated quicktime. Using the standard record sound file test.wav, works fine on OSX but the resulting file when recorded on XP is high pitched out of tempo. Is there a special setting needed for XP? Have tried various record rates but to no avail. regards alex On 19/03/11 11:47 PM, Martin Meili wrote: Hi, I've got a soud recording problem on Windows XP with LiveCode 4.5.3. The command works fine on Mac OSX, both in the stackfile mode and the standalone mode. On Windows it doesn't work neither in the stackfile mode nor the standalone mode. I doesn't matter whether I work on my Mac or my Dell windows computer - I've got on both platforms the same problem: record sound doesn't work on Windows. If I open the stack with Revolution 4.0 and do the stadalone-build, I get a working Standalone for Windows which does the record sound command correctly. Anybody there who knows about the problem (bug??)? Cheers Martin __**_ 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-livecodehttp://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-livecodehttp://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-livecodehttp://lists.runrev.com/mailman/listinfo/use-livecode -- _ Benjamin Beaumont . RunRev Ltd LiveCode Product Manager mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW email : b...@runrev.com company : +44(0) 845 219 89 23 fax : +44(0) 845 458 8487 web : www.runrev.com ___ 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: object beneath mouseLoc?
On 07/04/2011 01:45 PM, Nicolas Cueto wrote: Try the mouseControl - that should work. Phil Thanks, Phil. Didn't know about that function. But, still a no-go. My script relies on mouseMove and mouseStillDown to let the user select grouped objects by dragging the mouse. I'd also now like the script to know when the user has moved out of an object, even if the mouse is down. According to the docs, though, if the mouse button is down, the mouseControl function returns the control that was clicked, even if the mouse has moved to another control. I tested mouseControl out anyway, and sure enough, only the clicked control gets returned. Perhaps there's other suggestions... I have a feeling that on mouseLeave works whether the mouse button is up or down. -- Nicolas Cueto ___ 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: object beneath mouseLoc?
I have a feeling that on mouseLeave works whether the mouse button is up or down. About mouseLeave from the docs: If the mouse button is down when the mouse pointer leaves the control, the mouseLeave message is not sent until the mouse button is released. -- Nicolas Cueto ___ 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: object beneath mouseLoc?
What about the on drag... messages - if the mouse is down during movements then these should be active? Best, Keith.. On 4 Jul 2011, at 12:25, Nicolas Cueto wrote: I have a feeling that on mouseLeave works whether the mouse button is up or down. About mouseLeave from the docs: If the mouse button is down when the mouse pointer leaves the control, the mouseLeave message is not sent until the mouse button is released. -- Nicolas Cueto ___ 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: object beneath mouseLoc?
Would 'mouseWithin' help ? on mouseDown repeat until the mouseLoc is not within the rect of me put the mouseLoc wait 0 millisecs with messages end repeat beep end mouseDown I have a feeling that on mouseLeave works whether the mouse button is up or down. About mouseLeave from the docs: If the mouse button is down when the mouse pointer leaves the control, the mouseLeave message is not sent until the mouse button is released. -- Nicolas Cueto ___ 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: object beneath mouseLoc?
On 07/04/2011 02:25 PM, Nicolas Cueto wrote: I have a feeling that on mouseLeave works whether the mouse button is up or down. About mouseLeave from the docs: If the mouse button is down when the mouse pointer leaves the control, the mouseLeave message is not sent until the mouse button is released. Blast! Never mind, cheer up! I just set up a stack consisting of one card and an image called gl, and a field called POZ. I put this into the card script: on mouseMove if the mouseLoc is not within the rect of img GL then put outwith into field POZ else put inwith into field POZ end if end mouseMove and this works REGARDLESS as to whether the mouse button is DOWN or UP . . . :) -- Nicolas Cueto ___ 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: interesting custom property behavior...
It turns out when you set a custom prop from within a LC custom property inspector, it doesn't pass the setProp message. I'm sure this design is on purpose, but I wonder why? I believe the property inspector locks messages before setting properties. But that's just dragged from somewhere in my memory - I don't think it's documented and I couldn't tell you why I think that or if it's right. It does seem to fit empirically though. You're absolutely right, Mark... I ran into this same thing when prepping for my demonstration of DropTools at the LiveCode TV #29 event. I even called Richard to confirm that this wasn't a bug. Sure enough, messages are being locked, and there's a note in the IDE script for the handler related to bug #8345: # OK-2009-10-17 : Bug 8345 # We should lock messages whenver a property is get or set to prevent code # execution caused by custom getProp / setProp handlers. Failing to do # this causes the user to be confused about the actual value of the property # and also could cause stacks to be broken e.g. by running code the user # hadn't finished testing and accidently deleted objects. I've since had to explicitly tell people using the LC IDE to set custom properties via the Message Box (or use the MC IDE, where this doesn't happen). Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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: delete array element
When I try to use that command in the Message box, I get an error: global myVariable; put A into myVariable[1]; put B into myVariable[2]; delete global myVariable[2] Error description: delete: bad variable expression This is one of those cases where the Message Box can't resolve things properly. If you put the same code in a button an click it, it works without an error. Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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: object beneath mouseLoc?
Never mind, cheer up! I just set up a stack consisting of one card and an image called gl, and a field called POZ. I put this into the card script: on mouseMove if the mouseLoc is not within the rect of img GL then put outwith into field POZ else put inwith into field POZ end if end mouseMove and this works REGARDLESS as to whether the mouse button is DOWN or UP . . . :) Yes, this is one of the idiosyncracies of LC, going way back to when it was MetaCard... once you mouseDown on an object, the target remains the originally clicked object even if you ask for things like mouseControl, mouseChar, mouseChunk, etc. The only current way is through polling during mouseMove, which, although ugly, is usually fast enough even if you have hundreds of objects: on mouseMove if the mouse is down then repeat with x = 1 to the number of controls if the mouseLoc is within the rect of control x then -- do what you want to do with it else -- take some other action end if end repeat end if end mouseMove Personally I'd like to kick that concept to the curb and have all mouseXXX function relate to where the actual mouse *is*, regardless of whether it's state is up or down... Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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: record sound problem on windows
Hi Benjamin See.. http://quality.runrev.com/show_bug.cgi?id=9606 regards alex On 4/07/11 9:14 PM, Benjamin Beaumont wrote: Hi Alex, If you report this in the QCC we'll investigate it. If you could upload the stack that is demonstrating the problem at your end that will help us a great deal. Warm regards, Ben On 4 July 2011 05:25, Alex Shawa...@harryscollar.com wrote: Hi Just tried on a Windows 7 machine. Works ok. This is definitely a XP-only issue. Anyone recording audio on XP successfully? If not, I will bugzilla it. regards alex On 4/07/11 12:39 AM, Alex Shaw wrote: Hi I'm having a similar problem recording sound on Windows XP with updated quicktime. Using the standard record sound file test.wav, works fine on OSX but the resulting file when recorded on XP is high pitched out of tempo. Is there a special setting needed for XP? Have tried various record rates but to no avail. regards alex On 19/03/11 11:47 PM, Martin Meili wrote: Hi, I've got a soud recording problem on Windows XP with LiveCode 4.5.3. The command works fine on Mac OSX, both in the stackfile mode and the standalone mode. On Windows it doesn't work neither in the stackfile mode nor the standalone mode. I doesn't matter whether I work on my Mac or my Dell windows computer - I've got on both platforms the same problem: record sound doesn't work on Windows. If I open the stack with Revolution 4.0 and do the stadalone-build, I get a working Standalone for Windows which does the record sound command correctly. Anybody there who knows about the problem (bug??)? Cheers Martin __**_ 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-livecodehttp://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-livecodehttp://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-livecodehttp://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: System Date/Time Format Problems
I have a handler I've been using for a while that works great with formatting dates. Here it is (sorry for the length, but it's heavily commented - oh and watch for word wraps): -- --| FUNCTION: stsFormattedDate --| --| Author: Ken Ray --| Version: 2.6 --| Created: 8/2/04 --| Last Mod: 2/8/11 --| Requires: -- --| --| Formats an incoming date according to a variety of date --| patterns and outputs the result. --| --| Parameters: --| pDate: The date to be formatted. Must be a date or --| date/time combination, or empty. If empty, uses the --| current date and default 2AM time if time is --| requested in the pattern. Will also check to see if the --| date is a mySQL-formatted --| date if it can't be identified as a normal date. --| pFormat: The pattern to use to format the incoming date. --| The following patterns are available where M is used for --| the month, D for the day, Y for the year, W for --| the weekday name, H for hours, P for AM/PM, --| N for minutes, S for seconds, and G for GMT --| calculation, as follows: --|M = month number, no leading zeroes (1-12) --|MM = month number, with leading zeroes (01-12) --|MMM = month name, abbreviated (Jan - Dec) --| = month name, long (January - December) --|D = day number, no leading zeroes (1-31) --|DD = day number, with leading zeroes (01-31) --|W = weekday name, single letter (S/M/T/W/t/F/s) --|WW = weekday name, shortest (Su/M/Tu/W/Th/F/Sa) --|WWW = weekday name, abbreviated (Sun/Mon/Tue/Wed/ --| Thu/Fri/Sat) --| = weekday name, long (Sunday/Monday/Tuesday/etc.) --|YY = two-digit year (00-99) --| = four digit year (1970-2004) --|H = hours, no leading zeroes, 12 hour format (1-12) --|HH = hours, leading zeroes, 12 hour format (01-12) --|HHH = hours, no leading zeroes, 24 hour format (1-23) --| = hours, leading zeroes, 24 hour format (01-23) --|H = military time format ( - 2359) --|P = AM/PM, single character, lower case (a/p) --|PP = AM/PM, single character, upper case (A/P) --|PPP = AM/PM, two characters, lower case (am/pm) --| = AM/PM, two characters, upper case (AM/PM) --|N = minutes, no leading zeroes (0-59) --|NN = minutes, leading zeroes (00-59) --|S = seconds, no leading zeroes (0-59) --|SS = seconds, leading zeroes (00-59) --|G = GMT Offset (-1100 to +1100) --|GH = GMT Offset hours, including sign (-11 to +11) --|GM = GMT Offset minutes --| pUseBrackets: Determines whether or not the format needs to --| have brackets surrounding each part of the pattern. If true, --| it requires that all patterns are surrounded by square --| brackets, and allows the letters used in the pattern --| (MDYWHNSGP) to be used as part of the return string that --| is *not* part of the pattern (for example GMT as a string). --| If false, pattern letters are replaced by the corresponding --| date parts in the returned string (so it assumes that --| characters that are not part of the pattern are not letters, --| but symbols). -- function stsFormattedDate pDate,pFormat,pUseBrackets if (pDate = ) or (pDate = Now) then put the date the long time into pDate if (pFormat = ) then put MM/DD/ into pFormat if isNumber(word -1 of pDate) then if (word -1 of pDate =2359) and (length(word -1 of pDate)=4) then -- date and military time sent in, just needs a colon between -- hour and minute for it to be converted put : before char -2 of pDate else -- simple number, coerce to AM if word -1 of pDate = 12 then put ((word -1 of pDate) :00 AM) into word -1 of pDate else -- a number larger than 12 but not military? Can't do anything -- with that return invalid time end if end if end if -- Check for am/pm without preceding space put word -1 of pDate into tTestTime if (tTestTime AM) and (tTestTime PM) then put offset(a,tTestTime) into tLoc if (tLoc 0) and (char (tLoc-1) of pDate ) then if char (tLoc+1) of tTestTime m then put m after \ char tLoc of tTestTime put before char tLoc of tTestTime put word -2 of tTestTime into tTime if :is not in tTime then -- probably something like 2am put (tTime :00) into
Re: interesting custom property behavior...
Ken- Monday, July 4, 2011, 6:03:54 AM, you wrote: Sure enough, messages are being locked, and there's a note in the IDE script for the handler related to bug #8345: Yeah, I ran into this when I was throwing PowerTools together as well and had to some some arcane scripting to get around the problem when trying to set default properties for objects. -- -Mark Wieder mwie...@ahsoftware.net ___ 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: object beneath mouseLoc?
On 7/4/11 8:11 AM, Ken Ray wrote: Personally I'd like to kick that concept to the curb and have all mouseXXX function relate to where the actual mouse *is*, regardless of whether it's state is up or down... That would break scripts that need to act on mouseRelease, wouldn't it? For the OP: my Klondike stack polls is within on dozens of controls on each mouseMove message, many times per second, and shows no sign of delay. It's very fast. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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: Anyone using MobGUI?
Chipp- Sunday, July 3, 2011, 8:30:17 PM, you wrote: I can more understand developers protecting scripts when those scripts are part of tools which don't end up inside the codebase of another developer's project. For instance it might be a good idea to protect a plugin script which acts as a debugger for a project. Even so, I think many are still unlocked because mostly folks here are more eager to share how things are done, rather than hiding how things are done. The only time I ever lock scripts is so I can make annoying nag trial versions that are fully functional but otherwise nudge the user in the direction of making a purchase. Everything else is wide open so that maybe someone can learn something, find ugly code to laugh at, and poke around and improve or fix things. -- -Mark Wieder mwie...@ahsoftware.net ___ 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: Anyone using MobGUI?
On Mon, Jul 4, 2011 at 2:28 PM, Mark Wieder mwie...@ahsoftware.net wrote: Chipp- Sunday, July 3, 2011, 8:30:17 PM, you wrote: I can more understand developers protecting scripts when those scripts are part of tools which don't end up inside the codebase of another developer's project. For instance it might be a good idea to protect a plugin script which acts as a debugger for a project. Even so, I think many are still unlocked because mostly folks here are more eager to share how things are done, rather than hiding how things are done. The only time I ever lock scripts is so I can make annoying nag trial versions that are fully functional but otherwise nudge the user in the direction of making a purchase. Everything else is wide open so that maybe someone can learn something, find ugly code to laugh at, and poke around and improve or fix things. sometimes I am afraid that someone will actually read the code on RevOnRockets, specially the processrequest handler... that code is so full of hacks that will make the reader question my sanity. -- -Mark Wieder mwie...@ahsoftware.net ___ 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 -- http://www.andregarzia.com All We Do Is Code. ___ 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: System Date/Time Format Problems
Thanks a lot Ken, this looks great and I'll be trying it out very soon. I might add the ability to return the 3-char timezone since I just found out how to get hold of that from OS X (it's in word -2 of the shell date command) Pete Molly's Revenge http://www.mollysrevenge.com On Mon, Jul 4, 2011 at 6:24 AM, Ken Ray k...@sonsothunder.com wrote: I have a handler I've been using for a while that works great with formatting dates. Here it is (sorry for the length, but it's heavily commented - oh and watch for word wraps): ___ 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: Anyone using MobGUI?
And there I thought I was just not able to 'keep up' with your brilliant mind! On Mon, Jul 4, 2011 at 12:36 PM, Andre Garzia an...@andregarzia.com wrote: sometimes I am afraid that someone will actually read the code on RevOnRockets, specially the processrequest handler... that code is so full of hacks that will make the reader question my sanity. ___ 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: object beneath mouseLoc?
Personally I'd like to kick that concept to the curb and have all mouseXXX function relate to where the actual mouse *is*, regardless of whether it's state is up or down... That would break scripts that need to act on mouseRelease, wouldn't it? OK, you're right about mouseRelease; that should still be be sent to the original object, but I'd still do it for mouseEnter, mouseLeave, mouseMove, mouseWIthin, mouseChar, mouseCharChunk, mouseLine, mouseControl, mouseColor, and mouseText... :D Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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: interesting custom property behavior...
Sure enough, messages are being locked, and there's a note in the IDE script for the handler related to bug #8345: Yeah, I ran into this when I was throwing PowerTools together as well and had to some some arcane scripting to get around the problem when trying to set default properties for objects. Ah... perhaps messages should be locked when *getting* a custom prop, but unlocked when *setting* it through the Inspector...? Oh well, the point is moot now, I'd think. Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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
Adventures in Unicode
possibly subtitled Wading through treacle. My 'eternal' Devawriter didn't display glyphs properly once they were entered via a slightly mephistophelian process into the OUTPUT field, and at least one of my beta-testers was getting quite crochety about it (mainly as I had had no epiphanies of late). Then, flashes of slightly murky light, and it occurred to me that upping the textSize of the output field, and then setting it down by one again . . . take a deep breath, you know Richmond is daft . . . and then, of course, one has to shift the unicodeText out of the field while it is resized and then return it . . . But; it worketh . . . follow me closely: set the useUnicode to true set the unicodeText of the fld HOLDER to the unicodeText of fld OUTPUT put the textSize of fld OUTPUT into BIGGY put BIGGY + 1 into BIGGGY set the textSize of fld OUTPUT to BIGGGY put empty into fld OUTPUT set the unicodeText of the fld OUTPUT to the unicodeText of fld HOLDER put empty into fld HOLDER set the unicodeText of the fld HOLDER to the unicodeText of fld OUTPUT set the textSize of fld OUTPUT to BIGGY put empty into fld OUTPUT set the unicodeText of the fld OUTPUT to the unicodeText of fld HOLDER put empty into fld HOLDER select after fld OUTPUT this is just about as clunky as one gets, but it seems the only way in which one can ensure unicodeText is represented properly. and, before you mention it: http://en.wikipedia.org/wiki/Noddy_Holder I'm off to the funny-farm for a quick frontal lobotomy after that one (which took me about a year to come round to). ___ 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: object beneath mouseLoc?
On 07/04/2011 09:51 PM, Ken Ray wrote: Personally I'd like to kick that concept to the curb and have all mouseXXX function relate to where the actual mouse *is*, regardless of whether it's state is up or down... That would break scripts that need to act on mouseRelease, wouldn't it? OK, you're right about mouseRelease; that should still be be sent to the original object, but I'd still do it for mouseEnter, mouseLeave, mouseMove, mouseWIthin, mouseChar, mouseCharChunk, mouseLine, mouseControl, mouseColor, and mouseText... It threw me somewhat, when I realised that mouseLeave was dependent on the mouse button being up; a bit counter-intuitive. :D Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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: [ANN] aagPasswordField DropTool
\O/ On Mon, Jul 4, 2011 at 4:12 PM, Ken Ray k...@sonsothunder.com wrote: For his first foray at developing a DropTool, Andre Garzia created aagPasswordField, an über-simple DropTool that provides a simple password field that you can drag and drop into your stacks. You can get the password from the control by getting the plaintextpassword of it; pressing backspace or delete clears the field. You can read more about it here: http://droptools.sonsothunder.com/products/aag/aag-pw.irev Enjoy! Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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 -- http://www.andregarzia.com All We Do Is Code. ___ 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: [ANN] aagPasswordField DropTool
Andre, Does it work if the input method (or keyboard) is Arabic or Chinese? -- 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 4 jul 2011, at 21:17, Andre Garzia wrote: \O/ ___ 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: Adventures in Unicode
Richmond, Why don't you switch to using revBrowser to do all your text display, font resizing, and font-family changes? Works like a clock... and you don't have to hold your breath. (But there's no revBrowser for mobiles.) Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Richmond Mathewson Sent: Monday, July 04, 2011 3:03 PM To: How to use LiveCode Subject: Adventures in Unicode possibly subtitled Wading through treacle. My 'eternal' Devawriter didn't display glyphs properly once they were entered via a slightly mephistophelian process into the OUTPUT field, and at least one of my beta-testers was getting quite crochety about it (mainly as I had had no epiphanies of late). Then, flashes of slightly murky light, and it occurred to me that upping the textSize of the output field, and then setting it down by one again . . . take a deep breath, you know Richmond is daft . . . and then, of course, one has to shift the unicodeText out of the field while it is resized and then return it . . . But; it worketh . . . follow me closely: set the useUnicode to true set the unicodeText of the fld HOLDER to the unicodeText of fld OUTPUT put the textSize of fld OUTPUT into BIGGY put BIGGY + 1 into BIGGGY set the textSize of fld OUTPUT to BIGGGY put empty into fld OUTPUT set the unicodeText of the fld OUTPUT to the unicodeText of fld HOLDER put empty into fld HOLDER set the unicodeText of the fld HOLDER to the unicodeText of fld OUTPUT set the textSize of fld OUTPUT to BIGGY put empty into fld OUTPUT set the unicodeText of the fld OUTPUT to the unicodeText of fld HOLDER put empty into fld HOLDER select after fld OUTPUT this is just about as clunky as one gets, but it seems the only way in which one can ensure unicodeText is represented properly. and, before you mention it: http://en.wikipedia.org/wiki/Noddy_Holder I'm off to the funny-farm for a quick frontal lobotomy after that one (which took me about a year to come round to). ___ 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: Adventures in Unicode
Slava... Browser control – UIWebView Page 41 iOS 4.6.1 relase notes... Richmond, Why don't you switch to using revBrowser to do all your text display, font resizing, and font-family changes? Works like a clock... and you don't have to hold your breath. (But there's no revBrowser for mobiles.) Slava ___ 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: [ANN] aagPasswordField DropTool
Mark, No clue, but could you try and provide feedback? Cheers andre On Mon, Jul 4, 2011 at 4:36 PM, Mark Schonewille m.schonewi...@economy-x-talk.com wrote: Andre, Does it work if the input method (or keyboard) is Arabic or Chinese? -- 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 4 jul 2011, at 21:17, Andre Garzia wrote: \O/ ___ 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 -- http://www.andregarzia.com All We Do Is Code. ___ 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: record sound problem on windows
Alex, Your Windows test wave file sounds like some recordings I've seen where the sample rate or sample size is not stated correctly in the file's header. I've seen this happen with some audio drivers that are not capable of recording at a particular combination of sample rate and depth. I downloaded your test stack from the bug database and tested it in Windows 7 and Windows XP. I had to build a standalone because I don't have LC IDE on the XP machine. In Windows 7, I saw no problems recording and playing back from either IDE or the standalone. In Windows XP your standalone recorded one click per wave file (a tiny wave file at that), nothing else. I then modified your stack to include a call to QTVersion in openCard (to make sure QT is loaded), and also to set the sound parameters to 44 kHz, 16 bit, 2 channels. This still worked fine in Windows 7, and produced a good recording in Windows XP, except that for some reason the wave file could not be played by the Sound Recorder, although it played fine with the VLC player. This may have to do with the codec that QT used to make that compression. I didn't look into that. I think you can try loading QT in openCard and using different recording parameters. I am no expert in LC or its sound capabilities, but I will need to record sound in my next project, so I'm trying to learn about it. Compared to Adobe Director, which I had used for ten years before I started playing with LC 8 weeks ago, the sound recording and playback functions in LC rudimentary. Which makes me think that some real programmer may have written an external for sound in LC that you and I don't know about... anyone knows more this? Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Alex Shaw Sent: Monday, July 04, 2011 9:15 AM To: How to use LiveCode Subject: Re: record sound problem on windows Hi Benjamin See.. http://quality.runrev.com/show_bug.cgi?id=9606 regards alex On 4/07/11 9:14 PM, Benjamin Beaumont wrote: Hi Alex, If you report this in the QCC we'll investigate it. If you could upload the stack that is demonstrating the problem at your end that will help us a great deal. Warm regards, Ben On 4 July 2011 05:25, Alex Shawa...@harryscollar.com wrote: Hi Just tried on a Windows 7 machine. Works ok. This is definitely a XP-only issue. Anyone recording audio on XP successfully? If not, I will bugzilla it. regards alex On 4/07/11 12:39 AM, Alex Shaw wrote: Hi I'm having a similar problem recording sound on Windows XP with updated quicktime. Using the standard record sound file test.wav, works fine on OSX but the resulting file when recorded on XP is high pitched out of tempo. Is there a special setting needed for XP? Have tried various record rates but to no avail. regards alex On 19/03/11 11:47 PM, Martin Meili wrote: Hi, I've got a soud recording problem on Windows XP with LiveCode 4.5.3. The command works fine on Mac OSX, both in the stackfile mode and the standalone mode. On Windows it doesn't work neither in the stackfile mode nor the standalone mode. I doesn't matter whether I work on my Mac or my Dell windows computer - I've got on both platforms the same problem: record sound doesn't work on Windows. If I open the stack with Revolution 4.0 and do the stadalone- build, I get a working Standalone for Windows which does the record sound command correctly. Anybody there who knows about the problem (bug??)? Cheers Martin __**_ 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- livecodehttp://lists.runre v.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- livecodehttp://lists.runre v.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- livecodehttp://lists.runre v.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
RE: Adventures in Unicode
Ah, thanks, John. I must look into this. S. -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of John Dixon Sent: Monday, July 04, 2011 3:52 PM To: use-livecode@lists.runrev.com Subject: RE: Adventures in Unicode Slava... Browser control - UIWebView Page 41 iOS 4.6.1 relase notes... Richmond, Why don't you switch to using revBrowser to do all your text display, font resizing, and font-family changes? Works like a clock... and you don't have to hold your breath. (But there's no revBrowser for mobiles.) Slava ___ 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: Adventures in Unicode
On 07/04/2011 10:44 PM, Slava Paperno wrote: Richmond, Why don't you switch to using revBrowser to do all your text display, font resizing, and font-family changes? Works like a clock... and you don't have to hold your breath. (But there's no revBrowser for mobiles.) I think the sheer effort of having to recode 2 years' work to use revBrowser might prove counter productive; може би аз съм малко глупов, but Ahm nae that gyte! Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Richmond Mathewson Sent: Monday, July 04, 2011 3:03 PM To: How to use LiveCode Subject: Adventures in Unicode possibly subtitled Wading through treacle. My 'eternal' Devawriter didn't display glyphs properly once they were entered via a slightly mephistophelian process into the OUTPUT field, and at least one of my beta-testers was getting quite crochety about it (mainly as I had had no epiphanies of late). Then, flashes of slightly murky light, and it occurred to me that upping the textSize of the output field, and then setting it down by one again . . . take a deep breath, you know Richmond is daft . . . and then, of course, one has to shift the unicodeText out of the field while it is resized and then return it . . . But; it worketh . . . follow me closely: set the useUnicode to true set the unicodeText of the fld HOLDER to the unicodeText of fld OUTPUT put the textSize of fld OUTPUT into BIGGY put BIGGY + 1 into BIGGGY set the textSize of fld OUTPUT to BIGGGY put empty into fld OUTPUT set the unicodeText of the fld OUTPUT to the unicodeText of fld HOLDER put empty into fld HOLDER set the unicodeText of the fld HOLDER to the unicodeText of fld OUTPUT set the textSize of fld OUTPUT to BIGGY put empty into fld OUTPUT set the unicodeText of the fld OUTPUT to the unicodeText of fld HOLDER put empty into fld HOLDER select after fld OUTPUT this is just about as clunky as one gets, but it seems the only way in which one can ensure unicodeText is represented properly. and, before you mention it: http://en.wikipedia.org/wiki/Noddy_Holder I'm off to the funny-farm for a quick frontal lobotomy after that one (which took me about a year to come round to). ___ 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: Anyone using MobGUI?
On Mon, Jul 4, 2011 at 3:18 PM, Chipp Walters ch...@chipp.com wrote: And there I thought I was just not able to 'keep up' with your brilliant mind! the only time my mind is brilliant is after 3 pints of rum, just before falling asleep, then I am brilliant but I never remember... On Mon, Jul 4, 2011 at 12:36 PM, Andre Garzia an...@andregarzia.com wrote: sometimes I am afraid that someone will actually read the code on RevOnRockets, specially the processrequest handler... that code is so full of hacks that will make the reader question my sanity. ___ 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 -- http://www.andregarzia.com All We Do Is Code. ___ 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: Anyone using MobGUI?
Andre...:-) I would pay money to watch someone drink 3 pints of rum From: an...@andregarzia.com the only time my mind is brilliant is after 3 pints of rum, just before falling asleep, then I am brilliant but I never remember... ___ 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: Anyone using MobGUI?
On Mon, Jul 4, 2011 at 5:25 PM, John Dixon dixo...@hotmail.co.uk wrote: Andre...:-) I would pay money to watch someone drink 3 pints of rum CHALLENGE ACCEPTED! next conference... please bring a camera to record any brilliance that might or might not happen. From: an...@andregarzia.com the only time my mind is brilliant is after 3 pints of rum, just before falling asleep, then I am brilliant but I never remember... ___ 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 -- http://www.andregarzia.com All We Do Is Code. ___ 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: Anyone using MobGUI?
A kodak and 'Lamb's Navy Rum' it is then...:-) CHALLENGE ACCEPTED! next conference... please bring a camera to record any brilliance that might or might not happen. ___ 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: record sound problem on windows
PS: After I set the codec to be ima4 the file recorded in Windows XP was playable by Windows Media Player and other players. S. Alex, Your Windows test wave file sounds like some recordings I've seen where the sample rate or sample size is not stated correctly in the file's header. I've seen this happen with some audio drivers that are not capable of recording at a particular combination of sample rate and depth. I downloaded your test stack from the bug database and tested it in Windows 7 and Windows XP. I had to build a standalone because I don't have LC IDE on the XP machine. In Windows 7, I saw no problems recording and playing back from either IDE or the standalone. In Windows XP your standalone recorded one click per wave file (a tiny wave file at that), nothing else. I then modified your stack to include a call to QTVersion in openCard (to make sure QT is loaded), and also to set the sound parameters to 44 kHz, 16 bit, 2 channels. This still worked fine in Windows 7, and produced a good recording in Windows XP, except that for some reason the wave file could not be played by the Sound Recorder, although it played fine with the VLC player. This may have to do with the codec that QT used to make that compression. I didn't look into that. I think you can try loading QT in openCard and using different recording parameters. I am no expert in LC or its sound capabilities, but I will need to record sound in my next project, so I'm trying to learn about it. Compared to Adobe Director, which I had used for ten years before I started playing with LC 8 weeks ago, the sound recording and playback functions in LC rudimentary. Which makes me think that some real programmer may have written an external for sound in LC that you and I don't know about... anyone knows more this? Slava -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- boun...@lists.runrev.com] On Behalf Of Alex Shaw Sent: Monday, July 04, 2011 9:15 AM To: How to use LiveCode Subject: Re: record sound problem on windows Hi Benjamin See.. http://quality.runrev.com/show_bug.cgi?id=9606 regards alex On 4/07/11 9:14 PM, Benjamin Beaumont wrote: Hi Alex, If you report this in the QCC we'll investigate it. If you could upload the stack that is demonstrating the problem at your end that will help us a great deal. Warm regards, Ben On 4 July 2011 05:25, Alex Shawa...@harryscollar.com wrote: Hi Just tried on a Windows 7 machine. Works ok. This is definitely a XP-only issue. Anyone recording audio on XP successfully? If not, I will bugzilla it. regards alex On 4/07/11 12:39 AM, Alex Shaw wrote: Hi I'm having a similar problem recording sound on Windows XP with updated quicktime. Using the standard record sound file test.wav, works fine on OSX but the resulting file when recorded on XP is high pitched out of tempo. Is there a special setting needed for XP? Have tried various record rates but to no avail. regards alex On 19/03/11 11:47 PM, Martin Meili wrote: Hi, I've got a soud recording problem on Windows XP with LiveCode 4.5.3. The command works fine on Mac OSX, both in the stackfile mode and the standalone mode. On Windows it doesn't work neither in the stackfile mode nor the standalone mode. I doesn't matter whether I work on my Mac or my Dell windows computer - I've got on both platforms the same problem: record sound doesn't work on Windows. If I open the stack with Revolution 4.0 and do the stadalone- build, I get a working Standalone for Windows which does the record sound command correctly. Anybody there who knows about the problem (bug??)? Cheers Martin __**_ 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- livecodehttp://lists.runre v.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- livecodehttp://lists.runre v.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- livecodehttp://lists.runre v.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:
Re: Tab Key
Ken, I can't that you enough This was what the problem was. Appreciate you taking the time this weekend to help me! Warren On Sun, Jul 3, 2011 at 3:35 PM, Ken Ray k...@sonsothunder.com wrote: This is a scrolling list field. The platform is Windows. Thanks for any help! The problem is that the traversalOn property of the list field is false. This is shown in the properties palette as Focusable. Make sure that is *checked*, and everything should work... Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ ___ 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: Anyone using MobGUI?
:-) John- Monday, July 4, 2011, 1:32:18 PM, you wrote: A kodak and 'Lamb's Navy Rum' it is then...:-) Sheep have ships? Methinks Andre's not the only one who's been hitting the rum... -- -Mark Wieder mwie...@ahsoftware.net ___ 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: object beneath mouseLoc?
For the OP: my Klondike stack polls is within on dozens of controls on each mouseMove message, many times per second, and shows no sign of delay. It's very fast. Jacqueline, If you could give a figure more precise than dozens, I'd appreciate it. I too had thought about polling for is within for each of the controls. But there's 36 max, plus there's other things going on (sequentially and sometimes at the same time), so thought it'd slow things down. Which is when I decided to contact the list. Cheers. -- Nicolas Cueto ___ 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: object beneath mouseLoc?
On 4 Jul 2011, at 14:11, Ken Ray wrote: The only current way is through polling during mouseMove, which, although ugly, is usually fast enough even if you have hundreds of objects: on mouseMove if the mouse is down then repeat with x = 1 to the number of controls if the mouseLoc is within the rect of control x then -- do what you want to do with it else -- take some other action end if end repeat end if end mouseMove Scott Raney used to lecture us on avoiding polling with the mouse and mouseLoc in situations like this. It's more efficient to use the x, y parameters passed in to mouseMove. Something like this: local sDown on mouseUp put false into sDown end mouseUp on mouseRelease put false into sDown end mouseRelease on mouseDown put true into sDown end mouseDown on mouseMove x, y if sDown then repeat with k = 1 to the number of controls -- or whatver control list you need to test if (x,y) is within the rect of control k then -- do your thing here end if end repeat end if end mouseMove Cheers Dave ___ 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: object beneath mouseLoc?
If you were making a word game, where you want the consecutively passed over letters to join the increasingly long string, you would only need to check the x,y being within the eight tiles or less that are next to the last letter chosen. At least one of those tiles is likely to already be in the string, and so wouldn't need checking. ___ 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: object beneath mouseLoc?
Well, my solution was to use Jacqueline's idea of polling all the controls for an if within. Also followed Dave Cragg's advice about mouseLoc (x,y) values. Stack works fast. But on machines that are VERY old... Thanks to all. -- Nicolas Cueto (iPhone) ___ 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
chasing the focus
I'm trying to figure out why a field is losing focus and I don't know which tools to use for the hunt. At the very end of a mouseUp handler of a button I have this: on mouseUp . focus on field SearchTarget put the name of the focusedObject cf after msg end mouseUp And I do see [field SearchTarget] in the Message box, as expected. But then focus immediately shifts to the card. I know that because I added an idle handler to the card script: on idle put the name of the focusedObject cf after msg end idle And I see this in the Message box: field SearchTarget card MainCard card MainCard card MainCard etc. So I know that the focus is on the field for a moment, and then leaves the field and switches to the card. But I don't understand why this happens. I don't have any code that executes after the end of that mouseUp. Breakpoints and the Message Watcher are no help. How can I find out what's happening? The vexing thing is that I think this wasn't happening yesterday... What can it be? The field is focusable and not locked, and if I click in it, I can input text. In fact, I can remedy this situation by this kludge: on idle if the short name of the focusedObject is MainCard then focus on field SearchTarget end if end idle But I don't like that kludge. Any insights would be very welcome. Slava ___ 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
[TEASER] Google OAuth 2.0 demo screencast
Hello Folks, Today I managed to implement Google OAuth 2.0 authorization with LiveCode. The library is very simple to use, it will authorize you but it will not help you with the other thousand Google APIs. All it does is authorize access to protected resources, you then access those resources using the normal API for the given resource passing along the authorization code you received. To show it working, I have a little webcast where I use the library to access my Google Contacts data. The Google Contacts API will return an XML with the contacts. http://andregarzia.com/shots/shell-20110705-1.webm http://andregarzia.com/shots/shell-20110705-1.mp4 This OAuth 2.0 library is a part of my soon to be released Social Networks Library Suite. Most of Google services are already available thru OAuth 2.0. The new Google+ service has no API right now but Google will provide one soon and it will be available thru OAuth 2.0 (all new Google APIs are). The social network library suite will be dual licensed. Open Source developers can use the library for FREE provide they abide by GPL rules. Developers wishing to close their source will be able to buy a commercial license. The initial offering will (probably) be: lib.aag.json BSD License A simple library for converting JSON to Revolution Arrays lib.aag.google GPL Commercial An OAuth 2.0 authorization library for Google Services lib.aag.facebook GPL Commercial An OAuth 2.0 authorization library for Facebook along a minimal wrapper to help with their API I will soon start a little fundraising campaing to help me develop these and other libraries further. Stay Tunned! Andre Garzia PS: Whats wrong with Twitter?!?! Argh, they keep changing stuff... -- http://www.andregarzia.com All We Do Is Code. ___ 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: object beneath mouseLoc?
On 7/4/11 7:59 PM, Nicolas Cueto wrote: Well, my solution was to use Jacqueline's idea of polling all the controls for an if within. Also followed Dave Cragg's advice about mouseLoc (x,y) values. That's how my Klondike solitaire game worked too, using a flag if the mouse was down and the x,y coordinates passed by mouseMove. You asked about dozens -- it depends on where you are in the game. There are 52 playing cards in a deck and depending on how the card piles are arranged, I sometimes needed to poll most of them, especially if nothing had been played on any aces yet. Stack works fast. But on machines that are VERY old... It was fast back in 2002 when I wrote it in MetaCard too. The polling was never a problem. The mouseMove handler had to drag up to a dozen cards behind it if the user wanted to move a long pile to another column, and originally that part did lag a bit, you could see the line of cards sort of fan out behind the drag, but on today's machines that doesn't happen any more. The response is smooth. Klondike is uploaded to OnRev if you want to look, but it sounds like you've got it figured out now. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com ___ 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