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.
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.
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)
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.
cool scripts.
"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto
Offline
cool scripts.
Thanks!
your very welcome
"Sometimes failing a leap of faith is better than inching forward"
- ShinsukeIto
Offline
LoL I like this topic!
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 .
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)
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 .
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?
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.
New, improved Calculator v0.3
:O moved to a new creative section
@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)
How to code like this?
Also smilingnothing:
Kodlamay? nereden ve nas?l ö?rendin .Belki kendiminkini de yapar burada payla??r?m .
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)
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)
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)
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.
4 versions upgraded in one day o.O.
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)
Version v1.3 just finished!
This one can also convert Binary To decimal!
May i post my C application here?
Well,I made a new batch file.But I dunno what to call it.When you open it,you can change its name .
http://www.mediafire.com/?4mom1by79nu3x50
Last edited by Burnett (Feb 27 2011 4:14:20 am)
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.
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)
Ok, i'll post my AWESOME C and C# applications here soon. I have to finish my homework first. :'(
What oints you will give to my script .
[ Started around 1734732593.9819 - Generated in 0.084 seconds, 12 queries executed - Memory usage: 1.7 MiB (Peak: 1.92 MiB) ]