Get the current position of a Track Bar control.
cGetTrackPos (window-handle)
(i) window-handle Windows handle to a Track Bar common control.
(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".
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