Jump to content
Sign in to follow this  
robert774

newbie need help with (?)litview(?)

Recommended Posts

robert774

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
GaryFrost

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.

 

Share this post


Link to post
Share on other sites
robert774

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.