Jump to content

GetText not retrieving name of the index


Shravank
 Share

Recommended Posts

I am trying to get the Text of given item in controllistview object (SysListView32). 

ControlListView("Select", "", "[CLASS:SysListView32; INSTANCE:1]", "Select",0,0)

This statement is selecting the item but below statement is not getting the text of the item. It is returning item no not text.

    $txtItem = ControlListView("Select", "", "[CLASS:SysListView32; INSTANCE:1]", "GetText",0)

Let me know if I am missing anything here.

Link to comment
Share on other sites

Did not try but maybe you need a second 0 here (...., "GetText",0, 0)

Do you get an error? Always check for errors.

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

  • Moderators

Moved to the appropriate forum, as the DEV forum very clearly states:

Quote

Do not create AutoIt-related topics here, use AutoIt General Help and Support

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

On installing SciTE4AutoIt3.exe, the program displays the name of the item. However, while compiling, I am encountering below error message:

---------------------------
AutoIt Error
---------------------------
Line 45  (File "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3"):

#include <WinAPIFiles.au3>

Error: Error opening the file.

---------------------------
OK   
---------------------------
How to resolve this issue.

Link to comment
Share on other sites

  • Developers
10 minutes ago, Shravank said:

How to resolve this issue.

You are sure you installed Autoit3 in the standard way with the standard installer as this sounds like a standard UDF can't be found?
If so, which version of AutoIt3 and SciTE4AutoIt3 are you running?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Hi,

I have updated both to the latest and 'AutoIt' error is resolved.

for the actual problem under this thread, the problem is resolved if the script is compiled using 'AutoIt v3' -> Compile Script to .exe (x64) option. Using this .exe, it is getting the item text.

If it is compiled from Tools->Compile option within AutoIT, then GetText is not getting the text of the item.

Thanks,

Shravan

 

 

On installing SciTE4AutoIt3.exe, the program displays the name of the item. However, while compiling, I am encountering below error message:

---------------------------
AutoIt Error
---------------------------
Line 45  (File "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3"):

#include <WinAPIFiles.au3>

Error: Error opening the file.

---------------------------
OK   
---------------------------
How to resolve this issue.

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

×
×
  • Create New...