The Motorola Development Community


Go Back   MotorolaFans.com Forums > Motorola EZX Phones > E6 General Chat
Notices

E6 General Chat Motorola ROKR E6 is somehow a candybar version of the A1200 as they functions very similarly but with far more multimedia capabilities!

Reply

Moto Fans SENR

BruceLee's Avatar

Join Date: Jan 2008
Posts: 521
Thanks: 23
Thanked 134 Times in 81 Posts
Location: Romania

Quote  
#11
07-20-2008
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 09:04 AM.
Reply With Quote


User Information
Current Phone: ROKR E6
Firmware: R533_G_11.12.09P generic
Location: Romania

BruceLee is offlineReport Post
Moto Fans SENR

BruceLee's Avatar

Join Date: Jan 2008
Posts: 521
Thanks: 23
Thanked 134 Times in 81 Posts
Location: Romania

Quote  
#12
07-20-2008
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 Images
         
Attached Files
File Type: zip scribi.pkg.zip (3.12 MB, 72 views)

Last edited by BruceLee; 08-02-2008 at 10:33 PM. Reason: UPDATE
Reply With Quote


User Information
Current Phone: ROKR E6
Firmware: R533_G_11.12.09P generic
Location: Romania

BruceLee is offlineReport Post
The Following 4 Users Say Thank You to BruceLee For This Useful Post:
abokamel (07-24-2008), KooNKHaR (07-20-2008), puppetshow (07-20-2008), Viper89 (07-20-2008)
MotoFans MODR

Join Date: Jul 2008
Posts: 105
Thanks: 4
Thanked 21 Times in 15 Posts
Location: Poland

Quote  
#13
07-20-2008
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
Reply With Quote


User Information
Current Phone: Motorola E6
Firmware: 11.12.09P
Location: Poland

puppetshow is online nowReport Post
The Following User Says Thank You to puppetshow For This Useful Post:
abokamel (07-24-2008)
Moto Fans SENR

BruceLee's Avatar

Join Date: Jan 2008
Posts: 521
Thanks: 23
Thanked 134 Times in 81 Posts
Location: Romania

Quote  
#14
07-20-2008
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 03:52 PM.
Reply With Quote


User Information
Current Phone: ROKR E6
Firmware: R533_G_11.12.09P generic
Location: Romania

BruceLee is offlineReport Post
The Resident Evil

g4m3rz's Avatar

Join Date: Feb 2007
Posts: 1,238
Thanks: 35
Thanked 118 Times in 75 Posts
Location: India

Quote  
#15
07-20-2008
Default

nice work guys
__________________

Hit the donate button if you found this site useful
Reply With Quote


User Information
Current Phone: Motorola A1200
Firmware: Amin's EE1
Location: India

g4m3rz is online nowReport Post
MotoFans JUNR

subha's Avatar

Join Date: Jul 2008
Posts: 98
Thanks: 0
Thanked 4 Times in 4 Posts
Quote  
#16
07-20-2008
Default

grt work
Reply With Quote


User Information
Current Phone: Motorokr E6
subha is offlineReport Post
MotoFans XPRT

Viper89's Avatar

Join Date: Feb 2008
Posts: 322
Thanks: 29
Thanked 15 Times in 13 Posts
Location: Auburn,NY

Quote  
#17
07-20-2008
Default

Thanx Bruce because I had trouble understanding wat this does but thanx to ur examples I understand it better
__________________
DEAR MR.TOLIET IM THE SHIT I GOT THESE OTHER HATERS PISSED CAUSE MY TOLIET PAPER THICK
Reply With Quote


User Information
Current Phone: E6, nokia 6682, sony w810i
Firmware: 11.12.09P Firmware with Autorun_linkSys_Silent camera_SmartAss
Location: Auburn,NY

Viper89 is online nowReport Post
MotoFans MODR

KooNKHaR's Avatar

Join Date: Apr 2008
Posts: 139
Thanks: 137
Thanked 25 Times in 14 Posts
Location: KualaLumpur, MY

Quote  
#18
07-20-2008
Default

@ bruce
perfect tutorial i'd say, thx..
__________________
Reply With Quote


User Information
Current Phone: ROKR E6 / ROKR Z6
Firmware: R535H10.22P + R535.09P [WM97XS]
Location: KualaLumpur, MY

KooNKHaR is offlineReport Post
Moto Fans SENR

BruceLee's Avatar

Join Date: Jan 2008
Posts: 521
Thanks: 23
Thanked 134 Times in 81 Posts
Location: Romania

Quote  
#19
07-20-2008
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 07:06 PM.
Reply With Quote


User Information
Current Phone: ROKR E6
Firmware: R533_G_11.12.09P generic
Location: Romania

BruceLee is offlineReport Post
MotoFans MODR

Join Date: Jul 2008
Posts: 105
Thanks: 4
Thanked 21 Times in 15 Posts
Location: Poland

Quote  
#20
07-20-2008
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 With Quote


User Information
Current Phone: Motorola E6
Firmware: 11.12.09P
Location: Poland

puppetshow is online nowReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:56 AM. Search Engine Friendly URLs by vBSEO 3.2.0 Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. VBulletin Skin by ForumMonkeys.