Jump to content











Photo
* * * * * 1 votes

H7PluginBuilder


  • Please log in to reply
259 replies to this topic

#201 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 17 June 2007 - 06:16 PM

Maybe buildModel is the API?

That will be great


can you add selection for other icon in future builds. would be helpfull when the excecuted file is a .cmd or .bat

do you mean adding new property to file properties for use with shortcut's ..

is it possible to spacify anew icon for shortcut's ?

#202 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 17 June 2007 - 06:23 PM

tick...tick...tick

jaclaz

#203 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10547 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 17 June 2007 - 06:25 PM

I meant that buildmodel is only available for nativeEx and it wouldn't be easy to "port" these scripts to other projects.

API means that the same function is available across different projects and acts exactly the same way.

On this case it calls buildmodel inside API.script because it is the default method for nativeEx, on another project the functions are adapted.

BuildModel is well programmed for this project, but limits the scope of the script unless we use this default API method.

Do you understand why it should be avoided to use a direct route on this case?


If needed, then there should be a way to run project specific settings that would take full advantage of buildmodel in all it's potential, but keep in mind that generic functions are the ones who allow for a script to continue working in the future when new projects are born and adopted as default.

Do we really need to create a script for each project? :1st:

#204 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 17 June 2007 - 06:26 PM

...tick ...tick ....tick...

No way for VistaPE?

Give me 30 (German) minutes and I demonstrate.

Peter


Ready Or Not, Here I Come, :1st:

Really NICE try, mate, but next time you'd better try with Swiss minutes...:thumbup:

:thumbup:

jaclaz

#205 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 17 June 2007 - 06:35 PM

tick...tick...tick

:1st:


Do you understand why it should be avoided to use a direct route on this case?

Yes

But maybe Peter can adapt BuildModel to work as global way of creating shortcut's ?
i'm waiting the 30 (German) minutes to see the results :thumbup:

in VistaPE project i can't see any api file .. i think the shortcut's created useing the old way "TextAddLine"

#206 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10547 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 17 June 2007 - 06:45 PM

...tick ...tick ....tick...
...
Really NICE try, mate, but next time you'd better try with Swiss minutes...:1st:


I have faith in Peter's results, but maybe people should be a bit more pacient - Imagine if it was a portuguese (or brazilien) asking 30 minutes. I talk with some experience on this matter when I know that in most occasions you'd surely had to wait a couple of days to get back an answer.. :thumbup:

#207 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 17 June 2007 - 06:48 PM

:1st:
Yes

But maybe Peter can adapt BuildModel to work as global way of creating shortcut's ?
i'm waiting the 30 (German) minutes to see the results :thumbup:

in VistaPE project i can't see any api file .. i think the shortcut's created useing the old way "TextAddLine"


i mean if your executable is (example) test.bat pointing the end of the script to point to an icon file. this is psc's example on something he tried. )Add-Shortcut,"DE","#$pProgramFiles#$p\Off By One\OB1.exe","OffByOne","-SW:#$pProgramFiles#$p\Off By One -SF:#$pProgramFiles#$p\Off By One\e.ico") instead of using offbyone regular icon it would use an icon in the offbyone folder called e.ico.
in this way a default icon for a bat or cmd file could could be seen with an icon for the paerent executable file that the bat file would run.

thanks

#208 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 17 June 2007 - 06:53 PM

...tick ...tick ....tick...



Ready Or Not, Here I Come, :1st:

Really NICE try, mate, but next time you'd better try with Swiss minutes... :thumbup:

:thumbup:

jaclaz

What is swiss minute:
I currently know Brazilian Portuguese and Spanish minute as ' (maybe) I'll remember'
German minute = 60 seconds
1 second = The duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium-133 atom.

My five German (what are Swiss minutes?) minutes start tomorrow at 9:00 MEZ
(Or later, depends on the bottle of Italian wine I now want to meet)

Peter

#209 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 17 June 2007 - 07:11 PM

