Jump to content

Help for catching progress bar value


Guest cedlef
 Share

Recommended Posts

Guest cedlef

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.

Link to comment
Share on other sites

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.

 

Link to comment
Share on other sites

Guest cedlef

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

Thanks a lot you guys.

:(

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