This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
BigSHinyToys's profile picture

[Advanced Computer] Mouse File Browser

Started by BigSHinyToys, 28 October 2012 - 02:24 PM
BigSHinyToys #1
Posted 28 October 2012 - 03:24 PM

Mouse File Browser 1.4


Mouse File Browser is public domain and open source.

so you can modify,distribute and use it in your OS's.


New to 1.4

config file and preferences system allows colors to be set by user. Will have options for custom items on the Open With right click menu in future vers this is currently possible by directly editing the config file. fixed bug with cut improved copy so it will rename if the file exists. removed right clicking making you go back click the back button from now on. Re-factored the right click menu making it easer to expand in the future.


Preferences user interface is under construction currently use arrow keys for navigation and click on the colors to chose them to save press enter and select yes


Updater

If you have a a ver Greater that 0.5c you can now automatically update by running "Browser -u"


Spoiler
Compatible with SelectOS by AnthonyD98™
Compatible with LyqydOS Beta/Development
Compatible with KilOS Open Pre-Alpha 2.3 - Multiuser support, a GUI file explorer and Sandboxing
Compatible with KREOS - The Operating System with full Mouse Support
Mouse File Browser would like to thank

Cruor
for a function that splits string with space or "" tags this alows mouse file browser to send commnds to the program with "" example

get randomNumbers "diak/this has a space/and this to.lua"
These will be correctly Broken into
three args

get
randomNumbers
diak/this has a space/and this to.lua
Stiepen irc(kilobyte)

For the copy paste kilOS integration and part of the rename system

Download Current stable
1.4
http://pastebin.com/pnzdr8FB

pastebin get pnzdr8FB Browser

Old vers of Mouse FB
Spoiler0.9
http://pastebin.com/vvvQHrz5

pastebin get vvvQHrz5 Browser
0.7
http://pastebin.com/UeLJnfBG

pastebin get UeLJnfBG Browser
0.5c
http://pastebin.com/MUbDvMMP

pastebin get MUbDvMMP Browser
0.5
http://pastebin.com/hWDGmVt6

pastebin get hWDGmVt6 Browser
0.4b
http://pastebin.com/i8UCtsFu

pastebin get i8UCtsFu Browser
0.2b
http://pastebin.com/LD5UqADP

pastebin get LD5UqADP Browser
0.2
http://pastebin.com/YBARQrfn

pastebin get YBARQrfn Browser
0.1a
http://pastebin.com/MxgMsGgy

http://pastebin.com/MxgMsGgy
HurdeHack #2
Posted 28 October 2012 - 03:35 PM
It looks OMG cool gonna try it
Expenox #3
Posted 28 October 2012 - 10:18 PM
Cool, people like you inspired me. :D/>/>
casr144 #4
Posted 28 October 2012 - 10:28 PM
Very, very nice ! This is the kind of thing that I'm currently working towards on my new OS.
BigSHinyToys #5
Posted 29 October 2012 - 01:26 AM
It looks OMG cool gonna try it
Cool, people like you inspired me. :P/>/>
Very, very nice ! This is the kind of thing that I'm currently working towards on my new OS.
Thanks
BigSHinyToys #6
Posted 29 October 2012 - 07:57 AM
new ver 0.2
*stability increased
*less flickering in LyqydOS
BigSHinyToys #7
Posted 30 October 2012 - 10:17 AM
New ver 0.2b
Change Log
* Fixed major bug in dialog Box that caused program to crash if window was not an even size.
* added ability to launch programs in a new window when running on LyqydOS
waffles05 #8
Posted 31 October 2012 - 07:21 PM
Wow! :P/>/>
How did you manage to change colours of text and stuff?! I've been looking for that kind of thing for ages and the wiki says nothing about it. Do you mind if I use this on my personal server with my friends? :P/>/>
+1 For You!

EDIT: Curse You Tekkit! ComputerCraft hasn't been updated yet so I can't download it via pastebin anyways. Updating My CC

EDIT 2:When I run it says "attempt to call nil" about term.setBackgroundColor(colors.black) Are you using an extra API? This is probably why I couldn't find anything about coloured text…
Lyqyd #9
Posted 31 October 2012 - 11:08 PM
You'll need to be on ComputerCraft 1.45 or 1.46 to use this program.
BigSHinyToys #10
Posted 01 November 2012 - 07:28 PM
Wow! :P/>/>
How did you manage to change colours of text and stuff?! I've been looking for that kind of thing for ages and the wiki says nothing about it. Do you mind if I use this on my personal server with my friends? :P/>/>
+1 For You!

