Sign in to follow this  
Followers 0
ileandros

ProgressBar set up.

6 posts in this topic

Hi,

I have a programm with an ie navigator. I am trying to add a progress bar to it but i can't. Only thing i managed is adding a fake progress bar with some sleep seconds between the progress change of the progress bar.

Is it able to make it read the IE progress and work according with it???

Thanks in advance.


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

;) Wish to track IE progress-bar? I suggest using AU3Info tool to get the classname and instance of progress-bar (it is this for my case:)

Class: msctls_progress32

Instance: 1

ClassnameNN: msctls_progress321

Name:

Advanced (Class): [CLASS:msctls_progress32; INSTANCE:1]

ID: 1

Text:

Position: 1107, 825

Then you could use GuiCtrlRead() and ControlGetHandle() to solve your problem...

The progress bar isn't visible by default, you will have to load a page and then use AU3Info tool on it.

Edited by MKISH

----------------------------------------

:bye: Hey there, was I helpful?

----------------------------------------

My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post


Link to post
Share on other sites

I am trying to find another way. I want to make it base on my script not on IE progress bar..


I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

GUICtrlRead() can't be used to read data from controls in external applications.

There are ways to do it but they are not good. Is there another way to make it work base on script and not on Progressbar of the IE?

I feel nothing.It feels great.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

If you want to get position of progressbar in external application then you can do it like this

#include <ProgressConstants.au3>
#include <SendMessage.au3>

$hProgress = ControlGetHandle(...)
_SendMessage($hProgress, $PBM_GETPOS, 0, 0)

EDIT: MSDN

http://msdn.microsoft.com/en-us/library/windows/desktop/bb760830%28v=vs.85%29.aspx

Edited by Zedna

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