Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Reply
Thread Tools Search this Thread Display Modes
Old 30th July 2003, 19:44   #1
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
Script Compiler - make your coding faster and more comfortable!

It is just a few days ago when I installed Delphi and started programming in this cool language. As my first application, I created a little tool for my personal use to assist me with creating batch files in order to ease my coding. But when I realised, that a batch file is just a midstep to a compiled script, I enhanced my batch
writer with 'compile' function (creates a batch file and executes it), improved it, gave it a more "professional" look and the result is a useful tool which is now here to help all the coders around:Script Compiler - a tool that enables you to compile maki scripts
faster and more comfortably than ever.

I beleive this will be helpfull to all the coders and what's more, people new to coding now have a tool that compiles *.maki files for them, so they needn't ask in the forums how to compile them.

Features:
  • Fast and comfortable compiling of *.maki files.
  • The *.maki files are automatically compiled in the same directory as the *.m file.
  • Creates a batch file, which you can use later.
  • Checkbox for pausing/not pausing mc.exe after compiling the *.maki file.
  • Accelerator keys for every button and checkbox, 'Compile' button accessible by Enter key.
  • You can switch between Normal and Always on top mode.
  • The aplication's width is resizeable up to screen width. The edit boxes are resized when the application's resized, so you can easily stretch them if the text they contain is too long to be fully displayed.
  • If some part of the application is out of screen, it's automatically moved, so that the whole program's body is visible on the screen.
Script Compiler version 1.0

Note: This is not literally a compiler. What it does, is that it writes a batch file and launches it - the script itself is compiled by mc.exe .
Known bugz: none (so far )
Comments, constructive criticism and bugreports are welcome.
Enjoy !
Attached Images
File Type: jpg scriptcompiler.jpg (68.8 KB, 544 views)
qlimo is offline   Reply With Quote
Old 30th July 2003, 22:30   #2
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Nice work I probably won't use it as I have my own methods of quick compilation, but still nice work
hammerhead is offline   Reply With Quote
Old 31st July 2003, 06:18   #3
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
Thanks hammerhead . It was designed to be used, but even if you won't use it, I'm glad that you like it .
qlimo is offline   Reply With Quote
Old 31st July 2003, 18:48   #4
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
looks good for beginners to use..
Personally I use the Crimson Editor to both edit and compile my scripts so this tool wouldn't be that much of a use for me but for new people I seriously think this is a great tool.

Question, does the batch file get deleted after it compiles the maki file?

-Plague
Plague is offline   Reply With Quote
Old 2nd August 2003, 23:16   #5
allgood
Junior Member
 
Join Date: Sep 2002
Location: Sweden
Posts: 25
qlimo...your message box is full again. I can't send you any private messages. Writing this here cause your hotmail address you gave me came back as failed. Get with me when you can.
allgood is offline   Reply With Quote
Old 3rd August 2003, 19:21   #6
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
@Plague: Thanks. No, the batch files are not deleted. Do you think they should be deleted after compiling the script? I personally compile the script for the first time using this tool and then I compile it by manually executing the batch file it creates... Anyway I could put a checkbox for deleting/not deleting the batch file after compiling the script in next release... what do you think?

@Allgood: I'm sorry, my message boxes got full again... I've cleaned'em so it should be ok now .
qlimo is offline   Reply With Quote
Old 3rd August 2003, 19:23   #7
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
yea, I think such a checkbox would be a good idea..

-Plague
Plague is offline   Reply With Quote
Old 3rd August 2003, 19:28   #8
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
Ok then... I'll try to work it out. Stay tuned for next release .
qlimo is offline   Reply With Quote
Old 5th August 2003, 19:04   #9
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
Some modifications were done with the source code, some enhancements have been achieved - Script Compiler version 1.1 is here!

New feature:
  • Checkbox for deleting/not deleting the batch file after compiling the script (thanks to Plague for this idea ).

As always, comments and bugreports are welcome.
Check it !
Attached Images
File Type: jpg sc.jpg (73.1 KB, 361 views)
qlimo is offline   Reply With Quote
Old 5th August 2003, 20:23   #10
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
zip file empty?
iPlayTheSpoons is offline   Reply With Quote
Old 5th August 2003, 22:09   #11
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
I get "could not be found".

Seems like a useful idea, nonetheless.

-=Gonzotek=-

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 6th August 2003, 18:16   #12
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
I just downloaded it and there's nothing wrong with it... Try it again and let me know if you have any problems.
qlimo is offline   Reply With Quote
Old 6th August 2003, 18:55   #13
Gonzotek
Gunslinger
 
Gonzotek's Avatar
 
Join Date: May 2000
Location: Terminus
Posts: 4,693
Nope. I tried several variations of the urls (for both 1.0 and 1.1). Sometimes it kicked me back to the host's homepage, other times I only get a "could not be found".

-=Gonzotek=-