EDIT: Curse You Tekkit! ComputerCraft hasn't been updated yet so I can't download it via pastebin anyways. Updating My CC

EDIT 2:When I run it says "attempt to call nil" about term.setBackgroundColor(colors.black) Are you using an extra API? This is probably why I couldn't find anything about coloured text…

Lyqyd is right I would also like to point out you need the gold colored Advanced Computer. even with 1.4.5 or higher it still wont run on normal (stone computers).
Mitchfizz05 #11
Posted 11 November 2012 - 03:40 AM
Wow, just wow.
I hate it when I see someone else's program and it makes my programs look like shit.
TehTotalPwnage #12
Posted 11 November 2012 - 03:58 PM
Awesome program. Great job!
rhyleymaster #13
Posted 11 November 2012 - 07:21 PM
Very nice. May I have permission to use this is my OS?
BigSHinyToys #14
Posted 11 November 2012 - 11:39 PM
0.4 change log
* new userinput system
* added ability to make new files and folders (right click on the "/" in the top gray bar)

Very nice. May I have permission to use this is my OS?
yes you can use this in you OS

as of now I BST release all versions of Mouse file browser OPEN SOURCE and PUBLIC DOMAIN meaning you can use it in its entirety or parts of in your projects with no crediting requited
BigSHinyToys #15
Posted 13 November 2012 - 02:32 AM
new ver 0.5
+ shaped shell.run to os.run because shell.run doesn't allow file names to have spaces.
+ removed redundant code
+ added warning when run on non advanced computer
Sammich Lord #16
Posted 15 November 2012 - 08:48 AM
Pretty cool. I was going to make something similar to this. So the license is that we can modify and redistribute as long as you get credit?
BigSHinyToys #17
Posted 15 November 2012 - 04:33 PM
yes you can modify and redistribute with or without crediting me.I warn you that my code is not very clean and there are no notes in it. I will help explain parts if you have trouble with it.
BigSHinyToys #18
Posted 17 November 2012 - 01:36 AM
New Version 0.5c

* added updater function run Browser with -u and it will update to latest ver
* fixed major error in command passing to programs with Cruor's code Thanks Cruor
* added -h argument to give programs information
* added instructions for enabling http should it be disabled

This is the first updater i have built so post any problems or bugs here and i will get on it.

This project now has a branch in KilOS Open Pre-Alpha 2.3 - Multiuser support, a GUI file explorer and Sandboxing
maintained by Stiepen

It is nice to see my program used by so many people.
Thanks to you all.
BigSHinyToys #19
Posted 19 November 2012 - 11:26 AM
Update 0.7

* fixed update system.
* KilOS integration
* Copy / Paste
* Rename
* back button ".."
* simplification of stringParth()
BigSHinyToys #20
Posted 23 November 2012 - 09:54 AM
UPDATE 0.9

* added new disk options
* changed menu system
* factored how file and folders are listed.
* new icons
* reduced lines by 24
Ringowhs #21
Posted 24 November 2012 - 01:54 PM
1 word: Wow!
Dlcruz129 #22
Posted 24 November 2012 - 02:47 PM
Great! Just a suggestion though: Maybe a print button if a printer is detected?
BigSHinyToys #23
Posted 24 November 2012 - 02:47 PM
1 word: Wow!
thanks
Great! Just a suggestion though: Maybe a print button if a printer is detected?
I will look into this to see how much work is involved.
Dlcruz129 #24
Posted 24 November 2012 - 02:52 PM
1 word: Wow!
thanks
Great! Just a suggestion though: Maybe a print button if a printer is detected?
I will look into this to see how much work is involved.

Shouldn't be too much work. Check this out:


local function getPrinters()
sides = {"top", "bottom", "left", "right", "front", "back"}
for i,v in pairs(sides) do
  if peripheral.getType(v) == "printer" then
   --initialize the print menu option
  return true end
end
return false end

That should work. I modified a simple rednet opener, but I'm not so great with tables, so I'm not sure if the sides table works.
BigSHinyToys #25
Posted 24 November 2012 - 04:02 PM
Shouldn't be too much work. Check this out:
Spoiler