I have faith in Peter's results, but maybe people should be a bit more pacient - Imagine if it was a portuguese (or brazilien) asking 30 minutes. I talk with some experience on this matter when I know that in most occasions you'd surely had to wait a couple of days to get back an answer..


Yes, we all have faith in Peter, the only difference is that if he hadn't started all the suspence with the 30 "German" minutes, but rather used a common latin "half an hour" I would have already been at my dinner table, drinking a better bottle of Italian wine than the one he is drinking now, :1st: and would have read his next post tomorrow.

@psc
You've got it wrong, sorry, the correct definition of "Latin" time (that embraces Italy, Portugal Spain, France and Romania) is "adimensional", and it is calculated as follows:
"given any amount of time declared for the completion of a project or for whatever other task you double it and pass to the immediately above unit of measure"
i.e.
1/2 hour = 1 day
1 day = 2 weeks
1 week = 2 months
...

The Southamerican time differs a bit in the fact that you add AT LEAST to it an entire unit of time,
i.e.
1/2 hour = 1 day starting from tomorrow
1 day = 2 weeks from end of next week
...

jaclaz

#210 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 17 June 2007 - 07:19 PM

Yes, we all have faith in Peter, the only difference is that if he hadn't started all the suspence with the 30 "German" minutes, but rather used a common latin "half an hour" I would have already been at my dinner table, drinking a better bottle of Italian wine than the one he is drinking now, :1st: and would have read his next post tomorrow.

@psc
You've got it wrong, sorry, the correct definition of "Latin" time (that embraces Italy, Portugal Spain, France and Romania) is "adimensional", and it is calculated as follows:
"given any amount of time declared for the completion of a project or for whatever other task you double it and pass to the immediately above unit of measure"
i.e.
1/2 hour = 1 day
1 day = 2 weeks
1 week = 2 months
...

The Southamerican time differs a bit in the fact that you add AT LEAST to it an entire unit of time,
i.e.
1/2 hour = 1 day starting from tomorrow
1 day = 2 weeks from end of next week
...

jaclaz


As older I become, as more interesting facts of math, physics etc. I learn!

Peter

#211 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 17 June 2007 - 07:24 PM

drinking a better bottle of Italian wine than the one he is drinking now,

Do you know Casa Comforta Chianti 2005 produced by Fattoria La Vialla, Castiglione Fibucci, Toscana?

This site disallows commercial aspects, but I can introduce you :1st:

Peter

#212 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 17 June 2007 - 08:39 PM

can you add selection for other icon in future builds. would be helpfull when the excecuted file is a .cmd or .bat


Program updated ..

let me know if it works without problems

#213 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 18 June 2007 - 02:41 AM

Program updated

---
when importing file's that have autorun_anyfile_.cm) or anyfile_Ram_.cm)
no file's created in file explorer instead file CreateAutorun and CreateRamRun properties set to True

when importing file that have xpe shortcut's with external icon enabled then no file's created in file explorer instead set the Icon property pointing to the external icon path

#214 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 18 June 2007 - 03:09 AM

Program updated ..

let me know if it works without problems


works on first attemp with naiveex barbones

thanks

#215 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 18 June 2007 - 09:14 AM

As older I become, as more interesting facts of math, physics etc. I learn!

And yet, you appear to have missed the clever part of the definition :thumbup:....
...by not binding the base unit to an insignificant atomic element, we succeed in two great things:
1) the base unit can be "latin" as well, i.e. 1 second = 2 minutes
2) we can prove at any time, and notwithstanding what we previously stated, that the project or task has been completed on schedule

Do you know Casa Comforta Chianti 2005 produced by Fattoria La Vialla, Castiglione Fibucci, Toscana?


Well, when I say better, I do mean better, yesterday I had some friends for dinner and we opened a bottle of 1999 Brunello di Montalcino - Fattoria il Poggione.

Given as a fact that all Tuscan wine is good wine, just like German cars are good cars, you are not going to compare a Volkswagen Polo to a Porsche 911 Carrera 4, aren't you? :thumbup:

