feat(api): Expand API hooks with drag and right_click actions
This commit is contained in:
@@ -190,6 +190,18 @@ class ApiHookClient:
|
||||
"""
|
||||
return self.set_value(item, value)
|
||||
|
||||
def drag(self, src_item: str, dst_item: str) -> dict[str, Any]:
|
||||
"""
|
||||
Simulates a drag and drop operation.
|
||||
"""
|
||||
return self.push_event("drag", {"src_item": src_item, "dst_item": dst_item})
|
||||
|
||||
def right_click(self, item: str) -> dict[str, Any]:
|
||||
"""
|
||||
Simulates a right-click on an item.
|
||||
"""
|
||||
return self.push_event("right_click", {"item": item})
|
||||
|
||||
def get_gui_state(self) -> dict[str, Any]:
|
||||
"""
|
||||
Returns the full GUI state available via the hook API.
|
||||
|
||||
Reference in New Issue
Block a user