Search found 1091 matches

by LCMark
Tue Sep 15, 2020 5:46 pm
Forum: Engine Contributors
Topic: the microseconds
Replies: 20
Views: 1578

Re: the microseconds

Twenty years down the road now, "the milliseconds" is no longer granular enough for accurate timing of events. Profiling code, for instance, has to rely on averaging multiple runs in order to get anything resembling real command timing. I'm not sure that has changed has it? :D Multiple (average) ru...
by LCMark
Wed Sep 09, 2020 6:52 pm
Forum: LiveCode Builder
Topic: Trying to wrap my head around LCB
Replies: 28
Views: 1844

Re: Trying to wrap my head around LCB

I can pretty much guarantee that you are getting the Pause and Resume notifications when you should (at least at the LCB level) - the engine uses the same lifecycle events to pause and resume things like sound, video, sensor tracking and such - and that definitely works correctly. The screen not upd...
by LCMark
Tue Sep 08, 2020 1:29 pm
Forum: LiveCode Builder
Topic: Trying to wrap my head around LCB
Replies: 28
Views: 1844

Re: Trying to wrap my head around LCB

@Opaquer: The two parameters to AndroidRegisterLifecycleListener are 'handler references' (akin to function pointers in C - when you evaluate a handler identifier it returns a value which can later be used to execute the handler specified). The signature of those handlers has to match exactly (they ...
by LCMark
Fri Aug 28, 2020 9:39 am
Forum: LiveCode Builder
Topic: Widgets - Point is within Path? Non-Rect shapes?
Replies: 3
Views: 490

Re: Widgets - Point is within Path? Non-Rect shapes?

@PaulDaMacMan: There isn't a 'point within a path' syntax, but you can do this with a relatively simple handler in LCB (this was written by Monte a while back): public handler hitTestPath(in pPoint as Point, in pPath as Path, in pStrokeWidth as Number, in pWithin as Boolean) \ returns Boolean -- cre...
by LCMark
Thu Aug 27, 2020 9:23 am
Forum: Bug Triage
Topic: Key commands not recognised
Replies: 10
Views: 838

Re: Key commands not recognised

@odysseus: commandKeyDown and escapeKey are events to be handled, not commands to be executed. i.e. on keyDown pKey answer "The user pressed" && pKey end keyDown on commandKeyDown pKey answer "The user pressed Cmd+" & pKey end commandKeyDown on escapeKey answer "The user pressed escape" end escapeKe...
by LCMark
Wed Aug 26, 2020 9:15 am
Forum: Talking LiveCode
Topic: Switch or If then else
Replies: 3
Views: 410

Re: Switch or If then else

Switch (over value) is as efficient, and perhaps slightly more efficient than a sequence of if/then/else ifs (although the difference is probably negligible until you to a very large number of cases - switch only evaluates the expression it is looking for once - i.e. eval of tStatus variable in your...
by LCMark
Fri Jun 19, 2020 4:20 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Encryption and SQLite
Replies: 13
Views: 2236

Re: Encryption and SQLite

@lohill: I took a quick look at your example stack - there are three things you need to do to make this work correctly (I think, at least). The first is to ensure you open the sqlite db in "binary" mode - pass "binary" as the third parameter when opening the db - this ensures that you can put in and...
by LCMark
Tue May 26, 2020 11:00 am
Forum: Bug Triage
Topic: x( 666) -> No error!
Replies: 5
Views: 692

Re: x( 666) -> No error!

This isn't a bug really just a side-effect of command call syntax which is: IDENTIFIER EXPR , ... , EXPR As an expression can be (EXPR), and the ( token doesn't need whitespace before it you have that: x(666) Means call x with argument 666 and x() Is a parse error as () is not a valid expression. ED...
by LCMark
Fri May 15, 2020 11:48 am
Forum: Databases
Topic: SQLite Database BLOB is identified as STRING
Replies: 3
Views: 886

Re: SQLite Database BLOB is identified as STRING

@n.allan: The sqlite driver originated with SQLite2 which did not support binary data... This meant that binary data had to be explicitly encoded as text and then decoded (when using the *b). If your database is coming from another source (i.e. not made with LC's sqlite driver) then you need to do: ...
by LCMark
Thu May 14, 2020 3:38 pm
Forum: LiveCode Builder
Topic: Script Objects and Calling Back the Stack/Engine
Replies: 6
Views: 1878

Re: Script Objects and Calling Back the Stack/Engine

ScriptObjects are weak references to the object you create it from - so they don't change, just become invalid if the (script) object is deleted. It sounds like the API you are using only sends a callback once... Maybe you have to re-register the callback each time you want one? (A bit like the way ...
by LCMark
Tue May 12, 2020 6:04 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: running in background
Replies: 25
Views: 3943

Re: running in background

@trevix: Yes this is currently a hook which is only accessible from LCB. It was motivated by both your FLIC button library (so that we could make it work the same as iOS), and by the barcode scanner where we now use a device's light sensor to perform 'auto' torchMode. (Android strongly suggests that...
by LCMark
Fri May 01, 2020 9:38 am
Forum: Android Deployment
Topic: App fails to launch when downloaded
Replies: 7
Views: 1555

Re: App fails to launch when downloaded

@Trevix: Panos has found the problem I think - your device (by the model number you mentioned) appears to be this https://www.gsmarena.com/asus_zenfone_2_ze551ml-6917.php - which has an Intel Atom processor... Which will be either x86 or x86-64 (I'm not sure which). (That being said I did think x86/...
by LCMark
Tue Apr 21, 2020 8:52 am
Forum: Android Deployment
Topic: no internet on Android via Browser widget
Replies: 6
Views: 1072

Re: no internet on Android via Browser widget

@Bevan: Try making sure you are using `https` URLs in your app - newer Android devices are secure-by-default which means they disallow access to HTTP urls (the same as iOS has done since iOS7 or so).
by LCMark
Sun Apr 19, 2020 8:48 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: LC Community and Community + requirements
Replies: 7
Views: 861

Re: LC Community and Community + requirements

@anmldr: Yes - both Community and Community Plus both require that you make your source-code available if you distribute stacks / apps built with them. As Richard points out they are not variants of the same license: Community is GPLv3; Community Plus is a modified version of our commercial license ...
by LCMark
Sun Apr 19, 2020 8:41 am
Forum: Talking LiveCode
Topic: FrontScript message path confusion
Replies: 9
Views: 1212

Re: FrontScript message path confusion

@trevix: You have a frontscript which does: on ReceiveSomething doThis end ReceiveSomething Then doThis is implemented in a behavior which is attached to a button in another stack. Unless the button with this behavior is the target of the 'ReceiveSomething' message, then 'DoThis' is not in the messa...

Go to advanced search