That Fattoria La Vialla is in Castiglione Fibocchi, near Arezzo, it's wine can be called Chianti only because the Chianti area has been extended :1st: , it belongs to the "Colli Aretini" variety, the "Casa Conforto" appears to be a good, commercial wine, but of course cannot be compared to a Brunello

FYI:
http://www.mail-arch...e/msg47216.html

Der Wein, es muß des Jahrgangs 1998 gewesen sein und war für damals knapp unter 10.00 DEM gar nicht schlecht.


http://www.superiore...-Holzkiste.html

Some reference:
Brunello:
http://www.italianma...es/DOC10006.cfm
http://www.italianma...C-info10006.cfm

Chianti:
http://www.italianma...es/DOC10009.cfm
http://www.italianma...C-info10009.cfm

Next time you should pass by Tuscany I will be happy to open another bottle and drink it with you. :thumbup:

:thumbup:

jaclaz

#216 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 18 June 2007 - 09:55 AM

@jaclaz:
Thanks for the wine lesson. But imagine the price of a Brunello for somebody like me w/o incoming!

@all
Back to 'Tick .. Tick .. Tick'

To implement the buildModel shortcut in VistaPE (beta 009):
  • Copy buildModel.Script from nativeEx into the 'Build' folder and deselect it.
  • Store the following code as Shortcut.script (or whichever name you want)
    [Main]
    
     Title=Shortcut
    
     Type=script
    
     Level=10
    
     Description=Dummy for Vista Text
    
     Author=Peter Schlang
    
     Version=001
    
     Date=2007-JUN-18
    
     Selected=False
    
     
    
     [Variables]
    
     %dummy%=
    
     
    
     [Add-Shortcut]
    
     TXTReplace,#1,"$c","!C"
    
     TXTReplace,#1,"#",""
    
     IniRead,#1,"Shortcut","shortCutName",%shortCutName%
    
     IniRead,#1,"Shortcut","shortCutType",%shortCutType%
    
     IniRead,#1,"Shortcut","shortCutLocation",%shortCutLocation%
    
     IniRead,#1,"Shortcut","shortCutExe",%shortCutExe%
    
     IniRead,#1,"Shortcut","shortCutParameters",%shortCutParameters%
    
     IniRead,#1,"Shortcut","shortCutShow",%shortCutShow%
    
     IniRead,#1,"Shortcut","shortCutDir",%shortCutDir%
    
     IniRead,#1,"Shortcut","shortCutIconFile",%shortCutIconFile%
    
     IniRead,#1,"Shortcut","shortCutIcon",%shortCutIcon%
    
     IniRead,#1,"Shortcut","shortCutHotKey",%shortCutHotKey%
    
     IniRead,#1,"Shortcut","shortCutToolTip",%shortCutToolTip%
    
     If,%shortCutType%,Equal,SM,Run,%ActiveShell%,ShortcutStartMenu
    
     If,%shortCutType%,Equal,DE,Run,%ActiveShell%,ShortcutDesktop
    
     
    
     [ShortcutStartMenu]
    
     TXTAddLine,"%ES%","!PDC\%shortCutExe%#$c%shortCutLocation%\%shortCutName%.lnk","Append"
    
     
    
     [ShortcutDesktop]
    
     TXTAddLine,"%ES%","!PDC\%shortCutExe%#$c!DS\%shortCutName%.lnk","Append"
  • Add to the Variables section of script.project:
    %ProjectTemp%=%BaseDir%\Temp\%ProjectName%
    
     %shcTemp%=%ProjectTemp%\shcTemp.ini
    
     %BuildModelScript%=%ProjectDir%\Build\4 - buildModel.Script
    
     %ActiveShell%=<Full Path to>Shortcut.script
For test, change inside an application script
%ShortcutStartMenu%

 %ShortcutDesktop%
