Jump to content

VB RunTime Error '429' using AutoItX3.dll


Just_Plain_Cool
 Share

Recommended Posts

I don't think that will simplify things for you. That just stretches the problem to not only include your current issues within VB but then you will be running into debugging your autoit scripts on top of it. I mean it should work but it will make your application less portable. If you included the dll registration directly into the exe then all you would have to do is pass the scripts to be run by the sceduler... the scheduler itself... and the dll files required for VB. If you wanted to enclode that all into a single executable it would be possible if you used my EXE wrapper shared on the Scripts and Scraps forum.

Overall it comes down to that it is your application... you are the developer so you have to make these decisions. There are too many factors that I am unaware of that I don't know that I can even make a decent suggestion for this question.

This post probably isn't going to get you any closer to your goal... just make a decision.

*** Matt @ MPCS

<{POST_SNAPBACK}>

Okay, I was trying to weasel out, you caught me. :)

However, when I run put that module in and attempt to run, I am getting an error: 'Sub or Function Not Defined' in this line:

CallWindowProc lngProcAddress, lngHwnd, ByVal 0&, ByVal 0&, ByVal 0&

I called the func with:

RegisterServer frmMain.hWnd, App.Path & "\AutoItX3.dll", True

JPC :)

Link to comment
Share on other sites

Okay, I was trying to weasel out, you caught me.   :)

However, when I run put that module in and attempt to run, I am getting an error:  'Sub or Function Not Defined' in this line:

CallWindowProc lngProcAddress, lngHwnd, ByVal 0&, ByVal 0&, ByVal 0&

I called the func with:

RegisterServer frmMain.hWnd, App.Path & "\AutoItX3.dll", True

JPC  :)

<{POST_SNAPBACK}>

Add this to the top of the module by all of the other declares:

Declare Function CallWindowProc Lib "user32.dll" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

*** Matt @ MPCS

EDIT:

I recently found this on a forum on the net... give it a try and see if it works.

Public function DllRegisterServer Lib "AutoItX3.dll" Alias "DllRegisterServer"() as Long
Edited by Matt @ MPCS
Link to comment
Share on other sites

Add this to the top of the module by all of the other declares:

Declare Function CallWindowProc Lib "user32.dll" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long

*** Matt @ MPCS

EDIT:

I recently found this on a forum on the net... give it a try and see if it works.

Public function DllRegisterServer Lib "AutoItX3.dll" Alias "DllRegisterServer"() as Long

<{POST_SNAPBACK}>

Hi Matt,

The first part fixed it. It is now registering the dll and therefore the rest of the code is working perfectly here. I am going to send it to the users and see if it works for them also. I can't imagine why it wouldn't now, but...

JPC :)

Link to comment
Share on other sites

Hi Matt,

The first part fixed it.  It is now registering the dll and therefore the rest of the code is working perfectly here.  I am going to send it to the users and see if it works for them also.  I can't imagine why it wouldn't now, but...

JPC  :)

<{POST_SNAPBACK}>

That's Great! One more thing though, don't forget to unregister it when the program unloads otherwise it wont get cleaned out of the registery if they decide to delete it.

Good Job!

*** Matt @ MPCS

Link to comment
Share on other sites

That's Great! One more thing though, don't forget to unregister it when the program unloads otherwise it wont get cleaned out of the registery if they decide to delete it.

Good Job!

*** Matt @ MPCS

<{POST_SNAPBACK}>

I'll add the code to unregister it in the next version. These couple of users aren't going anywhere and this way if it fails, I can determine if the dll was registered or not. :)

JPC :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...