I was away for a while.
But I'm feeling much better now.
Gonzotek is offline   Reply With Quote
Old 6th August 2003, 19:05   #14
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
works for me...

-Plague
Plague is offline   Reply With Quote
Old 6th August 2003, 19:19   #15
Mr Jones
Nothing to say...
 
Mr Jones's Avatar
 
Join Date: Sep 2000
Location: UK
Posts: 23,064
and me...
Mr Jones is offline   Reply With Quote
Old 6th August 2003, 20:01   #16
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
it downloads, but is still an empty zip (and this is on a different computer)
iPlayTheSpoons is offline   Reply With Quote
Old 7th August 2003, 18:35   #17
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
Okay, here is an exe file - not zipped, so it should work now... I hope . Script Compiler version 1.1. And now if it works, let's get back to the Script Compiler itself - I really wanna hear your ideas and comments. Thanks and good luck with downloading .
qlimo is offline   Reply With Quote
Old 7th August 2003, 18:54   #18
SLoB
Major Dude
 
SLoB's Avatar
 
Join Date: Jul 2003
Location: UK
Posts: 1,316
its nice an all, but by the time ya browsed for ya m file ya could of done the bat file

spose it would help the knowledgeless peeps tho

hmm knowledgeless a new word? heheh
SLoB is offline   Reply With Quote
Old 8th August 2003, 11:03   #19
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
Well i like this app because it makes compiling much easier. I used befor your app the .bat system but your app makes it in one point easier, now i dun have to change the bat file everytime i wanna compile a new script. well, the only idea i have is to.......dun know but what about a better debugger than that one in mc.exe. Something like in apache server! that whould be real cool! i dun know if it is possible but it is just an idea and nothing more! just work on it...mayb it becoms something really usefull
carlosp is offline   Reply With Quote
Old 8th August 2003, 12:42   #20
the_dude4444
Member
 
Join Date: Aug 2002
Location: Somewhere
Posts: 70
A simple batch file

I made a simple batch file, you put it anywhere and use "open with" to launch the compiler with it.
It also has a pause in case you need to look at errors.
Change the path of winamp in it if it's diffrent than the default and that's it!
Attached Files
File Type: zip mc launcher.zip (201 Bytes, 300 views)
the_dude4444 is offline   Reply With Quote
Old 8th August 2003, 19:40   #21
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
everybody has such a bat file...
carlosp is offline   Reply With Quote
Old 8th August 2003, 20:06   #22
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
Thanks, carlosp. If I understood you correctly, you want me to enhance it with its own debugger...uhh. Well, a nice idea but this tool just launches mc.exe - it doesn't check the content of the *.m file. A better debugger? That would be really a chellenge... I'm not sure whether the mc.exe's debugger is so bad and whether it is worth to create sth better...
qlimo is offline   Reply With Quote
Old 8th August 2003, 23:17   #23
the_dude4444
Member
 
Join Date: Aug 2002
Location: Somewhere
Posts: 70
Quote:
Originally posted by carlosp
everybody has such a bat file...
So why use a program, I'ts much more comfortable to use a bat file insted make a program that creates them, isn't it?
the_dude4444 is offline   Reply With Quote
Old 9th August 2003, 13:45   #24
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
If you red my post i told why the app is better than making a bat file by hand. Just read what i write and you will know what makes this app a good tool!

@qlimo: well i am a coder too and for me is every challenge a new chance to show my self how good i am so just try to do it!
carlosp is offline   Reply With Quote
Old 9th August 2003, 23:23   #25
the_dude4444
Member
 
Join Date: Aug 2002
Location: Somewhere
Posts: 70
I don't mean custom batch files, ones that take parameters, your compiler is a nice idea but it's a bit redundent to remake a batch file insted of just double clicking an m file.
I know how easy it is to make, I know delphi.
If you made it with a system wide hotkey that recompiles the current file, that would have been a bit better.
But my text editor runs the compiler when I press F7, so I really don't need a program. and nither do all the other people who use a "general" IDE like ultraedit or sourceedit.
the_dude4444 is offline   Reply With Quote
Old 9th August 2003, 23:32   #26
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
which editor du you use???
carlosp is offline   Reply With Quote
Old 10th August 2003, 13:40   #27
the_dude4444
Member
 
Join Date: Aug 2002
Location: Somewhere
Posts: 70
I use UltraEdit.
But SourceEdit is good and free.
Both allow custimized syntax highlighting as well as external tools (such as compilers)
the_dude4444 is offline   Reply With Quote
Old 10th August 2003, 14:10   #28
Plague
f(caffeine){
return wasabi;
}
(Forum King)
 
Plague's Avatar
 
Join Date: Jul 2001
Location: Sweden
Posts: 3,984
I use Crimson Editor. It also has syntax highlighting as well as external tools, such as compilers..
It's also free.

