Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 Before February 2015

Chimi
Guest

Share-a-Script

I've noticed alot of people saying they were doing some scripting lately. I've had some simple scripting experience, and I decided that I would share A piece of it with the ee community. My scripting uses a system that, well, Isn't really supposed to be used for what I used it for. But thats fine, because I've adapted the way I do things to suit the platform. The script I will share with you is rather long, so I put it onto a nomorepasting.com page.
screenshot3a.png

Uploaded with ImageShack.us

The Script I wrote converts numbers 1-255 into binary bytes using a complicated mathematical equation.

How to use my script...
NOTICE: THIS WILL ONLY WORK ON WINDOWS!!!

1.) Open up one of the following...
v1.0
v1.1
v1.2
v1.3

2.) Open a notepad document and paste the contents of the nomorepasting address.

3.) Click File, then Save As, then type in:     YOURTITLEHERE.bat
(make sure you save it as a .bat file, or else it won't do anything.)

4.) Close notepad

5.) Open up the file you just saved, and my script will begin to run!

Don't know binary? Check the scripts abilities here!

This is still being tested, and I will post new versions when I revise the program.
Dont forget to post your script, but if its really long, post a link to a nomorepasting address! Make sure you explain what it does!

Last edited by Chimi (Feb 26 2011 3:23:17 pm)

#2 Before February 2015

SmilingNothing
Guest

Re: Share-a-Script

NO!

I gave that program 1, and program gave me 10000000.

Completely wrong.
Your 175. line must be:

echo The Binary Equivilent of %orignumb% is %dig1%%dig2%%dig3%%dig4%%dig5%%dig6%%dig7%%dig8%

But it is:

echo The Binary Equivilent of %orignumb% is %dig8%%dig7%%dig6%%dig5%%dig4%%dig3%%dig2%%dig1%

And one more: the @echo off statement won't work.
Fix these and it'll be a good batch file.

And how about a .bat calculator?

#3 Before February 2015

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,575

Re: Share-a-Script

cool scripts.


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#4 Before February 2015

SmilingNothing
Guest

Re: Share-a-Script

Different55 wrote:

cool scripts.

Thanks!

#5 Before February 2015

Different55
Forum Admin
Joined: 2015-02-07
Posts: 16,575

Re: Share-a-Script

your very welcome


"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto

Offline

#6 Before February 2015

Burnett
Guest

Re: Share-a-Script

LoL I like this topic!

#7 Before February 2015

Chimi
Guest

Re: Share-a-Script

smilingnothing wrote:

NO!

I gave that program 1, and program gave me 10000000.

Completely wrong.
Your 175. line must be:

echo The Binary Equivilent of %orignumb% is %dig1%%dig2%%dig3%%dig4%%dig5%%dig6%%dig7%%dig8%

But it is:

echo The Binary Equivilent of %orignumb% is %dig8%%dig7%%dig6%%dig5%%dig4%%dig3%%dig2%%dig1%

And one more: the @echo off statement won't work.
Fix these and it'll be a good batch file.

gotcha. Not sure why I did it backwards :/

bahaha Mines longer than yours //forums.everybodyedits.com/img/smilies/tongue.
But nice. If you didnt notice, I used the same variables over and over again.
We need to make better versions and add a loop option when the script reaches its end, so you can run it again with different input.

Last edited by Chimi (Feb 26 2011 6:55:38 am)

#8 Before February 2015

SmilingNothing
Guest

Re: Share-a-Script

Chimi wrote:
smilingnothing wrote:

NO!

I gave that program 1, and program gave me 10000000.

Completely wrong.
Your 175. line must be:

echo The Binary Equivilent of %orignumb% is %dig1%%dig2%%dig3%%dig4%%dig5%%dig6%%dig7%%dig8%

But it is:

echo The Binary Equivilent of %orignumb% is %dig8%%dig7%%dig6%%dig5%%dig4%%dig3%%dig2%%dig1%

And one more: the @echo off statement won't work.
Fix these and it'll be a good batch file.

gotcha. Not sure why I did it backwards :/

bahaha Mines longer than yours //forums.everybodyedits.com/img/smilies/tongue.
But nice. If you didnt notice, I used the same variables over and over again.
We need to make better versions and add a loop option when the script reaches its end, so you can run it again with different input.

Here is my loop-included version.

Nice, ha?

#9 Before February 2015

Chimi
Guest

Re: Share-a-Script

Nice. My script takes a while, even on my new win7 computer (if a few seconds is long...) so I may try to revise the code a bit.

#10 Before February 2015

SmilingNothing
Guest

Re: Share-a-Script

New, improved Calculator v0.3

#11 Before February 2015

Chimi
Guest

Re: Share-a-Script