local function getPrinters()
sides = {"top", "bottom", "left", "right", "front", "back"}
for i,v in pairs(sides) do
  if peripheral.getType(v) == "printer" then
   --initialize the print menu option
  return true end
end
return false end
That should work. I modified a simple rednet opener, but I'm not so great with tables, so I'm not sure if the sides table works.
The problem is not opening the printer but the actual running print part. there is no print program that I can easily leverage like it do with edit and paint. If there was it would be a simple process but I would need to design my own print program that splits up the text into pages and checks for ink and other print manager related things.

I'm still undecided if I will do that or not.
Dlcruz129 #26
Posted 24 November 2012 - 06:17 PM
Shouldn't be too much work. Check this out:
Spoiler
 local function getPrinters() sides = {"top", "bottom", "left", "right", "front", "back"} for i,v in pairs(sides) do if peripheral.getType(v) == "printer" then --initialize the print menu option return true end end return false end 
That should work. I modified a simple rednet opener, but I'm not so great with tables, so I'm not sure if the sides table works.
The problem is not opening the printer but the actual running print part. there is no print program that I can easily leverage like it do with edit and paint. If there was it would be a simple process but I would need to design my own print program that splits up the text into pages and checks for ink and other print manager related things. I'm still undecided if I will do that or not.

If you need help, I don't mind. I didn't think about the pages. Perhaps you should take a look at the 'edit' program, and see how it prints/splits stuff into pages?
ArchAngel075 #27
Posted 25 November 2012 - 01:23 PM
request/suggestion :

as im currently in need of a easy file browser for my Angel-TV program i saw this and thought it be pretty damn useful, but i am not sure if this is already possible but :

Allow a user to save a location of a file/folder in a buffer so to copy paste it as if it was like copying text in Windows etc.

second :

Once a user has copied the line they wish to paste or use it must close the browser and revert to the program that was in need of link.

Why i request this : (maybe will help clearify anything)

since im improving Angel-TV to handle multiple movie folders and files i need a very user friendly file browser..
Say i want to select a folder that contains the frames of a movie(before compile) for editing, normally player would type in a location and the like but with this file browser i can go to a location and then use it, this makes for a much cleaner and user friendly system.

Perhaps look into adding support for my program or i shall do suport my side if provide the above functionality…

-end-
Dlcruz129 #28
Posted 25 November 2012 - 01:28 PM
request/suggestion :

as im currently in need ofa easy file browser for my Angel-TV program i saw this and thought it be pretty damn useful, but i am not sure if this is already possible but :

Allow a user to save a location of a file/folder in a buffer so to copy paste it as if it was like copying text in Windows etc.

second :

Once a user has copied the line they wish to paste or use it must close the browser and revert to the program that was in need of link.

Why i request this : (maybe will help clearify anything)

since im improving Angel-TV to handle multiple movie folders and files i need a very user friendly file browser..
Say i want to select a folder that contains the frames of a movie(before compile) for editing, normally player would type in a location and the like but with this file browser i can go to a location and then use it, this makes for a much cleaner and user friendly system.

Perhaps look into adding support for my program or i shall do suport my side if provide the above functionality…

-end-

