Jump to content

set progress prosition in an external window


Recommended Posts

Hello,

send a GUICtrlSetData(...) command or GUICtrlSendMsg(...) to an external window (AutoIt3) for a progress control ($PBM_SETPOS) don't work but ControlMove(..) works.

Here is the sourcecode:

;AutoItSetOption("WinTitleMatchMode", 4)
;$handle = WinGetHandle('classname=AutoIt v3 GUI')

$ControlID=3
ControlMove("Batch progress", "", $ControlID, 10, 200); This works
GUICtrlSetData ($ControlID,90); Don't work
GUICtrlSendMsg( $ControlID, $PBM_SETPOS,20,0); Don't work

Can anyone tell me howto set the position?

Edited by Excenter
Link to comment
Share on other sites

Hello,

send a GUICtrlSetData(...) command or GUICtrlSendMsg(...) to an external window (AutoIt3) for a progress control ($PBM_SETPOS) don't work but ControlMove(..) works.

Here is the sourcecode:

;AutoItSetOption("WinTitleMatchMode", 4)
;$handle = WinGetHandle('classname=AutoIt v3 GUI')

$ControlID=3
ControlMove("Batch progress", "", $ControlID, 10, 200); This works
GUICtrlSetData ($ControlID,90); Don't work
GUICtrlSendMsg( $ControlID, $PBM_SETPOS,20,0); Don't work

Can anyone tell me howto set the position?

The control ID is only usable in the gui that created it for ControlSendMessage AFAIK. To control a progress bar in another program you need to use _SendMessage and you need to know the handle for the control. Or you could send a message to the window for the app that has the progress bar and let that app control the progress bar if you are writing the other program.
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
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...