:O moved to a new creative section //forums.everybodyedits.com/img/smilies/big_smile

@smilingnothing
I would get rid of the :end and the pause after it, and instead of refering the action to that, type goto :eof
goto :eof send it to 'eof' which is 'end of file'.
also, I would add a 'cls' or two in-between labels, gets rid of clutter.

Great job though!

EDIT:
Added a new version, v1.1.
New features
~~~~~~~~
-- Much faster computation
-- Redo option

Last edited by Chimi (Feb 26 2011 10:48:20 am)

#12 Before February 2015

Burnett
Guest

Re: Share-a-Script

How to code like this?
Also smilingnothing:
Kodlamay? nereden ve nas?l ö?rendin //forums.everybodyedits.com/img/smilies/big_smile.Belki kendiminkini de yapar burada payla??r?m //forums.everybodyedits.com/img/smilies/smile.

#13 Before February 2015

Chimi
Guest

Re: Share-a-Script

hmm... just added a new version with color selection.
@Burnett
It takes a long time to learn enough to do anything like this, but this isn't the only kind of script that you can post here! Try here, there,or everywhere!

Last edited by Chimi (Feb 26 2011 11:27:34 am)

#14 Before February 2015

SmilingNothing
Guest

Re: Share-a-Script

Also you can try this.

Hey Chimi, v1.2 still gives results backwards!(lol)

Last edited by smilingnothing (Feb 26 2011 11:38:39 am)

#15 Before February 2015

Chimi
Guest

Re: Share-a-Script

ya, just noticed that they all do. fixed it

These things are getting longer and longer...
v1.2 is 274 lines!

Last edited by Chimi (Feb 26 2011 11:42:46 am)

#16 Before February 2015

SmilingNothing
Guest

Re: Share-a-Script

v0.4

And history:

My Calculator - Initial Version(i forgot v0.1, but it's v0.1)
Calculator v0.2 - Loop added.
Calculator v0.3 - Factorial, square and cube added.
Calculator v0.4 - Added color change option.

#17 Before February 2015

Burnett
Guest

Re: Share-a-Script

4 versions upgraded in one day o.O.

#18 Before February 2015

Chimi
Guest

Re: Share-a-Script

lol made two upgrades today.

Hahaha... you just copied the colors list from mine!
Trying to think of more updates I could use...

Last edited by Chimi (Feb 26 2011 1:38:36 pm)

#19 Before February 2015

Chimi
Guest

Re: Share-a-Script

Version v1.3 just finished!
This one can also convert Binary To decimal!

#20 Before February 2015

SmilingNothing
Guest

Re: Share-a-Script

May i post my C application here?

#21 Before February 2015

Burnett
Guest

Re: Share-a-Script

Well,I made a new batch file.But I dunno what to call it.When you open it,you can change its name //forums.everybodyedits.com/img/smilies/big_smile.
http://www.mediafire.com/?4mom1by79nu3x50

Last edited by Burnett (Feb 27 2011 4:14:20 am)

#22 Before February 2015

SmilingNothing
Guest

Re: Share-a-Script

http://www.nomorepasting.com/getpaste.php?pasteid=35748

A file editor.

You have to start this from command prompt because it gets file name as parameter.

If you'll give it a not existing file it'll create the file. If you'll see a error click "OK" and it'll create the file.

#23 Before February 2015

rdococ
Guest

Re: Share-a-Script

I got a script too.

Name: Number Chat
Requirements: Approx. 898 bytes space or more, Windows Vista or 7, or Windows Vista or 7 on Virtual PC for Macintosh, or Macintosh with CandyBar.
Type: MS-DOS/C++/C# file.
Download Version 1.0 Public Beta (full version canceled) Download Version 1.1 Public Beta

The program will soon have it's own thread.
EDIT: It has it's own fake extraction style:
1. Open notepad.
2. Copy the contents of the paste.
3. Paste the paste onto notepad.
4. Save it as "NumberChat.bat" and select the any-file extension.
5. To open it, go to where you saved it and click "NumberChat".

What's new in 1.1:
- Fixed mistake where is said "Please enter to continue" instead of "Press enter to continue".

Last edited by rdococ (Feb 27 2011 7:52:11 am)

#24 Before February 2015

SmilingNothing
Guest

Re: Share-a-Script

Ok, i'll post my AWESOME C and C# applications here soon. I have to finish my homework first. :'(

#25 Before February 2015

Burnett
Guest

Re: Share-a-Script

What oints you will give to my script //forums.everybodyedits.com/img/smilies/big_smile.

Chimi 1423610517350915

Board footer

Powered by FluxBB

[ Started around 1734746596.249 - Generated in 0.068 seconds, 12 queries executed - Memory usage: 1.7 MiB (Peak: 1.92 MiB) ]