Search found 259 matches

by PaulDaMacMan
Fri May 29, 2020 1:38 am
Forum: LiveCode Builder
Topic: Script Objects and Calling Back the Stack/Engine
Replies: 6
Views: 1349

Re: Script Objects and Calling Back the Stack/Engine

So I tried making a buffer that I can pull waiting messages from in a "send in time" loop in LCS. It works well enough for a bit, you can see my "send checkMIDIin" loop picking up MIDI note messages from another app and putting them into a text field while in the background, if I don't play too fast...
by PaulDaMacMan
Tue May 19, 2020 3:49 am
Forum: Making IDE Plugins
Topic: Creating a Graphic via a Plugin
Replies: 12
Views: 1577

Re: Creating a Graphic via a Plugin

I use message box a lot to help me debug, and then comment them out later once things are working, like this: put the long name of the topstack into t_stack --<-- the long name could do the trick put t_stack & cr --- <-- comment out later put the cardids of t_stack into t_cards -- <-- notice that I ...
by PaulDaMacMan
Fri May 15, 2020 7:21 pm
Forum: LiveCode Builder
Topic: Script Objects and Calling Back the Stack/Engine
Replies: 6
Views: 1349

Re: Script Objects and Calling Back the Stack/Engine

If I just "Post" with [tStatusbyte, tByteA, tByteB], WITHOUT providing any Target ScriptObject, from within my ReadProcBlock then the MIDin handler in my Stack's Script receives all the messages, even when the Engine/Stack is not the foreground app. That works sort of, it still crashes the engine wh...
by PaulDaMacMan
Thu May 14, 2020 5:46 pm
Forum: LiveCode Builder
Topic: Script Objects and Calling Back the Stack/Engine
Replies: 6
Views: 1349

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 PaulDaMacMan
Thu May 14, 2020 3:26 pm
Forum: LiveCode Builder
Topic: Script Objects and Calling Back the Stack/Engine
Replies: 6
Views: 1349

Re: Script Objects and Calling Back the Stack/Engine

What happens if you capture ‘the caller’ rather than evaluating “this stack”? Do your callbacks work as expected? When I put the caller into sTarget, sTarget then points to the button in my stack that calls the Client Create LCB handler, but it behaves similar. It only fires once from the backgroun...
by PaulDaMacMan
Wed May 13, 2020 11:33 pm
Forum: LiveCode Builder
Topic: Script Objects and Calling Back the Stack/Engine
Replies: 6
Views: 1349

Script Objects and Calling Back the Stack/Engine

I have an LCB handler in a library that Posts back to the engine, passing 3 parameters to an LCS handler in a Stack Script... The ScriptObject to send to is set-up during initialization of the LCB library and stored in a global scoped variable... The problem is that the Stack Script LCS handler only...
by PaulDaMacMan
Tue May 05, 2020 3:53 am
Forum: Android Deployment
Topic: App fails to launch when downloaded
Replies: 7
Views: 1063

Re: App fails to launch when downloaded

(That being said I did think x86/-64 powered android phones could run ARM apps under emulation - but maybe that depends on the device.) I few years back when I messing around with Android builds I got the idea to use Android X86/X86_64 builds (such as BlueStacks, AndroidX86) because Android SDK's (...
by PaulDaMacMan
Tue Apr 28, 2020 8:59 am
Forum: LiveCode Builder
Topic: Community widgets
Replies: 62
Views: 37052

Re: Community widgets

After just a quick view on this thread I can say that there is no way to use LC native controls (buttons, fields etc) in a widget, isn't it? Everything must be "designed" on the go, am I right? Can someone give me some hints about this? Correct, in pure LCB (IE without using Foreign Function Interf...
by PaulDaMacMan
Thu Apr 16, 2020 2:10 am
Forum: LiveCode Builder
Topic: Getting started with Java bindings
Replies: 12
Views: 1412

Re: Getting started with Java bindings - Solved

Thanks Paul. You solved it. I had - Standalone App Settings > Inclusions > Search for required inclusions When I changed it to - Standalone App Settings > Inclusions > Select inclusions, and manually selected my new library It worked fine on my Android device. I should have thought of that. Doh! Th...
by PaulDaMacMan
Thu Apr 16, 2020 1:50 am
Forum: Mac OS
Topic: Re: Windows -> MacOS : file format ? [SOLVED]
Replies: 32
Views: 2321

Re: Windows -> MacOS : file format ?

As a test I just copied the Mac OS (Mohave 10.4.x) app/bundle TexEdit.app to an NTFS formatted drive shared from a Windows server over SMB file sharing and it launched on the Mac from there without a problem.
by PaulDaMacMan
Thu Apr 16, 2020 1:43 am
Forum: Mac OS
Topic: Re: Windows -> MacOS : file format ? [SOLVED]
Replies: 32
Views: 2321

Re: Windows -> MacOS : file format ?

I thought some Windows setups could preserve things like the executable bit, like the way that some WinNT servers supported the classic Mac OS 9 resource forks back in the day? And there's software like "MacDrive" for Windows that let you use Mac HFS+ formatted drives in Windows, as well as other so...
by PaulDaMacMan
Tue Apr 14, 2020 11:20 pm
Forum: LiveCode Builder
Topic: Getting started with Java bindings
Replies: 12
Views: 1412

Re: Getting started with Java bindings

Thanks Paul. Try & Catch don't seem to have been implemented in LCB. They don't appear in the dictionary and I get a compile error if I try to use them. I haven't worked with Log before. I've tried a few things, based on what I read in the dictionary, but I can't work out how to output what has bee...
by PaulDaMacMan
Mon Apr 13, 2020 8:43 pm
Forum: LiveCode Builder
Topic: External Dev Kit vs LiveCode Builder
Replies: 3
Views: 600

Re: External Dev Kit vs LiveCode Builder

Hey Paul, Good to hear you found undocumented stuff, pretty much what I live for doing myself haha :D I've found a dev blog post talking about the additions to the API which were apparently added to work around problems using CoreMIDI with Swift 1.x It seems the returned data has also changed, sinc...
by PaulDaMacMan
Mon Apr 13, 2020 3:09 am
Forum: LiveCode Builder
Topic: External Dev Kit vs LiveCode Builder
Replies: 3
Views: 600

Re: External Dev Kit vs LiveCode Builder

Well of course I got it working right after I posted, smdh! Screen Shot 2020-04-12 at 9.41.37 PM.png I can see (screenshot) the callback firing and being logged along with the two elements of the MIDINotification struct. Yeah! In fact it seems it's firing 4 times, I guess once for each MIDI source/...
by PaulDaMacMan
Mon Apr 13, 2020 12:15 am
Forum: LiveCode Builder
Topic: External Dev Kit vs LiveCode Builder
Replies: 3
Views: 600

External Dev Kit vs LiveCode Builder

Thanks to the Stay At Home campaign thingy I now have an Indy license for a year, I don't do any commercial development but I figured maybe I would help a little bit to pay some bills at the LC mothership... but since I did, does this entitle me to some extra support or something? I really would lik...

Go to advanced search