getting from exe to Livecode

FlexibleLearning admin at FlexibleLearning.com
Mon Jul 11 14:32:38 EDT 2011


Try...

on mouseUp
  answer file "Select a Standalone..."
  if it is "cancel" or it = "" then exit to top
  put url ("binfile:"&it) into tStack
  repeat forever
    -- there's more than one stackfile in there which is interesting
    put offset("#!/bin/sh",char 10 to -1 of tStack) into tOff
    if tOff = 0 then exit repeat
    put char tOff+9 to -1 of tStack into tStack
  end repeat
  ask file "Name the Stack..."
  if it is "cancel" or it = "" then exit to top
  set the fileType to "RevoRSTK"
  put tStack into url ("binfile:"&it)
  answer "Conversion finished" with "OK"
end mouseUp

>From the Scripter's Scrapbook

Hugh Senior
FLCo



Alistair Campbell wrote:

Hi,

I have just discovered, after numerous changes of my operating system
(finally settled on Ubuntu) for various reasons, that I have deleted (doh!)
my latest version of an application that I was working on. I did do backups
and archive and all the rest but these files were worked on in a rush and I
obviously forgot to put them where they needed to be for capture (damn and
blast). I usually also print out a hard copy of the scripts that I am
writing but, wouldn't you know it, I didn't do that this time.

I do, however, have a windows exe file of the last version which I (happily
enough) emailed to a student to use in his project. I bet you can see where
this is going. Can anyone tell me whether there is a straightforward (not
necessarily simple) way of reverse engineering the exe file so that I can
get at the scripts?

cheers

Alistair Campbell
Townsville 




More information about the use-livecode mailing list