Still, for people who don't know about editors like theese or who don't know how to use them and set them up, the Script Compiler program can be of great help.
And believe me, the majority of the beginners use notepad and batch files for mc.exe.

-Plague
Plague is offline   Reply With Quote
Old 10th August 2003, 14:55   #29
the_dude4444
Member
 
Join Date: Aug 2002
Location: Somewhere
Posts: 70
I didn't say they shouldn't use batch files and notepad, notpad rocks, but why make a program that makes a batch file for every .m file insted of using a general one that accepts parameters so you can just double click an M file to compile it?
the_dude4444 is offline   Reply With Quote
Old 10th August 2003, 15:49   #30
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
so just link the *.m syntax to throw open with command in windows! it deos the same like making a bat file. But we argue about a wrong topic lets make some good ideas to make the app better!

PS. the best editors are : Editplus. Crimson,Ultra Edit!

->CarlosP<-
carlosp is offline   Reply With Quote
Old 10th August 2003, 15:56   #31
the_dude4444
Member
 
Join Date: Aug 2002
Location: Somewhere
Posts: 70
An ability to open an m file with the app (command line parameters)
Good enough for you?
and as I said b4, a system wide hotkey for compilation
the_dude4444 is offline   Reply With Quote
Old 10th August 2003, 19:02   #32
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
Wow, looks like a massive discussion about using and not using this tool.

Quote:
Originally posted by carlosp
But we argue about a wrong topic lets make some good ideas to make the app better!
Thanks, carlos. That's a good idea .

@SLoB: I think that I don't understand what you meant with browsing the *.m file and bat thing, so it would be nice if you could explain it again... sorry.

@the dude 4444: Nice ideas... how do you mean to open the m file? Do you want it to be a kinda maki editor or sth like that? And the system wide hotkey: could you explain how should it work and what exactly do you mean by it? Thanks for the ideas .
qlimo is offline   Reply With Quote
Old 10th August 2003, 19:10   #33
the_dude4444
Member
 
Join Date: Aug 2002
Location: Somewhere
Posts: 70
I mean about the command line, running the program with a parameter of an m file would cause to make that file as the current file to compile.
and the system wide hotkey will compile the current file with one click no matter in what program you are currently using.
the_dude4444 is offline   Reply With Quote
Old 10th August 2003, 22:26   #34
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
The idea is good! but much better whould be to make a command to winamp. So as soon as you have a new maki file in your scripts folder or one which is bigger as than the excisting file or if it is newer than the excisting file just upload winamp. try this please!
carlosp is offline   Reply With Quote
Old 11th August 2003, 18:39   #35
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
Yeah, now I know what you mean. I'm recently working on some new features and if I would manage to implement this stuff, that would be cool .
qlimo is offline   Reply With Quote
Old 11th August 2003, 19:52   #36
the_dude4444
Member
 
Join Date: Aug 2002
Location: Somewhere
Posts: 70
if you need a hand contact me, I know delphi
the_dude4444 is offline   Reply With Quote
Old 20th August 2003, 20:05   #37
hammerhead
The Shark
(Forum King)
 
hammerhead's Avatar
 
Join Date: Jul 2002
Posts: 2,537
Send a message via AIM to hammerhead
Quote:
Originally posted by the_dude4444
I mean about the command line, running the program with a parameter of an m file would cause to make that file as the current file to compile.
and the system wide hotkey will compile the current file with one click no matter in what program you are currently using.
Hmm.. I get my m's to compile with mc.exe on click, I presume anyone with windows could do that.
hammerhead is offline   Reply With Quote
Old 21st August 2003, 13:57   #38
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
Here it geos. Your app need this features:

first: let it search for mc.exe in the std wa3 folder " crogramm files/winamp3/mc.exe"

second: let the app to right a register in windows reg to remmeber what was the last folder it was in. after you start the app a gain it must know where mc.exe is and what was the last folder it was in!

Just add these features please because they are very important! when i know any new features i will tell them to you!

->CarlosP<-
carlosp is offline   Reply With Quote
Old 21st August 2003, 19:01   #39
qlimo
Senior Member
 
qlimo's Avatar
 
Join Date: Oct 2002
Location: Slovakia
Posts: 114
Send a message via ICQ to qlimo
Hey carlosp, that's not difficult at all, I've done that kind of thing actually. But what would it be good for? Eg. the app finds mc.exe in 'C:\Programm files\winamp3\mc.exe', what should it do then?
@Hammerhead, what do you mean by 'compiling with mc.exe on click'?
qlimo is offline   Reply With Quote
Old 21st August 2003, 19:34   #40
carlosp
Major Dude
 
carlosp's Avatar
 
Join Date: Nov 2002
Location: Hamburg, Germany
Posts: 1,312
it is kinda annoying to search for mx.exe and your script folder evrytime you start your app! it whould make the things much easier!
carlosp is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump