IvoryBlade Posted October 13, 2006 Share Posted October 13, 2006 I get the handle of progress bar on any window but i cant use GuiCtrlRead with it... it returns 0... but i can use Listview function using control handle from any window... i need fresh ideas.... Link to comment Share on other sites More sharing options...
jpm Posted October 13, 2006 Share Posted October 13, 2006 post a sample of your script. It is difficult to help you with such open question Link to comment Share on other sites More sharing options...
IvoryBlade Posted October 13, 2006 Author Share Posted October 13, 2006 For Example: $main_window=WinGetHandle("Title","Text") $progress=ControlGetHandle("Title","Text",ControlID) $percent=GUICtrlRead($progress) ;$percent always retuns 0 Same code with Listview works fine $main_window=WinGetHandle("Title","Text") $Listview=ControlGetHandle("Title","Text",ListViewControlID) after that i can use all functions for Listview and even user defined ListView functions Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 13, 2006 Moderators Share Posted October 13, 2006 For Example:$main_window=WinGetHandle("Title","Text")$progress=ControlGetHandle("Title","Text",ControlID)$percent=GUICtrlRead($progress);$percent always retuns 0Same code with Listview works fine$main_window=WinGetHandle("Title","Text")$Listview=ControlGetHandle("Title","Text",ListViewControlID)after that i can use all functions for Listview and even user defined ListView functionsIf you are trying to use GUICtrlRead() on an application other than AutoIt, you've mis-read something somewhere that would give you the idea you could do this.If this is an outside application, you may want to look at WinGetText() or ControlGetText().What you've provided both in comments and in "script" (not really anything any one can run to debug), are lacking in information. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
GaryFrost Posted October 13, 2006 Share Posted October 13, 2006 StatusbarGetText ( "title" [, "text" [, part]] ) 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...
IvoryBlade Posted October 13, 2006 Author Share Posted October 13, 2006 I've tried to say that if i can get handle to Listview control and use any functions like _GUICtrlListViewGetItemCount (or any other from GUIListView Managment) there must be some way to get information from progress bar control.... StatusbarGetText doesnt work with progress bar control Link to comment Share on other sites More sharing options...
GaryFrost Posted October 13, 2006 Share Posted October 13, 2006 I've tried to say that if i can get handle to Listview control and use any functions like _GUICtrlListViewGetItemCount (or any other from GUIListView Managment) there must be some way to get information from progress bar control....StatusbarGetText doesnt work with progress bar controlJust because one can be done as in ListView UDFs dosen't mean the other can be done in the same methodmy guess is you'll have to screen scrap or something. 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...
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