forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Is it possible to auto compile scripts?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Thu Mar 06, 2003 10:57 am    Post subject: Is it possible to auto compile scripts? Reply with quote

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. Crying or Very sad

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
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Thu Mar 06, 2003 11:29 am    Post subject: Reply with quote

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 Smile

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Thu Mar 06, 2003 11:46 am    Post subject: Reply with quote

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 Wink

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
View user's profile Send private message Visit poster's website MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Thu Mar 06, 2003 12:07 pm    Post subject: Reply with quote

glad to help Very Happy Very Happy Very Happy

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Rubes_sw
Valued Contributor
Valued Contributor


Joined: 11 Jun 2001
Posts: 625
Location: Northern Ireland

PostPosted: Thu Mar 06, 2003 12:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Mar 06, 2003 12:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Thu Mar 06, 2003 2:51 pm    Post subject: Reply with quote

Man, version 2 had some nice features! A command line compiler would be very nice to have in version 5.
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Mar 06, 2003 3:31 pm    Post subject: Reply with quote

I know, VDS 2 had integrated EXEs too! Shocked
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Thu Mar 06, 2003 4:04 pm    Post subject: Reply with quote

FreezingFire wrote:
I know, VDS 2 had integrated EXEs too! Shocked


Integrated? You mean the runtime file was included in the compilation?
That would be cool for a new version.

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Mar 06, 2003 4:55 pm    Post subject: Reply with quote

Yes. You can also achieve that by using tools like PGWARE's Alloy...
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Mar 06, 2003 6:51 pm    Post subject: Reply with quote

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Thu Mar 27, 2003 3:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Mar 27, 2003 6:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Mar 28, 2003 10:42 pm    Post subject: Reply with quote

excellent!!!

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Sun Mar 30, 2003 6:35 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group