Jump to content











Photo
- - - - -

Create new script button


  • Please log in to reply
3 replies to this topic

#1 Olri

Olri

    Newbie

  • Members
  • 22 posts

Posted 23 July 2006 - 07:21 PM

:P Adding after the project's interface section will give you a button which allows you to create a script:
pButton1=Create,1,8,291,295,80,25,CreateScript

pTextBox1=,1,0,54,301,102,21,Type

pTextBox2=,1,0,174,301,102,21,ScriptName



[CreateScript]

DirMake,"%BaseDir%\Archive\%pTextBox1%"

FileCreateBlank,"%BaseDir%\Archive\%pTextBox1%\%pTextBox2%.script"

FileCreateBlank,"%ProjectDir%\Addons\%pTextBox2%.link"

TXTAddLine,"%ProjectDir%\Addons\%pTextBox2%.link","[main]","Append"

TXTAddLine,"%ProjectDir%\Addons\%pTextBox2%.link","link=%baseDir%\Archive\%pTextBox1%\%pTextBox2%.script","Append"

TXTAddLine,"%ProjectDir%\Addons\%pTextBox2%.link","Selected=False","Append"
I know it's kinda sloppy but it's a start :P

#2 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 23 July 2006 - 07:46 PM

That's a good start.. :P


I was planning on post a simple way of making new scripts:


1 - Open notepad



2 - Save the file with extension .script where you want to place it in the project



3 - Run/Refresh Openbuilder


Scripts can be completely empty when, new values are added in the interface as they are inputed.

The only condition is to add a [Process] section from where the commands are read..


Good work Olri! :P

#3 Olri

Olri

    Newbie

  • Members
  • 22 posts

Posted 23 July 2006 - 09:06 PM

Hmm I could do the first 2 but I don't know how to do that last part in a script. Is that possible? :P (3 - Run/Refresh Openbuilder)

#4 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10544 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 23 July 2006 - 11:13 PM

I can add it.. :P




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users