szydel Posted July 31, 2006 Share Posted July 31, 2006 Hi, Im new to Autoit, im using AutoItx3.dll to run its functions form C++. I need access to SysTray to close application. I found scripts that can do this but my question is: How can I run existing scripts or functions form C++?? do I have to rewrite them adding "AU3_" before every function. Is there any chance it would work. Is there any other way? Moreover can I rewrite every script so that it works in C++. thaks for your attention Link to comment Share on other sites More sharing options...
nfwu Posted July 31, 2006 Share Posted July 31, 2006 Moreover can I rewrite every script so that it works in C++.Not every single script can be rewritten.do I have to rewrite them adding "AU3_" before every functionYou need to change the syntax of the scipt as well.Is there any chance it would work.Depends on the script.Why not just use C++'s system() function with a compiled AutoIt script as the parameter?#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
szydel Posted July 31, 2006 Author Share Posted July 31, 2006 thanks for your help Why not just use C++'s system() function with a compiled AutoIt script as the parameter?Yes that's the way, it would work but, It's not good/elegant solution I need C++ API to it as it should be extendible and scalible. Putting a system invocation of exe file makes it very much uneditable Not every single script can be rewritten.im thinking of this one, do you think it's possible to rewrite it ??http://www.autoitscript.com/forum/index.ph...ost&id=5938:~) Link to comment Share on other sites More sharing options...
nfwu Posted July 31, 2006 Share Posted July 31, 2006 Could you repost that link? #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
szydel Posted July 31, 2006 Author Share Posted July 31, 2006 sorry try this one : http://www.autoitscript.com/forum/index.ph...l=shell_trayWndthe link is in this topic i dont know why previous one didnt work ... Link to comment Share on other sites More sharing options...
nfwu Posted July 31, 2006 Share Posted July 31, 2006 Yes, it can be written in C++. #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() 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