Do it yourself, the project is open source. BST isn't gonna rewrite his program just for you.
BigSHinyToys #29
Posted 25 November 2012 - 01:41 PM
Do it yourself, the project is open source. BST isn't gonna rewrite his program just for you.
Please don't reply to messengers directed to be thanks. If you would like to create a print function that revives a file path and the prints it. that would be helpful I would add it in and your name to the contributers list.
request/suggestion : as im currently in need of a easy file browser for my Angel-TV program i saw this and thought it be pretty damn useful, but i am not sure if this is already possible but : Allow a user to save a location of a file/folder in a buffer so to copy paste it as if it was like copying text in Windows etc. second : Once a user has copied the line they wish to paste or use it must close the browser and revert to the program that was in need of link. Why i request this : (maybe will help clearify anything) since im improving Angel-TV to handle multiple movie folders and files i need a very user friendly file browser.. Say i want to select a folder that contains the frames of a movie(before compile) for editing, normally player would type in a location and the like but with this file browser i can go to a location and then use it, this makes for a much cleaner and user friendly system. Perhaps look into adding support for my program or i shall do suport my side if provide the above functionality… -end-
If i am understanding you correctly you want a option on the right click menu for folders to open your program sending it the locations as an argument like how it does for edit and print. I will be adding a configure file to this that allows you add custom programs to the right click menu for files of folders. the time frame for those changes is currently unknown so if you want to distribute a modified ver for the time being that would be your best option. the section that controls right click menu options is at lines 792 the rClickMenu functions < changing there continence and adding your custom function to the if sChoice section bellow it.
ElectricOverride #30
Posted 25 November 2012 - 02:20 PM
Wow! :P/>/>/> How did you manage to change colours of text and stuff?! I've been looking for that kind of thing for ages and the wiki says nothing about it. Do you mind if I use this on my personal server with my friends? :D/>/>/> +1 For You! EDIT: Curse You Tekkit! ComputerCraft hasn't been updated yet so I can't download it via pastebin anyways. Updating My CC EDIT 2:When I run it says "attempt to call nil" about term.setBackgroundColor(colors.black) Are you using an extra API? This is probably why I couldn't find anything about coloured text…
Colored backgrounds and text was introduced in Computercraft 1.4.5. :lol:/>/>
Randomfish132 #31
Posted 25 November 2012 - 03:50 PM
Looks great!
ArchAngel075 #32
Posted 25 November 2012 - 06:59 PM
Do it yourself, the project is open source. BST isn't gonna rewrite his program just for you.
Please don't reply to messengers directed to be thanks. If you would like to create a print function that revives a file path and the prints it. that would be helpful I would add it in and your name to the contributers list.
request/suggestion : as im currently in need of a easy file browser for my Angel-TV program i saw this and thought it be pretty damn useful, but i am not sure if this is already possible but : Allow a user to save a location of a file/folder in a buffer so to copy paste it as if it was like copying text in Windows etc. second : Once a user has copied the line they wish to paste or use it must close the browser and revert to the program that was in need of link. Why i request this : (maybe will help clearify anything) since im improving Angel-TV to handle multiple movie folders and files i need a very user friendly file browser.. Say i want to select a folder that contains the frames of a movie(before compile) for editing, normally player would type in a location and the like but with this file browser i can go to a location and then use it, this makes for a much cleaner and user friendly system. Perhaps look into adding support for my program or i shall do suport my side if provide the above functionality… -end-
If i am understanding you correctly you want a option on the right click menu for folders to open your program sending it the locations as an argument like how it does for edit and print. I will be adding a configure file to this that allows you add custom programs to the right click menu for files of folders. the time frame for those changes is currently unknown so if you want to distribute a modified ver for the time being that would be your best option. the section that controls right click menu options is at lines 792 the rClickMenu functions < changing there continence and adding your custom function to the if sChoice section bellow it.

First :
I wasn't asking for a rewrite, i was adding a suggestion that could both benefit others, the program and me.

