Using AutoItX3 object to find value in list - getting error

M

Mmcolli00 Mom

Hi
I am using AutoIt inside my ruby script. The purpose for this is so that
I can check if there is a value, specifically 3432432.exe in a list. I
can't figure out why the method ControlListView is not working. Other
methods are working fine with the AutoItX3 control. Do you know what I
might be missing? The error is below. Thanks MC

Error:
in `method_missing': ControlListView (WIN32OLERuntimeError)
OLE error code:0 in <Unknown>
<No Description>
HRESULT error code:0x8002000e
Invalid number of parameters. from preVolume.rb:70

#snippet
winVol = WIN32OLE.new("AutoItX3.Control")
winVol.WinWait("Vol Win","",5)
winVol.ControlListView("Vol Win", "",3,"FindItem","3432432.exe")
 
M

Marvin Gülker

Mmcolli00 said:
Hi
I am using AutoIt inside my ruby script. The purpose for this is so that
I can check if there is a value, specifically 3432432.exe in a list. I
can't figure out why the method ControlListView is not working. Other
methods are working fine with the AutoItX3 control. Do you know what I
might be missing? The error is below. Thanks MC

Error:
in `method_missing': ControlListView (WIN32OLERuntimeError)
OLE error code:0 in <Unknown>
<No Description>
HRESULT error code:0x8002000e
Invalid number of parameters. from preVolume.rb:70

#snippet
winVol = WIN32OLE.new("AutoItX3.Control")
winVol.WinWait("Vol Win","",5)
winVol.ControlListView("Vol Win", "",3,"FindItem","3432432.exe")

The AutoItX3 documentation says:So I would try:
winVol.ControlListView("Vol Win", "",3,"FindItem","3432432.exe", "")

Marvin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top