Setting the position of the seekbar of foobar2000
Posted: 30 Jan 2023, 23:18
I'm trying to set the position of this seekbar in foobar2000:
I have attempted TBM_SETPOS but to no avail. TBM_GETRANGEMIN and TBM_GETRANGEMAX both reports 0. Is this not a regular win32 slider control?
Code: Select all
window := "ahk_class {97E27FAA-C0B3-4b8e-A693-ED7881E99FC1}"
seekbar := "{596C5150-D8FF-4ed4-81AB-99B3DDA08AF1}1"
SendMessage, 0x0405, 1, 10, % seekbar, % window ; TBM_SETPOS
msgbox % ErrorLevel ; -> 0 but no effect
SendMessage, 0x0401, 0, 0, % seekbar, % window ; TBM_GETRANGEMIN
rangemin := ErrorLevel
SendMessage, 0x0402, 0, 0, % seekbar, % window ; TBM_GETRANGEMAX
rangemax := ErrorLevel
msgbox % rangemin " - " rangemax ; -> 0 - 0