DDE execute from LiveCode
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
DDE execute from LiveCode
I've got hold of a non Rev app that respond only to DDE execute command (with variables).
- As I understand LiveCode does not run DDE.
- The old Tuviah external collection is not available any more on the web.
- Using in LiveCode a do "this" as Vbscript does not work because VBScript does not support DDE (http://msdn.microsoft.com/en-us/library/30593abb.aspx).
Is there any way I can run DDE execute from LiveCode ? (I need "execute" only, no other DDE command...)
Thanks
Trevix
- As I understand LiveCode does not run DDE.
- The old Tuviah external collection is not available any more on the web.
- Using in LiveCode a do "this" as Vbscript does not work because VBScript does not support DDE (http://msdn.microsoft.com/en-us/library/30593abb.aspx).
Is there any way I can run DDE execute from LiveCode ? (I need "execute" only, no other DDE command...)
Thanks
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
Re: DDE execute from LiveCode
Hi Trevix,
since I seldom trash things, I till have a copy of Tuviahs external collection for Windows!
Drop me line privately: klaus AT major-k.de
But I cannot guarantee that it will still work with the latest LiveCode versions.
Best
Klaus
since I seldom trash things, I till have a copy of Tuviahs external collection for Windows!

Drop me line privately: klaus AT major-k.de
But I cannot guarantee that it will still work with the latest LiveCode versions.
Best
Klaus
Re: DDE execute from LiveCode
I've often wondered if Livecode had some kind of DDE (dynamic data exchange) equivalent.
Since LC does not do multi-threading, maybe a separate executable could be used as a thread. But to do so would require some means of communication.
If nothing else the controlling executable could write instructions to a file, where the client executable would check periodically. Anything better than this to simulate multi-threading?
Since LC does not do multi-threading, maybe a separate executable could be used as a thread. But to do so would require some means of communication.
If nothing else the controlling executable could write instructions to a file, where the client executable would check periodically. Anything better than this to simulate multi-threading?
Re: DDE execute from LiveCode
I've used both the shell and process functions to spawn tasks out to python or other executables. But the real problem with simulating multi-threading is simulating mutexes and handling parallelism. You can also use socket communications for threading - I do this by encapsulating the calling handler in the response packet so I can match up the asynchronous replies.
Re: DDE execute from LiveCode
Thanks Mark. Wow-- great answer! I had to look up mutexes.
(Mutex) Mutual exclusion (often abbreviated to mutex) algorithms are used in concurrent programming to avoid the simultaneous use of a common resource. An object in a program that serves as a lock, used to negotiate mutual exclusion among threads
Re: DDE execute from LiveCode
I forgot to mention that reentrancy can also be a problem. None of these are LiveCode problems per se, but just some of the joys of multithreading.
Re: DDE execute from LiveCode
Reentrancy? Another word I'm not familiar with.
A computer program or subroutine is called reentrant if it can be interrupted in the middle of its execution and then safely called again ("re-entered") before its previous invocations complete executing.
A subroutine that is directly or indirectly recursive should be reentrant. This policy is partially enforced by structured programming languages. However a subroutine can fail to be reentrant if it relies on a global variable to remain unchanged but that variable is modified when the subroutine is recursively invoked.
Re: DDE execute from LiveCode
The basic idea is that if you call a multithreaded function from one place and then call it again or call it from another place, you don't want to overwrite variables that are still in use... much gnashing of teeth and tearing of hair ensues.
Re: DDE execute from LiveCode
(Somehow my previous answer to Klaus did not get trought...)
Anyway, thanks Klaus: it still works with LiveCode 4.6.4.
Problem is that I cannot get/buy a licence since the web site does not exist and the recurring dialog is intrusive.
Anybody knows about it ? Wasn't the licence supposed to be free ? (http://www.mail-archive.com/metacard@li ... 03822.html)
As for how I use it, with my limited experience, in case it is of anyone interest:
I need to work with FileMaker GO (on iPad), a FileMaker on a PC as server and an accounting third party application that understand only DDE execute (saving text file to HD) on the same PC.
FileMaker GO on iPad does not do DDE (as FileMaker does). So...
- I send an URL from the iPAD to a LiveCode application (sockets). The filemaker has a loop and the record get locket until it get an answer or time expire.
- The LiveCode app receive the URL, fire the DDE (that I believe freeze the script during execution) and read the data from disk written by the accounting app
- LiveCode return to a FileMaker Web Viewer the collected data. Fm acts accordingly and unlock the record.
To me, at first sight, it seemed too complex but...it works: it is pretty fast over an intranet (1 sec to get a record) and in this way I can even print from the iPAD on the network printer (firing a script from LiveCode App to the FM on the PC)
Regards
Trevix
Anyway, thanks Klaus: it still works with LiveCode 4.6.4.
Problem is that I cannot get/buy a licence since the web site does not exist and the recurring dialog is intrusive.
Anybody knows about it ? Wasn't the licence supposed to be free ? (http://www.mail-archive.com/metacard@li ... 03822.html)
As for how I use it, with my limited experience, in case it is of anyone interest:
I need to work with FileMaker GO (on iPad), a FileMaker on a PC as server and an accounting third party application that understand only DDE execute (saving text file to HD) on the same PC.
FileMaker GO on iPad does not do DDE (as FileMaker does). So...
- I send an URL from the iPAD to a LiveCode application (sockets). The filemaker has a loop and the record get locket until it get an answer or time expire.
- The LiveCode app receive the URL, fire the DDE (that I believe freeze the script during execution) and read the data from disk written by the accounting app
- LiveCode return to a FileMaker Web Viewer the collected data. Fm acts accordingly and unlock the record.
To me, at first sight, it seemed too complex but...it works: it is pretty fast over an intranet (1 sec to get a record) and in this way I can even print from the iPAD on the network printer (firing a script from LiveCode App to the FM on the PC)
Regards
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
Re: DDE execute from LiveCode
Anybody knows how to solve the license problem with the old Tuviah external collection ?
Is this guy still around ? (He was working at Revolution, for what I know..)
Sorry to bother, but like this it is useless...!
Thanks
Trevix
Is this guy still around ? (He was working at Revolution, for what I know..)
Sorry to bother, but like this it is useless...!
Thanks
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
Re: DDE execute from LiveCode
Buongiorno Trevix,
just write to support@runrev.com and explain the situation!
I am sure they will be able to help you and I bet the license is still free after all these years.
Best
Klaus
just write to support@runrev.com and explain the situation!
I am sure they will be able to help you and I bet the license is still free after all these years.
Best
Klaus
Re: DDE execute from LiveCode
The MetaCard license is indeed still free, but RunRev/LiveCode now owns the rights to the engine. So while you can still use MetaCard without problems, if you want to use newer versions of the engine you will have to get a more recent version of LiveCode, register it in order to activate it, and then you can use it in the MetaCard environment.. That whole process is actually easier now than it used to be. And you might want to check out the MetaCard forum here.
Re: DDE execute from LiveCode
I am not sure to understand what you mean, mwieder.
- I already own a 4.6.4 LiveCode desktop commercial licence (you mean it is enough for me to upgrade to LiveCode 5.0, in order to make the extension work ?)
- I don't know MetaCard and I do not intend to use it. I only need to use this DDE external made by Tuviah, that works fine with LiveCode but is sometime blocked by a specific external licence request.
- I did not find any reference to my problem on the MetaCard forum
Can you please explain me what you ment. (Sorry for my dumbness...)
Trevix
- I already own a 4.6.4 LiveCode desktop commercial licence (you mean it is enough for me to upgrade to LiveCode 5.0, in order to make the extension work ?)
- I don't know MetaCard and I do not intend to use it. I only need to use this DDE external made by Tuviah, that works fine with LiveCode but is sometime blocked by a specific external licence request.
- I did not find any reference to my problem on the MetaCard forum
Can you please explain me what you ment. (Sorry for my dumbness...)
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
Re: DDE execute from LiveCode
Hi friends,
Babel?
Mark, we are talking about the license for the "Externals collection" of Tuviah, not for MetaCard or anything else.
Trevix, write to support@runrev.com!
Best
Klaus
Babel?

Mark, we are talking about the license for the "Externals collection" of Tuviah, not for MetaCard or anything else.
Trevix, write to support@runrev.com!
Best
Klaus
Re: DDE execute from LiveCode
Thanks, I've already done it:
Trevix
Guess I will have to wait...Thank you for your request.
I do have a copy of these externals, but I don't appear to have any license for
them. I'm passing this query on to Tuviah, possibly he can help you.
Regards,
Heather
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>