Sign in to follow this  
Followers 0
IvoryBlade

Get percent value from progress bar in any other form?

7 posts in this topic

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... :lmao: i need fresh ideas....

Share this post


Link to post
Share on other sites



post a sample of your script. It is difficult to help you with such open question :lmao:

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

If 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.


[center]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.[/center]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Just because one can be done as in ListView UDFs dosen't mean the other can be done in the same method

my 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.

 

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  
Followers 0