Set the position of a Track Bar control.
cSetTrackPos (window-handle, position)
(i) window-handle Windows handle to a Track Bar common control.
(i) position New position of Track Bar.
(i) @TRUE, if new position set. @FALSE, if position could not be set.
Use this function to set the position of a Track Bar control. Track Bars have an associated position range that can change dynamically. This function returns an error message if the position parameter is outside this range.
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") ; Set position. Position = 1 If Position > cGetTrackMax(hwnd) Message("Track Bar", "position is to large.") Else If Position < cGetTrackMin(hwnd) Message("Track Bar", "position is to small.") Else If cSetTrackPos(hwnd, Position) Message("Track Bar", "Set position to %Position%") Else Message("Track Bar", "Failed to set position %Position%") EndIf EndIf EndIf Exit