cGetTrackPos

Get the current position of a Track Bar control.

Syntax:

cGetTrackPos (window-handle)

Parameters:

(i) window-handle Windows handle to a Track Bar common control.

Return:

(i) position Current position of Track Bar.

 

You can get the current position of a Track Bar control with this function. The class name for the Tool Bar control is "msctls_trackbar32".

 

Example:

AddExtender("wwctl44i.dll",0,"wwctl64i.dll")

; Find the key board track bar handle Run("rundll32.exe", "shell32.dll,Control_RunDLL main.cpl,Keyboard") hwndex = DllHwnd("Keyboard Properties") hwnd = cWndbyclass(hwndex,"#32770") hwnd = cWndbyclass(hwnd,"msctls_trackbar32") ; Get the current position. Position = cGetTrackPos(hwnd) ; Move the position up one Position = Position + 1 If cSetTrackPos(hwnd, Position)    Message("Repeat delay", Position) Else    Message("Repeat delay", "%Postition% failed") EndIf Exit

See Also:

cGetTrackMax, cGetTrackMin