Making a New Project form scratch
#1
Posted 28 October 2011 - 06:01 PM
How can a user build a script? is it difficult?
#2
Posted 28 October 2011 - 06:18 PM
It might be easiest to find a project similar to your own goals - i.e. build on the work of others. Then also start with improvements to an existing script...Add an option, or improve the GUI. Then move up to a new script on your own - maybe starting with some application scripts...that is an easy way to start learning the syntax, and also contribute! There are also some script builder tools you can explore. In other words - jump in! Find something you like, and work on it!
There are lots of good tutorials in this section of the forum...And even more important, lots of folks willing to help, so if you get stuck, just ask...
Good Luck!
Scott
#3
Posted 28 October 2011 - 06:27 PM
Well, building a project and a script is not too hard...There are some docs on it on the doc site,
Can you tell me where's this docsite? Homeware I have in mind the project I'd like to create a Win7 bootdisk using WAIK ONLY. No Win7 DVD needed. there's already a project with this goal but its program is not very stable. It uses batch file but hey are not good enough. When I use it it gives me some errors. Anyway I built this LiveCD by myself reading the commands inside these files and I made it manually. I don't know if you get it
the home of this project is that:
http://brokenglass.sourceforge.net/
Edited by Michele13, 28 October 2011 - 06:29 PM.
#4
Posted 28 October 2011 - 06:28 PM
Learning how to write scripts isn't that hard. It's about as complicated as writing a batch file.
Best way is probably to have a look at the help/wiki to get some general idea about the commands and then just go reading existing scripts, to learn the tricks of the trade.
http://reboot.pro/fi...ed-help-format/
http://code.google.c.../wbwelcome?tm=6
#5
Posted 28 October 2011 - 08:22 PM
The advantage (when compared to batch) is that it has quite a few functions/commands "specially suited" to build such Windows Source derived PE's and that it has a graphical interface.
But it has also some drawbacks, which I won't list in order to avoid the start of an unneeded flame war.
Anyway there are two paths (BOTH unfortunately VERY steep ) before you:
- learn to script in a given language (no matter if batch, vbs, Winbuilder or another one, say AutoIt)
- learn WHAT exact steps your script should do
As an example there is a specific tool for building a PE 3.x, which does not use Winbuilder at all:
http://reboot.pro/11852/
(that is oriented to build from 7 source with or without WAIK)
You may try it and take some ideas/settings from it too.
Still as generic advice :
http://reboot.pro/15298/page__st__9
Wonko
#6
Posted 28 October 2011 - 09:18 PM
To start a new project from scratch all you need is to create one called "script.project".
You can look at the file from each project to learn what goes where. Then you create new .script files to perform whatever actions you want to automate. I share the opinion that it is simpler to pick at one of the projects and customize it, this way you save yourself a lot of work and can focus on fixing whatever needs improvement.
Even better than forking would be helping out at one of the ongoing projects.
#7
Posted 28 October 2011 - 10:16 PM
.....
Still as generic advice :
http://reboot.pro/15298/page__st__9
Wonko
Seems to be a nice bug in forum software:
May we have a link to Page 1.98?
MaineCoon
#8
Posted 28 October 2011 - 10:45 PM
No , but you may have one to 1.96:May we have a link to Page 1.98?
http://reboot.pro/15298/page__st__24
Question:
How much is 9/25?
How much is 24/25?
Wonko
#9
Posted 28 October 2011 - 10:56 PM
I know how to make the button.but i dont know how to run the file attached to the script
The file name is "Sectionhelp Manual.doc"
#10
Posted 28 October 2011 - 11:05 PM
MaineCoon
#11
Posted 29 October 2011 - 12:22 AM
You make a "section" inside the original script - let's say [DO_MANUAL], and assign that process section to the button...I want to create a button in winbulder to run a file that is Attached to the .script
I know how to make the button.but i dont know how to run the file attached to the script
The file name is "Sectionhelp Manual.doc"
Inside that you do the basics - not at winbuilder right now, so this is pseudo-code, but you should get the "drift"
[DO_MANUAL] ExtractFile,%ScriptFile%,Section,"help Manual.Doc",%Temp% ShellExecute,Open,"help Manual.doc",,%TEMP%,%ExitCode%]Of course, that assumes I understood what you meant. Inside attached files, you can't have folders inside a folder,so if you meant the "folder" was "section/help", then you can't do that. If you need folder structure, you make a 7z file, and extract it - there is an API that can do that all at once...http://code.google.c...der/wiki/unpack
The issue with a "DOC" file is that you have to be a bit careful not to assume it is MS word, and so you might want to consider an RTF file.
Look around at the same sort of scripts in the existing projects, and I'm su%TEMP% dir exists, and other things to make it more robust...
Scott
#12
Posted 29 October 2011 - 08:37 AM
In the meantime you can use this one, as long as you are looking for reasonably small results :So may I have a calculator next christmas?
http://www.thateden.co.uk/dirk/
Incidentally, I just pushed the RED button and got (on your behalf) :
K'UN SUN
46. PUSHING FORWARD
This Is A Good Time For Promotion. Transport Themselves Through Searches Of Mighty People. Use Your Kindness And Intensity. Through Hard Work, His You Surely, To Follow. Little Through Little, Your Self - Improvements Will Bring You Great Success.
THE COMMENTARY OF THE DUKE OF CHOU:
Line 3: There Are No Obstructions In Your Way So Will Find You It Very Easily, To Advance Now. Take Advantage Of These Good Times.
Line 5: Maintains Your Honesty And Integrity At Processes In A Correct Kind. Push Slowly And Continual To Your Goals And Final Will Follow You
Wonko
#13
Posted 29 October 2011 - 05:17 PM
#14
Posted 29 October 2011 - 06:20 PM
You are perfectly right.Ehm, I don't want to kill anyone but don't you think that we're going off-topic? I only asked how to get started make a a new project. XD
But until post #6 you had them answers, then MaineCoon started it, and DarkPhoeniX went on .....
Wonko
#15
Posted 30 October 2011 - 06:05 AM
Once upon a time, someone told me that discussing "irrelevant to the context of the thread", e.g. analysis of a probable forum bug/ teaching arithmetic etc. on a topic asking for a direction to build a Winbuilder project from the scratch - is called "thread jacking". Was he wrong?Question:
How much is 9/25?
How much is 24/25?
#16
Posted 30 October 2011 - 08:53 AM
No, no.Once upon a time, someone told me that discussing "irrelevant to the context of the thread", e.g. analysis of a probable forum bug/ teaching arithmetic etc. on a topic asking for a direction to build a Winbuilder project from the scratch - is called "thread jacking". Was he wrong?
This is a typical example of thread hijacking, no doubt about this IMHO.
Point you seemingly missed is that we now have a new communication paradigm, different from the ordinary and dull "let's stay on topic".
But on the other hand, you carefully avoided to answer/help on the OP topic and plainly contributed to a further hijacking of the thread
Wonko
#17
Posted 30 October 2011 - 12:27 PM
But on the other hand, you carefully avoided to answer/help on the OP topic and plainly contributed to a further hijacking of the thread
Just to falsify the allegation, some links follow
#18
Posted 30 October 2011 - 12:32 PM
It doesn't falsify anything , actually confirms it fully :Just to falsify the allegation, some links follow
thanks to the remark, you realized how you hadn't previously contributed to the thread, and since you are a good guy , you decided to later correct the omission.
Wonko
#19
Posted 30 October 2011 - 12:35 PM
It doesn't falsify anything , actually confirms it fully :
thanks to the remark, you realized how you hadn't previously contributed to the thread, and since you are a good guy , you decided to later correct the omission.
#20
Posted 30 October 2011 - 03:42 PM
#21
Posted 30 October 2011 - 07:55 PM
It has not been my intention to hijack this thread so I apologize for all inconvenience I caused.
MaineCoon
#22
Posted 30 October 2011 - 10:36 PM
@Michele13 and all
It has not been my intention to hijack this thread so I apologize for all inconvenience I caused.
MaineCoon
As I said I don't want to kill anyone...I only asked if the subject of the topic was changed. xD
#23
Posted 17 November 2011 - 04:17 PM
After that all you need maybe also an own command collection, that makes your coding easier, but not as the real capi. only some stuff that all scripts uses. Then if you want you can deactivate some capi commands it differs how you want to make your project accessable through other projects.
A simple variable redirection solves the most starter problems so you can add any script that wasn't even written for your project or convert it, call it how you want.
If you do so you will reduce the scripts heavily and the buildtime will be more faster, cause some stuff is 100 time in every existing project in and slows done the parsing of the scirpts.
After all tools like beyond compare can help you to update your project or to see the differences.
It is easier as some think, and it is better cause the pe is suited only for you only so you can get happy by using it. My goal is simply to get rid of the capi i dont like it and wont use it, it was a decision of my own, for me it is unreadable, i like more the native coding of winbuilder and i also like it when i am the boss in my script and not a command collection.
Edited by Darijo, 17 November 2011 - 04:20 PM.
#24
Posted 01 September 2012 - 08:39 PM
#25
Posted 26 November 2012 - 09:20 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users