Jump to content

newbie need help with (?)litview(?)


Recommended Posts

atachment included

I have problem to interact control.i think its listview.I would like to know what elemet is highlighten ,select

specified element from list ,etc but all functions witch i use return 0 (errors).what i can get its only handle(ControlGetHandle ( "Przeglądarka działek", "", "TViewer1")-it gives me handle in hexdecimal-should i first convert it to decimal to interact control?)

ControlListView("Przeglądarka działek", "", "TViewer1","GetItemCount") returns 0 .when i use handle insted of "tviewer1" also returns 0.

GUICtrlRead,GUICtrlGetState,ControlCommand also returs 0.

plz help .i cant solve this problem for few days.

thx for any help

Link to comment
Share on other sites

atachment included

I have problem to interact control.i think its listview.I would like to know what elemet is highlighten ,select

specified element from list ,etc but all functions witch i use return 0 (errors).what i can get its only handle(ControlGetHandle ( "Przeglądarka działek", "", "TViewer1")-it gives me handle in hexdecimal-should i first convert it to decimal to interact control?)

ControlListView("Przeglądarka działek", "", "TViewer1","GetItemCount") returns 0 .when i use handle insted of "tviewer1" also returns 0.

GUICtrlRead,GUICtrlGetState,ControlCommand also returs 0.

plz help .i cant solve this problem for few days.

thx for any help

You usually don't need to interpret or convert handles, just use them. I believe the AutoIT convention for handles is a leading "h" so that should work:

$hTViewer1 = ControlGetHandle ( "Przeglądarka działek", "", "TViewer1")

(Note, I don't have that character set loaded, so the window title is approximate.) (Cut and paste from your post worked fine.)

Problem is, that may be a custom control - not a ListView. :D

Edited by PsaltyDS
Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Note: AutoIt only works with standard Microsoft controls - some applications write their own custom controls which may look like a standard MS control but may resist automation. Experiment!

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

tnx for you replay .

unfortunatly ControlListView throw error , $items is empty .

so it must be grrrr -custom control.

:D

i'll try something different then automation ...

tnx

Edited by robert774
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...