Do you mean "wheels up" and "wheels down" on a flying simulator?
Depends on how programmable the mouse is with respect to macro's and using one button to simulate some combination of keyboard keys to raise and lower the wheels.
Would also need some detection function to note the wheels' existing position: I.e., if "down" then raise, if "up" then lower. Conditional logic.
You could start with the following links:
https
/wellsr.com/vba/add-ins/
Or find the User Guide/Manuals for programmable mice. E.g.:
https/www.amazon.com/Logitech-Lag-Free-Wireless-Gaming-Mouse/dp/B00E4MQODC
That would be another way to determine if your requirement is viable.
Key is, I believe, being able to know the current wheel state - up or down.