Jump to content

Get percent value from progress bar in any other form?


IvoryBlade
 Share

Recommended Posts

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

  • Moderators

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.

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

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

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.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...