Ramanji.M Posted June 5, 2006 Share Posted June 5, 2006 (edited) Hi craft,I am developing application in vc++ 6.0. i want run script file from vc++.but i need to pass values from vc++ to script and get back (string) from of script after exit of sccript to vc++.How?if any one know? pl help mesample is script files name is word.au3If $CmdLine[0] = 0 then exit(1)endif$DN=Int($CmdLine[1])MyDouble()Exit($dn) ?Func MyDouble() Run("notepad.exe") WinWaitActive("Untitled - Notepad") sleep(500) Send("Hello from ANJI.M Example."& $CmdLine[1] & "{ENTER}") ;dispmet command send("1 2 3 4 5 6 7 8 9 10{ENTER}") Sleep(3000) Send("+{UP 2}") Sleep(500) Send("^c") $DN=ClipGet() Send("!f") Send("x") Sleep(1000) WinWaitActive("Notepad", "No") Send("n") Sleep(1000) WinWaitClose("Untitled - Notepad") MsgBox(0,"your number is present",$DN) return $DNEndFunc Edited June 5, 2006 by Ramanji.M Link to comment Share on other sites More sharing options...
cppman Posted June 5, 2006 Share Posted June 5, 2006 i don't understand your question... ???? Miva OS Project Link to comment Share on other sites More sharing options...
ChrisL Posted June 5, 2006 Share Posted June 5, 2006 Hi craft, I am developing application in vc++ 6.0. i want run script file from vc++.but i need to pass values from vc++ to script and get back (string) from of script after exit of sccript to vc++.How? if any one know? pl help me sample is script files name is word.au3 If $CmdLine[0] = 0 then exit(1) endif $DN=Int($CmdLine[1]) MyDouble() Exit($dn) ? Func MyDouble() Run("notepad.exe") WinWaitActive("Untitled - Notepad") sleep(500) Send("Hello from ANJI.M Example."& $CmdLine[1] & "{ENTER}") ;dispmet command send("1 2 3 4 5 6 7 8 9 10{ENTER}") Sleep(3000) Send("+{UP 2}") Sleep(500) Send("^c") $DN=ClipGet() Send("!f") Send("x") Sleep(1000) WinWaitActive("Notepad", "No") Send("n") Sleep(1000) WinWaitClose("Untitled - Notepad") MsgBox(0,"your number is present",$DN) return $DN EndFunc You could Wite it to a text file FileWrite() You Could Write it to the registry RegWrite() You Could put it on the clipboard ClipPut() You could also use the Stdin/out method use the beta version of AutoIT [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Uten Posted June 5, 2006 Share Posted June 5, 2006 EnvGet, EnvSet. You can robably find code for environment variables on the net. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
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