Jump to content

Recommended Posts

Posted

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

Posted (edited)

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
Posted (edited)

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

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
×
×
  • Create New...