bafh Posted April 7, 2005 Share Posted April 7, 2005 Hello, how can i include visual basic code in an autoit3 script. So far i just compiled the autoit program and the vb program and started the vb program from the autoit program when its needed. but that causes trouble. if this is not possible, how can i make autoit turn off the monitor or make it black for some time. and is there any way to do this batch command with autoit: "anyprogram.exe>hi.txt" the batch program reads all the text in the exe file and copies it to the txt file. thanks alot Link to comment Share on other sites More sharing options...
bafh Posted April 7, 2005 Author Share Posted April 7, 2005 Well, maybe with this "#include" thing? I just saw it and have no idea how to use it. and im not sure if there still has to be more than one file. Any ideas? Thanks Link to comment Share on other sites More sharing options...
quaizywabbit Posted April 7, 2005 Share Posted April 7, 2005 sounds like the AutoItX.dll is what you need to be working with..... [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
bafh Posted April 7, 2005 Author Share Posted April 7, 2005 What can i do with it? Would it be possible to create ONE exe file which includes 3 types of languages (autoit, vb, batch script)? Thats what i need. Thanks for answering Link to comment Share on other sites More sharing options...
igmeou Posted April 8, 2005 Share Posted April 8, 2005 (edited) if this is not possible, how can i make autoit turn off the monitor or make it black for some time.Opt('WinTitleMatchMode', 4) $hwnd = WinGetHandle('classname=Progman') DllCall('user32.dll', 'int', 'SendMessage', 'hwnd', $hwnd, 'int', 274, 'int', 61808, 'int', 2) Sleep(5000) Send ("{Up}")and is there any way to do this batch command with autoit: "anyprogram.exe>hi.txt"RunWait(@ComSpec & " /c ipconfig /all > c:\ipaddress.log") Edited April 8, 2005 by igmeou [font="Arial"]Thanks[/font]If @error = me Then $sorry Else Do $clarifyMe Until $meClear EndIF MsgBox(0,"Special Message!","Special Thanks to " & $allHadReplied,$Forever) Link to comment Share on other sites More sharing options...
bafh Posted April 8, 2005 Author Share Posted April 8, 2005 Thanks alot ill try that. Link to comment Share on other sites More sharing options...
buzz44 Posted April 9, 2005 Share Posted April 9, 2005 (edited) You just cant try run or include a VB Script with AutoIt, they are 2 totally different languages (AutoIt isnt really). You will have to "convert" the VB Script into AutoIt and emulate the outcome. Do what igmeou has done, but you need to understand it. Read the Help file and look up what each function does and how to use it. May your AutoIt scripting experience begin . Edited April 9, 2005 by Burrup qq Link to comment Share on other sites More sharing options...
bafh Posted April 10, 2005 Author Share Posted April 10, 2005 Well, i kind of understand it but have i have to look through it again. I know that you cant combine two different languages, i was thinking about something that makes it work, like a command to show the autoit compiler "hey, this is vbscript now" and it compiles it as vb script, that would work and you could combine the two languages, or cant that work? maybe a new idea for the next autoit version. thanks alot anyway Link to comment Share on other sites More sharing options...
layer Posted April 10, 2005 Share Posted April 10, 2005 Maybe you should have listend to quaizzywabbit... Try the AutoItX, that's what it's there for... It let's you use AutoIt in other languages... Pretty neat, huh? And no, you cannot just tell the compiler, "hey this is vb code now" and have it compile vb code... There is a BIN file to compile AutoIt scripts, so it's like preset to AutoIt code... FootbaG Link to comment Share on other sites More sharing options...
bafh Posted April 10, 2005 Author Share Posted April 10, 2005 And it would not be possible to combine compilers?! i already know that it doesnt work so far but would it be doable? Link to comment Share on other sites More sharing options...
SlimShady Posted April 10, 2005 Share Posted April 10, 2005 And it would not be possible to combine compilers?!i already know that it doesnt work so far but would it be doable?<{POST_SNAPBACK}>I don't feel like posting a whole story. So short answer: no 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