second : Ok, ill have a look but because I wanted to get more work on my program i added what i needed to my program already, but i might look into yours for more..
mitterdoo #33
Posted 03 December 2012 - 06:40 PM
What happened at line 39?
cmd = tArgs[a]:sub(b, :D/>/>/>
It stopped me from running the program.
BigSHinyToys #34
Posted 03 December 2012 - 08:08 PM
What happened at line 39?
cmd = tArgs[a]:sub(b, :D/>/>/>/&amp;gt;/&amp;gt;/&amp;gt;/&amp;gt;
It stopped me from running the program.
That is a odd problem seams something went wrong when i copy pasted the program into the OP (opening post). for now i would suggest using the pastebin link. Thank you for brining this problem to my attention I will attempt to fix the OP.

[EDIT]
i have adapted the code to cope with yet another problem with the Computer Craft forums editor. It would appear that it can't cope with

witch makes no scene as the code in the code blocks is not meant to be formated in any way Because it is CODE. I will make shore future versions are made in such a way this never occurs again.

Sorry for any inconvenience caused by this problem.
Skullblade #35
Posted 31 December 2012 - 09:56 AM
Ok first thing is that this program is pretty damn cool.
To learn more coding i am going to try to make my own browser. Is it OK if i * completely* steal your GUI set up. I more then likely won't release it and i definitely wont take your code(where is the fun in just taking code?)

EDIT: Sorry just now looked at last post date.. :(/> sorry about the bump
Lyqyd #36
Posted 31 December 2012 - 01:58 PM
We don't really worry about bumps that are less than a month old. Start bumping six-month-old topics without adding something useful… well, then people start to get annoyed.
Skullblade #37
Posted 31 December 2012 - 02:05 PM
yeah I'm kinda new…better safe then sorry :)/>
BigSHinyToys #38
Posted 31 December 2012 - 08:14 PM
This project is not currently active but still the program is stable and works fine so this topic / project is far from dead. I am thinking about how best to move it forward and making it into an OS so I can implement things like file extensions seams like a possible step It would be a big project so I haven't started even the planing jet we will see what happens.
Ok first thing is that this program is pretty damn cool.
To learn more coding i am going to try to make my own browser. Is it OK if i * completely* steal your GUI set up. I more then likely won't release it and i definitely wont take your code(where is the fun in just taking code?)

EDIT: Sorry just now looked at last post date.. :(/> sorry about the bump

This project is open source and public domain so you can use or distribute it as you like that include the user interface. so you can use it and even release it if you want. I think CC is about open code and would never impose any kind of software patten to my work I would prefer people to enjoy and use my programs in what ever way they want.

As for bumping I think that is fine but I'm not a forums moderator.
BigSHinyToys #39
Posted 19 January 2013 - 06:06 AM

ADDED dev version to the OP 1.3 exp

* refactored right click menu system
* added config file for colors and custom program launch
note: no ui for that yet you can edit it directly thought editing "mouse.cfg"
* fixed problem with cut and copy
* added my own run system no longer uses os.run might be a problem I don't know
* fixed kinda error messages from crashed programs.
Skullblade #40
Posted 19 January 2013 - 11:54 AM
how did you make the computer picture it looks pretty cool..
BigSHinyToys #41
Posted 19 January 2013 - 01:26 PM
how did you make the computer picture it looks pretty cool..
http://www.sketchup.com/intl/en/product/newin8.html

The "follow me" tool can be used to make curves and other shapes.
photo match was used to project the MouseFB image on the screen with i then added to the rest of the computer.
the rest is just boxes and line.
File Download: http://www.2shared.com/file/1LmzaqQ_/comp2.html
Spoiler
BigSHinyToys #42
Posted 27 January 2013 - 10:13 AM
NEW release ver 1.4

Change Log

* configure file
* preferences (still under development)
* fixed cut problems
* copy will now rename if file exists.
* refactoring of the right click menu to be a table.

I removed the text ver from the OP please use pastebin link or the inbuilt updater. If anyone wants the text version back I will do that just snap me a message here and I will update the OP.
Spoiler
[img]http://i47.tinypic.com/104jfkl.png[/img]

A note to OS operators using mouse OS you can now add your programs to the Open With menu by editing the config file example
Spoiler

{["txt"]=32768,["back"]=2048,}
{["txt"]=32768,["back"]=256,}
{["txt"]=32768,["back"]=512,}
{["txt"]=32768,["back"]=256,}
{["txt"]=32768,["back"]=2048,}
{["txt"]=32768,["back"]=2048,}
{["txt"]=32768,["back"]=1,}
{["back"]=256,["button"]=128,["off"]=128,}
{["folder"]={["txt"]="[=]",["bCol"]="blue",["tCol"]="lightGray",},["audio"]={["txt"]="(o)",["bCol"]="red",["tCol"]="yellow",},["disk"]={["txt"]="[*]",["bCol"]="green",["tCol"]="lime",},["file"]={},["back"]={["txt"]=" < ",["bCol"]="blue",["tCol"]="lightGray",},}
{["Paint"]="rom/programs/color/paint",["Edit"]="rom/programs/edit",["random prog"]="randomProg",}
AnthonyD98™ #43
Posted 13 February 2013 - 05:13 PM
BigSHinyToys I would just like to let you know that I would like to use your File browser in SelectOS.

Thanks, AnthonyD98
AnDwHaT5 #44
Posted 22 February 2013 - 10:51 AM
Simply amazing and i love it!!!
Skullblade #45
Posted 22 February 2013 - 11:01 AM
-snip-
This project is open source and public domain so you can use or distribute it as you like
-snip
Look ^
BigSHinyToys I would just like to let you know that I would like to use your File browser in SelectOS.

Thanks, AnthonyD98
BigSHinyToys #46
Posted 22 February 2013 - 01:05 PM
Simply amazing and i love it!!!
thanks
-snip-
This project is open source and public domain so you can use or distribute it as you like
-snip
Look ^
BigSHinyToys I would just like to let you know that I would like to use your File browser in SelectOS.

Thanks, AnthonyD98
I put that there to stop people asking for it but people are too polite and like to ask any way.

Please feel free to use this application in any way. It is free Open source and public domain and I have no problem with its inclusion in OS's / shell extensions. If you have any problems with my programs then PMing me or posting in the topic is the best way to report it. same goes for and ideas on improvements / specific alterations for customizing it to your shell/OS.

also Thanks to all users of MouseFB I never thought it would become so widely used.
Skullblade #47
Posted 22 February 2013 - 01:37 PM
Just trying 2 help out….guess I could have worded it better…or used more then 1 word…. :P/>
AnDwHaT5 #48
Posted 23 February 2013 - 01:56 AM
It is just great I'm using it currently in my fireballOS and when I get to it I will add shock browser too so there is a choice
figgycity50 #49
Posted 08 April 2013 - 03:19 AM
I'm going to be using this for my OS (in private beta) until I can make one of my own. Maybe I'll modify your code to make it. :)/>
BigSHinyToys #50
Posted 30 April 2013 - 10:53 PM
I am posting due to the recent server roll back.

This program is public domain and open source.
so you can modify,distribute and use it in your OS's.

If you would like to use this program as part of your project you don't need to ask just go right ahead.

To the people that posted requests that were deleted you can all use this program for what ever purpose you would like.
Mandrake Fernflower #51
Posted 02 May 2013 - 12:29 PM
Very nice CC-port of Volkov Commander. It makes debugging OS's really easy..
BigSHinyToys #52
Posted 02 May 2013 - 04:45 PM
Thanks. I haven't heard of Volkov Commander before but i can see some similarity.
Jeroen Mathon #53
Posted 09 May 2013 - 03:45 PM
Nice and Neat
NeptunasLT #54
Posted 12 May 2013 - 05:15 AM
I think this program taked to you 1 month. :D/>
Like (+1) ;)/>
BigSHinyToys #55
Posted 12 May 2013 - 06:35 AM
I think this program taked to you 1 month. :D/>
Like (+1) ;)/>
thanks i think ??
Chickenbreadlp #56
Posted 04 January 2016 - 10:08 PM
Wow! This File Browser is really great!
I hope you aren't mad at me bacause I implemented it in my OS.
But what ever +1 for that browser
Creator #57
Posted 04 January 2016 - 10:23 PM
Wow! This File Browser is really great!
I hope you aren't mad at me bacause I implemented it in my OS.
But what ever +1 for that browser

BigSHinyToys has not been online since 19 Jan 2014, so I don't think he will be mad.
Chickenbreadlp #58
Posted 05 January 2016 - 02:08 PM
Wow! This File Browser is really great!
I hope you aren't mad at me bacause I implemented it in my OS.
But what ever +1 for that browser

BigSHinyToys has not been online since 19 Jan 2014, so I don't think he will be mad.
Oh! I didn't noticed that! lol
Well, at least this File Browser works better that the one I was trying to use before (Ice File Browser)
MarcoPolo0306 #59
Posted 31 August 2016 - 09:33 PM
Can I please use this for my OS?
Bye. #60
Posted 31 August 2016 - 09:48 PM
Can I please use this for my OS?
As you can see in the first lines of this post:
Mouse File Browser 1.4

Mouse File Browser is public domain and open source.
so you can modify,distribute and use it in your OS's.
Luca_S #61
Posted 31 August 2016 - 09:50 PM
Can I please use this for my OS?
As you can see in the first lines of this post:
Mouse File Browser 1.4

Mouse File Browser is public domain and open source.
so you can modify,distribute and use it in your OS's.
Also you are probably not getting an answer from the OP
Wow! This File Browser is really great!
I hope you aren't mad at me bacause I implemented it in my OS.
But what ever +1 for that browser

BigSHinyToys has not been online since 19 Jan 2014, so I don't think he will be mad.