LOULOU Posted September 26, 2004 Posted September 26, 2004 Here is my problem I have two program. The first one (written in autoit) launch an another one written in purebasic. I want that the second program when ending and returning to autoit send data for use in the first program. Is someone can help me ? I try with environemental variable but that's doesn't walk
Guest Guidosoft Posted September 26, 2004 Posted September 26, 2004 Here is my problem I have two program. The first one (written in autoit) launch an another one written in purebasic. I want that the second program when ending and returning to autoit send data for use in the first program. Is someone can help me ? I try with environemental variable but that's doesn't walk <{POST_SNAPBACK}>Does purebasic have registry commands? Teach me them so I may help you.
LOULOU Posted September 27, 2004 Author Posted September 27, 2004 Does purebasic have registry commands? Teach me them so I may help you. <{POST_SNAPBACK}>Yes it have. Now that you give me the idea, i know how to do. Thanks guido
t0ddie Posted September 28, 2004 Posted September 28, 2004 (edited) i want to put my 2 cents in even though you got it figured out. with program2... that is your purebasic program. i would add something to that program, that would place the variables you want to save into a .txt file. then... what i would do, is have a function like this in the autoit script. ;SOME CODE HERE IF YOU WANT AdLibEnable("P2ended") ;YOUR AUTOIT ;SCRIPT IN ;HERE AdLibDisable() AutoItWinSetTitle("shutdown") While ProcessExists("program2.exe") Sleep(100) WEnd :THE REST OF YOUR SCRIPT AFTER YOU HAVE THE INFO FROM PROGRAM 2 Func P2ended() If Not ProcessExists("program2.exe") Then ;READ THE VAR'S FROM THE .TXT FILE EndFunc well, thats my 2 cents. you would'nt have to even TOUCH the registry this way. might make it more compatible on more computers with regedit rights disabled. ~Todd EDIT: i just wanted to also mention, even when using AUTOIT alone, you cannot pass variables between 2 seperate scripts. especially not between 2 seperate scripting languages. but this way allows you to. and i just added the functionality of having it know when the other program was finished, because thats what you asked for i think. send variables to autoit FROM the SECOND program after it ends... right? Edited September 28, 2004 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now