Join Today
+ Reply to Thread
Page 2 of 5 FirstFirst 12345 LastLast
Results 11 to 20 of 48
Like Tree12Likes

Thread: APP: Lua and Perl

  1. #11
    Join Date
    Jan 2008
    Location
    Romania
    Posts
    788

    Default

    Those are interpreters for certain types of scripts.

    Some links:
    http://en.wikipedia.org/wiki/Command_line_interpreter
    http://en.wikipedia.org/wiki/Interpreter_(computing)

    Hope you can understand from there
    Last edited by BruceLee; 07-20-2008 at 08:04 AM.

  2. #12
    Join Date
    Jan 2008
    Location
    Romania
    Posts
    788

    Default Scribi main post: description and download:

    I'm really interested by this app so i've improved the main bash script which runs the interpreters... I have no other scripts than bash so i've tested only with that but it must run with the others too.

    UPDATE 5

    UPDATE 5:
    + Improved Bash
    + Added Python support
    UPDATE 4:
    + Improved JavaScript
    UPDATE 3:
    + Added JavaScript support
    UPDATE 2:
    + Added PHP support
    + Added eKonsole Support
    + Fixed error caused by pressing [Cancel] when choosing interpreter from list
    UPDATE 1:
    + Fixed streched icon




    DOWNLOAD
    (It's not zipped only renamed)



    When you'll click on the app in the main menu you'll get a window saying which extensions are supported. You'll also be able to choose to open the integrated ekonsole or to change settings



    If you choose [Settings] you'll be able to select the opening mode of the scripts.
    [GUI] (that means you won't be able to see the output - echo - of the script but it will be logged in /mmc/mmca1/scribi.log. The log file will be overwritten every time you run a script in GUI mode)
    [eKonsole] (this means scripts will be opened with ekonsole so the output text will be visible and no log will be created)
    As you can see in the image there is mentioned the current setting of the app.



    To open a script with scribi goto to it and make a long click so that the menu appears and select Open With



    Now select scribi and also select Always use this program to open this filetype



    Now you'll get a window with 3 options which asks you if you want to execute the script
    Options: [Yes] [No] [Edit] (it might not be so visible because of the skin i use)
    So you can also edit the script with this (it uses yan0_notes)


    By clicking [Edit] you'll get something like this


    By clicking [Yes]
    If the app is set to GUI:
    A Loading, please wait... message will appear and will stay there until the script is finished running


    As you can see while the script is running the message is still there in background


    After the script is finished the Loading message dissapears too. (i made it so you know when the script is done - since most of them are offering just functionality and no graphic interface to help us know when the script stopped)

    If the script is set to eKonsole:
    The integrated eKonsole will open but not automaticaly run the script as i didn't figure out how to do it


    In the bottom-right combo box are located all the supported interpreters but the first element contains the entire command neccessary for running your script. Select it by clicking on it.


    Now you have to click once on the middle of the screen so that the combo box becomes deselected.
    (check the combo box background color difference - before and after the click on the middle of the screen)


    Next you have to open the keyboard and press [ENTER] or directly click the middle button of the phone's joystick so that the script gets executed.


    After the script is executed (example in the next screenshot) you can do whatever you want, most probably exit ekonsole.



    If you want to open a script which has another extension than it should have and you don't want to rename it you can still open it with Scribi. Let's say your file is .wtf


    Do the same thing with open with and you'll get a window where you'll be able to choose [Open With] or [Cancel]


    By clicking on [Open With] you'll get a list and you'll be able to choose which interpreter you want, or you can also choose to edit the file.




    There is no case sensitive problem with Scribi since the script recognises a script.lua but also recognises another file called script.LUA or even one like script.LuA. (notice the extension difference)

    Maybe you'll ask why have i integrated ekonsole in this app and i didn't use the already installed ekonsole (which i supose everybody has).
    Well the answer is simple:
    Every time you run a script through Scribi the ekonsole config file is overwritten so your settings get erased and i do believe that's not a pleasant view.

    Why is the config overwritten?
    Because that's how the script get's the neccessary command for the script to be interpreted into the nice combo box from ekonsole.



    KNOWN BUG:
    The file name and the folders that contain it must NOT contain any blank spaces in their names!!




    DOWNLOAD
    (It's not zipped only renamed)


    Credits:
    puppetshow.....Adapted the interpreters
    redice.............Adapted JavaScript (TOPIC)
    Bruce Lee........Made the entire interface


    .
    Attached Thumbnails Attached Thumbnails APP: Lua and Perl-20080720032939.png   APP: Lua and Perl-20080720032957.png   APP: Lua and Perl-20080720033012.png   APP: Lua and Perl-20080720033024.png   APP: Lua and Perl-20080720035831.png  

    APP: Lua and Perl-20080720042240.png   APP: Lua and Perl-20080720042249.png   APP: Lua and Perl-20080720070000.png   APP: Lua and Perl-20080720070041.png  
    Attached Files Attached Files
    Last edited by BruceLee; 08-02-2008 at 09:33 PM. Reason: UPDATE

  3. #13

    Default

    Sweet! Great that you improved it, now it'll become a lot more usable (it could replace the standard loader?).
    Btw, maybe an option that would start eKonsole with this script open? It'd be even better
    abokamel likes this.

  4. #14
    Join Date
    Jan 2008
    Location
    Romania
    Posts
    788

    Default

    yes it could replace the standard lin/sh loader but i think that's not necessary.
    i don't know about the ekonsole thing... i'll see what i can do... who knows maybe it's possible


    edit:
    DOWNLOAD available in my previews post
    Last edited by BruceLee; 07-27-2008 at 02:52 PM.

  5. #15
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,255

    Default

    nice work guys

    Hit the donate button if you found this site useful

  6. #16

    Default

    grt work

  7. #17
    Join Date
    Feb 2008
    Location
    Auburn,NY
    Posts
    1,047

    Default

    Thanx Bruce because I had trouble understanding wat this does but thanx to ur examples I understand it better

    Phone:Sony X1i Silver Limited Edition running @ 710mhz
    Rom: Dynamics GTX 2.2.0 W7U Edition(21689)
    DualBoot: Android 2.1 ,2.2, and 2.3

  8. #18
    Join Date
    Apr 2008
    Location
    KualaLumpur, MY
    Posts
    141

    Default

    @ bruce
    perfect tutorial i'd say, thx..

  9. #19
    Join Date
    Jan 2008
    Location
    Romania
    Posts
    788

    Default

    Now if anybody has any ideea on how could we start ekonsole and automaticaly run a certain script, or at least run automaticaly a command that would be great

    @puppetshow
    Waiting for other interpreters. Just post them here and i'll add them in the pkg.

    Damn i can't wait to see a working php interpreter in my phone.
    Last edited by BruceLee; 07-20-2008 at 06:06 PM.

  10. #20

    Default

    Do I have a gift for you?
    Please note that it's very minimal build, most of fancy functions (like database support, xml support and so on) has been disabled.

    http://nomicon.pl/php.7z

    Enjoy!

    btw, would some moderator be so nice and merge somehow this topic and Scribi topic? I see most of discussion is here
    Or at least rename this to "Scribi topic", please?


 
+ Reply to Thread
Page 2 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. How I Can Install Python or Perl in A1200
    By KASRA in forum A1200 General Chat
    Replies: 23
    Last Post: 01-04-2009, 10:35 AM
  2. need perl compiler on a1200
    By m41d3n in forum Development
    Replies: 2
    Last Post: 03-17-2008, 09:11 AM
  3. Can Perl b used for dev E6 application...?
    By sridi in forum E6 General Chat
    Replies: 4
    Last Post: 02-01-2008, 07:36 AM
  4. Q: Need something for perl and c++ scripts??
    By m41d3n in forum A1200 General Chat
    Replies: 1
    Last Post: 01-23-2008, 09:32 PM
  5. Perl on E680 ?
    By tt930 in forum E680 General Chat
    Replies: 1
    Last Post: 05-04-2005, 07:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1