Jump to content

Error with A3LListView.au3


 Share

Recommended Posts

Hi,

I become this Error Invalid window handle passed to _Mem_CtrlInit [0x0001007A]

$handle = ControlGetHandle("Program Manager", "", "SysListView321")

eg.

$Find = _ListView_FindText($handle, $sText, 0)

When i work with older zip Version from Auto3Lib or A3LListView.au3 1.03.2007 it works. (Not with 04.05.2007)

But the older Version don´t found _ListView_GetItemChecked($hWnd, $iIndex)

greeting Frank

Link to comment
Share on other sites

Hi,

I become this Error Invalid window handle passed to _Mem_CtrlInit [0x0001007A]

$handle = ControlGetHandle("Program Manager", "", "SysListView321")

eg.

$Find = _ListView_FindText($handle, $sText, 0)

When i work with older zip Version from Auto3Lib or A3LListView.au3 1.03.2007 it works. (Not with 04.05.2007)

But the older Version don´t found _ListView_GetItemChecked($hWnd, $iIndex)

greeting Frank

Wrong Section
Link to comment
Share on other sites

Actually, the Auto3Lib documentation says to post all questions in the Auto3Lib thread itself. Easier for me to help people when I don't have to search the whole forum. :)

As to the OPs question, you are not passing a valid handle to the ListView function, hence the error message. I would suggest that you make sure you has the latest release of AutoIt and Auto3Lib before proceeding. If you still get the error, post a small (working) script in the Auto3Lib thread that shows the error and I'll be glad to help you out.

Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

Actually, the Auto3Lib documentation says to post all questions in the Auto3Lib thread itself. Easier for me to help people when I don't have to search the whole forum. :)

As to the OPs question, you are not passing a valid handle to the ListView function, hence the error message. I would suggest that you make sure you has the latest release of AutoIt and Auto3Lib before proceeding. If you still get the error, post a small (working) script in the Auto3Lib thread that shows the error and I'll be glad to help you out.

Hi PaulIA

I have install the latest Versionen and it don´t work. (Only with older Version)

I become the Handle from the first MsgBox and then the Error

Error:

Invalid window handle passed to _Mem_CtrlInit [0x0001007A]

Test Script:

#include <A3LListView.au3>

$handle = ControlGetHandle("Program Manager", "", "SysListView321")
MsgBox(0, '', $handle)

$sText = "Mozilla Firefox"
$Find = _ListView_FindText ($handle, $sText, 0)
MsgBox(0, '', $Find)
Exit

On older Auto3Lib Version I become a MsgBox with the index.

THX for Help

Frank

Link to comment
Share on other sites

$handle = ControlGetHandle("Program Manager", "", "SysListView321")
If @error Then
  MsgBox(48,'Error', "Can't get ListView handle!")
  Exit
EndIf
So I become the handle

$handle = ControlGetHandle("Program Manager", "", "SysListView321")
MsgBox(0, '', $handle)

When I include the latest Auto3Lib not, only with a older Version.

With older Version:

Posted Image

Latest Auto3Lib:

Posted Image

Edited by Thunder-man
Link to comment
Share on other sites

When I run the following, it works on my system:

#include <A3LListView.au3>

$hList = ControlGetHandle("Program Manager", "", "SysListView321")
if $hList = 0 then _Lib_ShowError("Unable to get handle")

$iIndex = _ListView_FindText($hList, "My Computer")
_Lib_ShowMsg($iIndex)

There are some things that might be giving you trouble. For example, if you're running some desktop replacement where the desktop is not a ListView anymore. More than likely, I suspect it has more to do with how AutoIt is set up on your machine. Just for giggles, try this out:

1. Uninstall Auto3Lib and then AutoIt.

2. Delete the "C:\Program Files\AutoIt3" directory if it still exists.

3. Search your hard drive and delete any stray "A3L*.au3" files.

4. Download the latest version of AutoIt and install in the default location.

5. Download the latest version of Auto3Lib and install in the default location.

6. Run the above script.

If you're still having a problem, drop me a line in the Auto3Lib thread in the Examples forum and we'll see what we can do to figure it out.

Auto3Lib: A library of over 1200 functions for AutoIt
Link to comment
Share on other sites

When I run the following, it works on my system:

#include <A3LListView.au3>

$hList = ControlGetHandle("Program Manager", "", "SysListView321")
if $hList = 0 then _Lib_ShowError("Unable to get handle")

$iIndex = _ListView_FindText($hList, "My Computer")
_Lib_ShowMsg($iIndex)
Ok, THX.

It don´t work by me.

Also no Error "Unable to get handle"

I have a new install of AutoIt and Auto3Lib.

(My PC 64 Bit AMD)

When I reboot My PC and klick F11, I become a new Windows XP from a Image.

Will Test this on a clean Maschiene...

greeting

Frank

[Edit]

I don´t know what happend,

on a clean Maschiene it work´s

Now with the new autoit-v3.2.4.0 Version

Edited by Thunder-man
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...