Jump to content

Recommended Posts

Posted

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

Posted

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

  • Moderators
Posted

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.

Posted

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

Posted

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.

 

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
×
×
  • Create New...