| View previous topic :: View next topic |
| Author |
Message |
arcray Valued Contributor


Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Thu Mar 06, 2003 10:57 am Post subject: Is it possible to auto compile scripts? |
|
|
I have an application in the wild called FLUS that requires weekly keys to stay working and I currently produce these semi-manually with a script that when run generates another script called something like week0703.EXE
See code snippet below
The FLUS application will not run unless it is the correct version and the date is between today and the encrypted end date.
It has worked fine so far, but now I have to add a whole load of user specific info to the weekly keys, and whilst I can produce individually tailored keys automatically, I have to compile them manually, which with 50 odd users takes a long while.
And so, my question is:-
Is there a way to auto compile these new scripts!
Thanks in advance!
| Code: | external blowfish.dll,BLANKED OUT
LIST CREATE,16
%%Today = @FORMAT(@DATETIME(),5.0)
%%Today = @FADD(%%Today,7)
REM Flight version Number
%%Ver1 = 653
REM NU version Number
%%Ver2 = 475
%%Week = 1
%%Pass = XXXXXX
%%Commission = 0.15
LIST ADD,16,"external blowfish.dll,BLANKED OUT"
LIST ADD,16," "
LIST ADD,16," "
LIST ADD,16,"%%Pass = XXXXXX"
LIST ADD,16,"DIALOG CREATE,New Dialog,-1,0,240,160"
LIST ADD,16,"DIALOG ADD,BUTTON,BUTTON1,69,145,,,BUTTON1"
LIST ADD,16," "
LIST ADD,16,"REM Weekly Key for Version:- "%%Ver2
LIST ADD,16,"REGISTRY WRITE,LOCAL,Software\FLUS,Last Update,"@DATETIME(dd mmmm yyyy)
LIST ADD,16,"REGISTRY WRITE,LOCAL,Software\FLUS,Version1,"@Blowfish(CryptStr,%%Pass,%%Ver1)
LIST ADD,16,"REGISTRY WRITE,LOCAL,Software\FLUS,Version2,"@Blowfish(CryptStr,%%Pass,%%Ver2)
LIST ADD,16,"REGISTRY WRITE,LOCAL,Software\FLUS,Date,"@Blowfish(CryptStr,%%Pass,%%Today)
LIST ADD,16,"REGISTRY WRITE,LOCAL,Software\FLUS,Commission,"@Blowfish(CryptStr,%%Pass,%%Commission)
LIST ADD,16,"EXIT"
LIST SAVEFILE,16,Week@DATETIME(ddmm).dsc
|
_________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Mar 06, 2003 11:29 am Post subject: |
|
|
what about writing a program that will control the vds interface in that you can make it compile the files for you
vds was designed to be able to control other programs and i don't see why you can't write a program to control vds
once you have written the code, you would basically run it while you go and get a cup of coffee so that when you come back, it's all done
i myself wrote a program that processes email registrations i receive in ms outlook
i used to compile things by hand too until i wrote the program which does processes my registration automatically
Serge _________________
|
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Thu Mar 06, 2003 11:46 am Post subject: |
|
|
Hmm, you just gave me a good idea Serge.
I have like 50 email addresses and it's a realy pain having to type in all the info when I have to add the accounts in Outlook.
I do alot of testing on my laptop and I often re-install different Windows versions. So if I made a program that would read the info from a text file and then automacially add all the email accounts in Outlook that would save me from alot of hard work
I tried this with AutoIt but it's just too limited and it's Window handler isn't that good. But I think VDS could do the trick. _________________
 |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Mar 06, 2003 12:07 pm Post subject: |
|
|
glad to help
Serge _________________
|
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Thu Mar 06, 2003 12:13 pm Post subject: |
|
|
If i remember right someone created a command line compiler to compile VDS scripts. Can't remember where it is or what is called. But i do recall a lot of talk about it . Try searching the archives !
Nathan |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 06, 2003 12:34 pm Post subject: |
|
|
The compiler I believe was included with VDS 2 or something... S.A.D.E.
wrote it. It won't work for other VDS versions. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Thu Mar 06, 2003 2:51 pm Post subject: |
|
|
| Man, version 2 had some nice features! A command line compiler would be very nice to have in version 5. |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 06, 2003 3:31 pm Post subject: |
|
|
I know, VDS 2 had integrated EXEs too!  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Thu Mar 06, 2003 4:04 pm Post subject: |
|
|
| FreezingFire wrote: | I know, VDS 2 had integrated EXEs too!  |
Integrated? You mean the runtime file was included in the compilation?
That would be cool for a new version. _________________
 |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Mar 06, 2003 4:55 pm Post subject: |
|
|
| Yes. You can also achieve that by using tools like PGWARE's Alloy... |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 06, 2003 6:51 pm Post subject: |
|
|
Yes, but VDS 2's integrated executables were true integrated executables,
not a self-extracting type executable. I'd like to see a true integration of
the runtimes sometime in the future of VDS.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
arcray Valued Contributor


Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Thu Mar 27, 2003 3:26 pm Post subject: |
|
|
IT IS AFTER ALL AMAZINGLY EASY!
My key file generator writes a dsc file using LIST and then runs a compile.exe script like so:-
| Code: |
RUNH COMPILE.EXE %%NAME@DATETIME(ddmm).dsc,WAIT
|
And the compile script is simply:-
| Code: |
RUNH c:\Progra~1\Visual~1\VDS.EXE %1
WAIT 10
WINDOW SEND, Visual DialogScript,@ALT(C)
WAIT 10
WINDOW SEND, Create Exe,@ALT(C)
WAIT 10
WINDOW SEND, Create Exe,@ALT(O)
WAIT 10
WINDOW SEND, Visual DialogScript,@ALT(X)
EXIT
|
Terrific! _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Mar 27, 2003 6:38 pm Post subject: |
|
|
I have a context menu compile script here somewhere if you need it.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Fri Mar 28, 2003 10:42 pm Post subject: |
|
|
excellent!!!
Serge _________________
|
|
| Back to top |
|
 |
arcray Valued Contributor


Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Sun Mar 30, 2003 6:35 am Post subject: |
|
|
| Quote: |
I have a context menu compile script here somewhere if you need it.
-Garrett
|
Yes, Garrett. I'd like a look! _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|