Jump to content
Sign in to follow this  
The_Noob

Read value from a progress bar

Recommended Posts

The_Noob

Ok i want to try to sreamline a automated process, and im wondering if there is a command that will read the percentage or value of the progress bar. I have trid controlgettext, but that doesnt work. Any suggestions?

Share this post


Link to post
Share on other sites
BrettF

Ok i want to try to sreamline a automated process, and im wondering if there is a command that will read the percentage or value of the progress bar. I have trid controlgettext, but that doesnt work. Any suggestions?

Any Code??

Share this post


Link to post
Share on other sites
BrettF
The_Noob

Try:

$var = GUICtrlRead ($progress)

$var will = the current percentage.

No its not a GUI that im making... its a different window. I dont even know if its possable with Autoit... i was just wondering...

Share this post


Link to post
Share on other sites
BrettF
Zedna

Look at Auto3Lib from PaulIA

A3LProgress.au3

EDIT:

This should work but it's missing there

Global Const $PBM_GETPOS                        = $WM_USER + 8

Func _Progress_GetPos($hWnd)
  Return _API_SendMessage($hWnd, $PBM_GETPOS, 0, 0)
EndFunc
Edited by Zedna

Share this post


Link to post
Share on other sites
The_Noob

I should have clearified, its not a GUI im making, but rather another program.

Share this post


Link to post
Share on other sites
PaulIA

I should have clearified, its not a GUI im making, but rather another program.

Doesn't matter. Auto3Lib will read ProgressBar controls in external apps as well. (And I've added the missing function Zedna is referring to a LONG time ago). :)

Auto3Lib: A library of over 1200 functions for AutoIt

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.