kuhasu Posted September 3, 2009 Share Posted September 3, 2009 How can I let autoit script run in VBS by the way of ActiveX/COM? It means the AutoitX can be run as a procedure in windows,right? No need to compile the code by far. Thank you very much! Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 3, 2009 Share Posted September 3, 2009 AutoItX does not run AutoIt au3 scripts. It just contains some functions that AutoIt has so you can call them from other languages. Link to comment Share on other sites More sharing options...
kuhasu Posted September 3, 2009 Author Share Posted September 3, 2009 oops~ then is there any solutions let me can run autoit script in VBS? I just wanna write some code to focus a window,send some orders,text,and key press...this kinda things. And how can I let the ActiveX be activated with the VBS and let it stay in RAM unless I quit the VBS. Thank you. Link to comment Share on other sites More sharing options...
kuhasu Posted September 3, 2009 Author Share Posted September 3, 2009 (edited) BTW,I also need to put the value from a macro variable in the VBScript to another macro variable in autoit script in the code of vbs. Any suggestions? Thank you so~ much! Edited September 3, 2009 by kuhasu Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 3, 2009 Share Posted September 3, 2009 You can just translate the AutoIt code to VBS. AutoItX has some of the AutoIt built in functions. Link to comment Share on other sites More sharing options...
kuhasu Posted September 4, 2009 Author Share Posted September 4, 2009 (edited) so is there any materials for VBS?window control,paste the variables of macro variable,submit press?....just like autoit Thank you. Edited September 4, 2009 by kuhasu Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 4, 2009 Share Posted September 4, 2009 Look at the functions available in AutoItX. The help file is included under the extras in the start menu. Link to comment Share on other sites More sharing options...
kuhasu Posted September 5, 2009 Author Share Posted September 5, 2009 thank you. then how can I pass the value of a variable in VBS to the autoit script? Actually AutoitX runs in a VBS way,so the macro variable can be recognized by autoitX directly,am I right? Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 5, 2009 Share Posted September 5, 2009 (edited) I'm not entirely sure what you mean. Can you try explaining it differently? Edited September 5, 2009 by Richard Robertson Link to comment Share on other sites More sharing options...
kuhasu Posted September 5, 2009 Author Share Posted September 5, 2009 oops~ When we run autoitX scripts in VBS environment,actually we are running VBscript.And the autoitX in activeX or in dll is a package of some of the functions.Right?Thus,actually we are running VBS with VBS functions,not autoit scripts in VBS? Link to comment Share on other sites More sharing options...
Richard Robertson Posted September 6, 2009 Share Posted September 6, 2009 Correct. But AutoItX lets you call some AutoIt style functions from VBS. Like WinList. AutoItX lets you call WinList in VBS. Link to comment Share on other sites More sharing options...
kuhasu Posted September 6, 2009 Author Share Posted September 6, 2009 Thx,dude! Link to comment Share on other sites More sharing options...
trinitrotoluen Posted October 16, 2009 Share Posted October 16, 2009 But there are some functions were not in AutoITX. E.g : Msgbox, StringInStr,... Link to comment Share on other sites More sharing options...
Richard Robertson Posted October 18, 2009 Share Posted October 18, 2009 Any language that can call AutoItX should have its own message box and string functions. Link to comment Share on other sites More sharing options...
kuhasu Posted April 21, 2010 Author Share Posted April 21, 2010 Any language that can call AutoItX should have its own message box and string functions.Then how can we call dll by autoitX in vbs?you know vbs can not support dll calling directly Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 21, 2010 Share Posted April 21, 2010 DllCall is not implemented in AutoItX. Why not just use AutoIt directly instead of VBS? Link to comment Share on other sites More sharing options...
kuhasu Posted April 21, 2010 Author Share Posted April 21, 2010 DllCall is not implemented in AutoItX.Why not just use AutoIt directly instead of VBS?Well~vbs is a must...Any ideas pls? Link to comment Share on other sites More sharing options...
Richard Robertson Posted April 21, 2010 Share Posted April 21, 2010 (edited) Why is it a must? And no, there are no suggestions because you already said it won't work. And don't make two threads on the same topic. Edited April 21, 2010 by Richard Robertson Link to comment Share on other sites More sharing options...
kuhasu Posted April 21, 2010 Author Share Posted April 21, 2010 Why is it a must?And no, there are no suggestions because you already said it won't work.And don't make two threads on the same topic.thank you. Link to comment Share on other sites More sharing options...
doudou Posted May 3, 2010 Share Posted May 3, 2010 How can I let autoit script run in VBS by the way of ActiveX/COM? Take a look here: AU3Automation UDFS & Apps: Spoiler DDEML.au3 - DDE Client + ServerLocalization.au3 - localize your scriptsTLI.au3 - type information on COM objects (TLBINF emulation)TLBAutoEnum.au3 - auto-import of COM constants (enums)AU3Automation - export AU3 scripts via COM interfacesTypeLibInspector - OleView was yesterday Coder's last words before final release: WE APOLOGIZE FOR INCONVENIENCEĀ 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