Search found 1094 matches

by LCMark
Wed Dec 23, 2020 11:39 am
Forum: Android Deployment
Topic: mobileLockIdleTimer reported error on some device
Replies: 3
Views: 490

Re: mobileLockIdleTimer reported error on some device

@trevix: The mobileLockIdleTimer command cannot throw an error - so I think there is perhaps something wrong with the error collection somehow. More strange is the fact it is error code 624 - the latter is 'wait aborted' - from what I can see the only way that error could be generated on mobile is t...
by LCMark
Mon Dec 14, 2020 7:39 pm
Forum: Internet
Topic: Logic behind put URL or PUT URL into a variable
Replies: 27
Views: 2490

Re: Logic behind put URL or PUT URL into a variable

I have a feeling that this entire thread might have stemmed from a server-generated error rather than anything else... There is no real difference (that I can think of) between: put URL "..." into tURL answer tURL and put "..." into tURL put URL tURL into tContent answer tContent If a webserver gene...
by LCMark
Mon Nov 02, 2020 10:57 am
Forum: Internet
Topic: Browser widget does not suppüort WebGL2
Replies: 13
Views: 2880

Re: Browser widget does not suppüort WebGL2

@mwieder : From what I can find, what I last said on the topic was: CEFSimple works - yes - but IIRC CEFSimple is 'you embed what you want to do in CEF' - LC has to do the opposite - we embed CEF in LC and for some reason something screws that up in 'recent' Linux releases and we are not sure what u...
by LCMark
Tue Sep 15, 2020 5:46 pm
Forum: Engine Contributors
Topic: the microseconds
Replies: 21
Views: 3822

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: 3493

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: 3493

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: 911

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: 1434

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: 966

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: 2946

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: 1135

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: 1302

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: 2458

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: 5110

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: 2012

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/...

Go to advanced search