Tag Archives: RunRev

A One-Liner to Keep Track of User Preferences in LiveCode

I have kept this a secret for a long time, but after using this in many projects, it is now time to publish my user preferences library for LiveCode/Revolution.

Below follow the scripts without comments. I will write more about it in a future blog post.

function saveGlobalsToVar theGlobals
  do “global” && theGLobals
  put theGlobals & return into tempVar
  repeat for each item x in theGlobals
    do “put urlEncode(” & x & “) & return after tempVar”
  end repeat
  return tempVar
end saveGlobalsToVar

on readVarToGlobals theVar
     — breakpoint
     put line 1 of theVar into myGlobals
     delete line 1 of theVar
     do “global” && myGlobals
     repeat with x = 1 to number of items of myGlobals
          put “put urlDecode(line x of theVar) into” && item x of myGlobals into myScript
          do myScript
     end repeat
end readVarToGlobals

on writePrefs theGlobals,thePrefsFilename
  put saveGlobalsToVar(theGlobals) into myPrefs
  put prefsFile(thePrefsFilename) into myPrefsFile
  set the filetype to “sysppref”
  open file myPrefsFile for binary write
  write compress(myPrefs) to file myPrefsFile
  close file myPrefsFile
end writePrefs

on readPrefs thePrefsFilename
  put prefsFile(thePrefsFilename) into thePrefsFilename
  if there is a file thePrefsFilename then
    open file thePrefsFilename for binary read
    read from file thePrefsFilename until EOF
    close file thePrefsFilename
    put decompress(it) into myPrefs
    — put myPrefs
    readVarToGlobals myPrefs
  else
    return “Error: File does not exist.”
  end if
end readPrefs

function prefsFile theFilename
     if gU3App is true then
          put $u3_app_data_path & slash & theFilename into myFilePath
          replace backslash with slash in myFilePath
     else if the platform is “MacOS” then
          put specialFolderpath(“preferences”) & “/” & theFilename into myFilePath
     else if the platform is “win32” then
          put specialFolderpath(26) & “/” & theFilename & “.ini” into myFilePath
     else if the platform is “Linux” then
          put $HOME & slash & dot & theFilename into myFilePath
     else
          put stackToFilename(theFilename) into myFilePath
     end if
     return myFilePath
end prefsFile

Economy-x-Talk releases Installer Maker Plugin 1.4 for LiveCode 4.5

Economy-x-Talk is pleased to announce the release of a new version of the Installer Maker Plugin for Runtime Revolution/LiveCode. The Installer Maker Plugin is a tool to quickly wrap your standalone applications in an installer for Mac OS X or Windows. This new version provides improved 64 bit compatibility (currently being tested) and compatibility with LiveCode 4.5.

Screen_shot_2010-09-27_at_16

The Installer Maker Plugin is a tool to build installers for Windows and Mac OS X from your LiveCode standalones. Wrapping a standalone in an installer is just a matter of minutes. There are also special options available, which allow you to include a Read Me file, to start your programme automatically after installation and more.
The current version works fine on Mac OS X and Windows and is being tested on Linux. We expect to release a new version with Linux compatibility at the end of the year 2010.

A license cost 39 euro (approximately 50 dollar). There won’t be a trial version, but we will provide ample instructions, pictures and videos. A video tutorial is available here. You are always welcome to send e-mails with questions about Installer Maker.

For more information, including downloads, please visit http://qurl.tk/ce .

A few more important links for Installer Maker users:

Contact: http://qurl.tk/du
Installing the plugin: http://qurl.tk/hv
Making an installer1: http://qurl.tk/hu
Quick Guide: http://qurl.tk/hw

(Currently, the 1.4 version still shows the 1.2 version number. We will release version 1.4.1 very soon and we promise that it will display the correct version number).

Web installer for the Installer Maker Plug-in

Economy-x-Talk has created a web version of the Installer Maker Plug-in installer. To install the plug-in, all you need to do is download a 60K stack and open it in Revolution. This stack can be downloaded here.

Use the Installer Maker Plug-in to wrap your Revolution standalones in an installer for Windows (XP, Vista, 7) and Mac OS X (10.3 and later). This installer maker provides several additional options and features, including multiple languages and an uninstaller.

Screen_shot_2010-08-24_at_23

Wrapping a standalone in an installer is just a matter of minutes. There are also special options available, which allow you to include a Read Me file, to start your programme automatically after installation and more.
Note that you can use the Installer Maker Plug-in for RunRev standalones, but also for any other software.

The Economy-x-Talk home page http://economy-x-talk.com contains tutorials and additional information. Contact us if you have any questions.

Speakable Password Generator

Here’s a script, which I just posted to the Revolution forum. I post it on my blog, because I like the script and it might be useful to many people. It should also be simple to translate this to PHP for instance.

This script generates passwords with length theLength, choosing consonents and vowels semi-randomly such as to keep the password speakable. This function allows for double consonants while still keeping the password speakable.

 

