Simulating mouse clicks on the correct buttons should work. Specifically these commands:
Code:
Identifier: simulate_mouse_click
Parameters: [lclick_down|lclick_up|rclick_down|rclick_up|ldbl_c lick]
Description: Acts as if the given mouse event had happened on the currently 'selected' ui_element (see 'select_element' command)
Sample use: select_element hud_show_buildings_tab
simulate_mouse_click lclick_down
Class: SIMULATE_MOUSE_CLICK
Implemented: Yes
Author: Tom
---------------------------------------------------
Identifier: select_ui_element
Parameters: element id (see available_ui_element_ids.txt for appropriate identifiers)
Description: Use in conjunction with simulate mouse click to store the element that will next recieve the simulated mouse click
Sample use: select_element hud_show_buildings_tab
simulate_mouse_click lclick_down
Class: SELECT_ELEMENT
Implemented: Yes
Author: Tom
Though, as alpaca said, this only works for a few specific scrolls.
Bookmarks