to
Run,%BuildModelScript%,Add-Shortcut,&#34;SM\%Category%&#34;,&#34;%OutDir%\%Executable%&#34;,&#34;%ProgramName%&#34;

 Run,%BuildModelScript%,Add-Shortcut,&#34;DE&#34;,&#34;%OutDir%\%Executable%&#34;,&#34;%ProgramName%&#34;

Build and run the project. :1st:

To realize the above, I needed about 15 minutes.
And I needed about two additional hours to debug the VistaPE project.

@NightMan:
In script.project the value of %ES% is defined with surrounding quotes.
When %ES% contains spaces and you use nested Run commands, that brings unpredictable results.

After removing the surrounding spaces, everything was ok.

Peter

#217 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 19 June 2007 - 08:47 AM

@all
Back to 'Tick .. Tick .. Tick'

To implement the buildModel shortcut in VistaPE (beta 009):[list]

Run,%BuildModelScript%,Add-Shortcut,&#34;SM\%Category%&#34;,&#34;%OutDir%\%Executable%&#34;,&#34;%ProgramName%&#34;

 Run,%BuildModelScript%,Add-Shortcut,&#34;DE&#34;,&#34;%OutDir%\%Executable%&#34;,&#34;%ProgramName%&#34;

Build and run the project. :thumbup:


:1st: i expected to see some reply from Nuno and Nightman

#218 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10547 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 19 June 2007 - 12:21 PM

H7se, still hadn't a chance to review the latest binary, sorry.. :thumbup:


You've got it wrong, sorry, the correct definition of "Latin" time (that embraces Italy, Portugal Spain, France and Romania) is "adimensional", and it is calculated as follows:
"given any amount of time declared for the completion of a project or for whatever other task you double it and pass to the immediately above unit of measure"
i.e.
1/2 hour = 1 day
1 day = 2 weeks
1 week = 2 months
...

The Southamerican time differs a bit in the fact that you add AT LEAST to it an entire unit of time,
i.e.
1/2 hour = 1 day starting from tomorrow
1 day = 2 weeks from end of next week
...

jaclaz


Never thought that this sort of lifestyle could actually be equationated in such simple mathematical terms, up to this day I would try to guess when something was expected to output visible results on my daytime work, so I guess that now things actually make more sense. If you visited the azores you'd probably notice very few people using a wristwatch or worried about doing things on time..

Very well described! :1st:

#219 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 22 June 2007 - 11:11 AM

program updated ...

Todo : remove multi process sections

#220 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 25 June 2007 - 10:41 PM

updated

#221 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 02 July 2007 - 09:44 AM

Hi

Added New option "Encode All File's"

Toolbar >> WinBuilder >> Encode >> Files >> True

---

Updated

#222 carfan

carfan

    Frequent Member

  • Advanced user
  • 196 posts
  •  
    United States

Posted 02 July 2007 - 09:51 PM

[quote name='h7se' date='Jul 2 2007, 04:44 AM' post='16729']
Hi

Added New option "Encode All File's"

Toolbar >> WinBuilder >> Encode >> Files >> True

---

hey h7se

you did such a great job with my request to point to an external .ico i have another.
can you add the ability to copy/expand from source dirctory like the makescript program
does???

thanks
carfan

#223 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 03 July 2007 - 07:46 AM

Hi carfan


i don't know how makescript handles copy/expand commands, but i can guess what you mean

here what you have to do ..
redownload the program
in the program directory you'll find a new file "ExpandList.txt" .. add the file name's you want to expand from source
ex:
winrar.exe
Tips.txt
filename.ext

in the file property set the "Copy Local" to false

#224 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 03 July 2007 - 11:49 AM

Bug while creating shortcut's >> fixed

--

Updated

#225 h7se

h7se

    Frequent Member

  • Developer
  • 264 posts
  •  
    Palestine

Posted 04 July 2007 - 10:18 AM

Hi

Forget about that

here what you have to do ..
in the program directory you'll find a new file "ExpandList.txt" .. add the file name's you want to expand from source
ex:
winrar.exe
Tips.txt
filename.ext

in the file property set the "Copy Local" to false


---

now you can do it from file property




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users