function speakablePassword theLength
     put “bcdfghjklmnprstwyz” into myConsonants
     put “aeiou” into myVowels
     put “” into myPass
     repeat myPasswordLength
          if char -1 of myPass is in myConsonants then
               if char -2 of myPass is in myConsonants or
                  length(myPass = 9) then
                    put any char of myVowels after myPass
               else
                    if any item of “true,false” then
                         put any char of myVowels after myPass
                    else
                         put any char of myConsonants after myPass
                    end if
               end if
          else
               put any char of myConsonants after myPass
          end if
     end repeat
     return myPass
end speakablePassword

How to set up shortcuts with the Installer Maker Plugin for Runtime Revolution?

A few days ago, Economy-x-Talk’s support department received a question about creating shortcuts with the Installer Maker Plugin for Runtime Revolution. More specifically, a user of the plug-in asked how to set up the installer as to create shortcuts in the start menu and on the desktop. Here’s the answer.

To add shortcuts to the Start menu on Windows, follow the following steps after you have added all necessary files:
1) go to the Special section
2) select the Start Menu tab button on the Special section
3) drag any file (e.g. the main executable file) from the list on the left into the list on the right

If you want to have a shortcut on the desktop, follow the following steps.
1) go to the Special section
2) select the Aliases tab on the Special section
3) drag a file (e.g. the main executable) from the list on the left into the top field on the right
4) make sure that the file in the top field is selected (hilighted)
5) now choose Desktop from the option menu button in the middle of the window, next to the Set button
6) you can leave the field below the option menu button empty and press the Set button

With these settings the installer will create shortcuts inside a folder in the Start menu as well as on the desktop.

Download the Installer Maker plugin for Runtime Revolution here

From 15th August, we’ll have time for new projects! Be the first in line and contact me now!

How to create an installer with Runtime Revolution?


This tutorial shows how to create an installer from your RunRev standalone. We use our Installer Maker plugin to wrap your RunRev standalone in an installation package, which runs as an independent programme.

You can read more about the Installer Maker plugin for Runtime Revolution and download your own copy here.

Installer Maker Plugin for Runtime Revolution

Economy-x-Talk has been working on an Installer Maker Plugin for Runtime Revolution. Today, this product is making it’s first careful steps into the world.

The Installer Maker Plugin is a tool to build installers for Windows and Mac OS X from your Revolution standalones. Wrapping a standalone in an installer is just a matter of minutes. There are also special options available, which allow you to include a Read Me file, to start your programme automatically after installation and more.

Picture_425

This is version 1.0 of the Insntaller Maker. There are still a few issues we need to work on, but in it’s current form it should definitely be an interesting product for Runtime Revolution users. The current version works fine on Mac OS X and is being tested on Windows.

Licenses are going to cost 39 euro (approximately 50 dollar). With this product, you will streamline that last part of your production flow: preparing for distribution. Now, you can do it all with one and the same tool: your Runtime Revolution IDE.

There won’t be a trial version, but we will provide ample instructions, pictures and videos. You are always welcome to send e-mails with questions about Installer Maker.

There isn’t even a web store for this freshman yet. If you would like to obtain a license for Installer Maker, please go to http://economy-x-talk.com/contact.html and send an e-mail.

Please, keep an eye on this blog. Soon, we will be posting a user manual and tutorials.

Installer Maker can be downloaded directly from http://qurl.tk/c3

CSV to Tab conversion with RunRev

The csv to tab delimited conversion script, which I just posted on the Revolution Use List. I post it here just in case it is useful to someone. This script doesn’t take returns and tabs inside cells in consideration.

function csv2tab theData
    repeat for each line myLine in theData
         repeat for each word myWord in myLine
              if char 1 of myWord is quote and (char -2 of myWord is
               quote or char -1 of myWord is quote) then
                   replace comma with “<#>” in myWord
              end if
              put myWord after myNewData
         end repeat
         put cr after myNewData
    end repeat
    replace comma with tab in myNewData
    replace “<#>” with comma in myNewData
    return myNewData
end csv2tab

List of RunRev Tutorials

My updated list of Revolution tutorials and tips.

http://h.webring.com/hub?ring=runtimerevoluti1
http://revolution.byu.edu/indexgeneric.php (wow!)
http://www.runrev.info
http://www.altuit.com/webs/altuit2/RunRev/Tutorials.htm
http://www.revjournal.com/tutorials/
http://www.sosmartsoftware.com/?r=revolution_didacticiels&l=en
http://support.runrev.com/scriptingconferences/
http://derbrill.de/developers.php?lang=en
http://ists.runrev.com/pipermail/use-revolution
http://runrev.com/downloads/all-downloads/full-list/
http://runrev.com/downloads/all-downloads/sast-code-examples/
http://www.runrev.com/developers/exploring-revolution
http://www.runrev.com/developers/tutorials
http://tactilemedia.com/site_files/software/tutorial_thumbs.html
http://www.hyperactivesw.com/Resources.html
http://www.sonsothunder.com/devres/revolution/revolution.htm
http://www.sanke.org/MetaMedia/
http://revclever.com/

Thanks to Judy Perry.
http://revined.blogspot.com/