Sign in to follow this  
Followers 0
Guest cedlef

Help for catching progress bar value

4 posts in this topic

Hi everyone.

I ve just discovered that wonderful soft. What a great work guys.

I can't find how to catch the value of a progress bar within a software installation window.

Autoit info window give me the controlid of that progress bar but there isn't any function to interact with it.

If anyone has any idea...

Thanks anyway

PS : i think autoIt plus kixtart make a great couple. In fact, autoit is way more stronger than kixtart for gui and installation kind of thing. But, there are some things that kixtart can do and autoIt can't. May be you developers could you take some ideas to create a greater scripting language.

Good night.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

c++ function from MSDN:

lResult = SendMessage(      // returns LRESULT in lResult     (HWND) hWndControl,      // handle to destination control     (UINT) PBM_GETPOS,      // message ID     (WPARAM) wParam,      // = 0; not used, must be zero    (LPARAM) lParam      // = 0; not used, must be zero );

Uses comctl32.dll

need to translate into DllCall

<{POST_SNAPBACK}>

Not sure about the DllCall but this might work

Func _PBGetPos($h_wnd)
    Const $WM_USER = 0x400
    Const $PBM_GETPOS = ($WM_USER+8)
    Return GUICtrlSendMsg($h_wnd, $PBM_GETPOS, 0, 0)
EndFunc

not sure of correct format for this one but I think this is it for dllcall

Const $WM_USER = 0x400
    Const $PBM_GETPOS = ($WM_USER+8)
    $pos = DllCall("user32.dll","int","SendMessage","hwnd",$h_wnd,"int",$PBM_GETPOS,"long",0,"long",0)
    MsgBox(0,"pos",$pos[0])

Edit: not sure if int or long is the replacement in dllcall for uint

Edited by gafrost

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

A bit more complicated than i thought. But at least, it made me discovered Win Api!!!

Thanks a lot you guys.

:(

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