robert774 Posted July 2, 2006 Share Posted July 2, 2006 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 More sharing options...
PsaltyDS Posted July 2, 2006 Share Posted July 2, 2006 (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. Edited July 2, 2006 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 More sharing options...
GaryFrost Posted July 3, 2006 Share Posted July 3, 2006 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 More sharing options...
robert774 Posted July 3, 2006 Author Share Posted July 3, 2006 (edited) tnx for you replay . unfortunatly ControlListView throw error , $items is empty . so it must be grrrr -custom control. i'll try something different then automation ... tnx Edited July 3, 2006 by robert774 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now