Sign in to follow this  
Followers 0

Using AutoITX in Visual Basic 6 Demo available

12 posts in this topic

#1 ·  Posted (edited)

Have attached a zip containing a very small project just to show how to use AutoItX DLL in Visual Basic6.

It will check whether notepad window is open. If not, it will open Notepad and send some text to the notepad.

Could be useful for the beginners to start with.

autoitXDemo.zip

Edited by sl_alagappan

Share this post


Link to post
Share on other sites



#2 ·  Posted

Good Idea,

You did not recognize it because you did not add Option Explicit but:

You have a typo that should be corrected

Set cauotoit = Nothing

Should be

Set cAutoit = Nothing

Share this post


Link to post
Share on other sites

#3 ·  Posted

Ah, very good idea. Posted Image

Share this post


Link to post
Share on other sites

#4 ·  Posted

fixed the small bugs mentioned by bshoenhair and did modified post.

Thanks.

Share this post


Link to post
Share on other sites

#5 ·  Posted

Excellent, this example helped me :)

thanks

Share this post


Link to post
Share on other sites

#6 ·  Posted

Excellent, this example helped me :)

thanks

<{POST_SNAPBACK}>

The actual credit goes to Jon and all the AutoIT Developer Team

who hv made this fantastic very useful program!

Share this post


Link to post
Share on other sites

#7 ·  Posted

ok i am having trouble identifying a couple thing in .net

_ArrayCreate , is this supported with the dll or not

i have tried several things to make it work but nope it wont

Share this post


Link to post
Share on other sites

#8 ·  Posted

ok i am having trouble identifying a couple thing in .net

_ArrayCreate  , is this supported with the dll or not

i have tried several things to make it work but nope it wont

<{POST_SNAPBACK}>

_????? functions are UDF's (User Defined Functions, which are functions coded in regular AutoIt3 syntax. so they will not work in the dll version since it requiers an #include <array.au3> .......

Visit the SciTE4AutoIt3 Download page for the latest versions                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#9 ·  Posted

Hallo,

thanks for the Sample.

Onew Question: What is the way to get Autoit variablen in VB i.E. @ComputerName, @IPAddress1,.. ?

Fabian

Share this post


Link to post
Share on other sites

#10 ·  Posted

You can't. You need to find a native way to learn such information.

Share this post


Link to post
Share on other sites

#11 ·  Posted

Have attached a zip containing a very small project just to show how to use AutoItX DLL in Visual Basic6.

It will check whether notepad window is open. If not, it will open Notepad and send some text to the notepad.

Could be useful for the beginners to start with.

Thanks very much. Indeed this is VERY helpful. I had zero experience in using AutoIt as an ActiveX object from within Visual Basic (2005) and this got me started right away. This should stay on top of the ActiveX forum.

Share this post


Link to post
Share on other sites

#12 ·  Posted

Dear sir,

do you have more sample of how to use AutoItX DLL in Visual Basic6?

and another thing i want to know can i able to run 'autoit script as asusal' in the vb6?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0