Package io.github.kingpulse
Interface xdotool
-
- All Superinterfaces:
com.sun.jna.Library
public interface xdotool extends com.sun.jna.LibraryMaps the libxdo. Best documentation is available by looking at xdotool repository: https://github.com/jordansissel/xdotool/ Author: Edwin Heerschap
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static xdotoolloadLib()Attempts to load the xdotool library from either 'xdotool.name' system property or uses 'xdo'.static xdotoolloadLib(java.lang.String name)Attempts to load the xdotool library.intxdo_activate_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)intxdo_clear_active_modifiers(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, charcodemap_t active_mods, int active_mods_n)intxdo_click_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int button)intxdo_click_window_multiple(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int button, int repeat, int delay)intxdo_close_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window)voidxdo_disable_feature(xdo_t xdo, int feature)voidxdo_enable_feature(xdo_t xdo, int feature)intxdo_enter_text_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String string, int delay)intxdo_find_window_client(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, com.sun.jna.platform.unix.X11.WindowByReference window_ret, int direction)intxdo_focus_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)voidxdo_free(xdo_t xdo)intxdo_get_active_modifiers(xdo_t xdo, com.sun.jna.ptr.PointerByReference keys, com.sun.jna.ptr.IntByReference nkeys)intxdo_get_active_window(xdo_t xdo, com.sun.jna.platform.unix.X11.WindowByReference window_ret)intxdo_get_current_desktop(xdo_t xdo, com.sun.jna.ptr.LongByReference desktop)intxdo_get_desktop_for_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, com.sun.jna.ptr.LongByReference desktop)intxdo_get_desktop_viewport(xdo_t xdo, com.sun.jna.ptr.IntByReference x_ret, com.sun.jna.ptr.IntByReference y_ret)intxdo_get_focused_window(xdo_t xdo, com.sun.jna.platform.unix.X11.WindowByReference window_ret)intxdo_get_focused_window_sane(xdo_t xdo, com.sun.jna.platform.unix.X11.WindowByReference window_ret)intxdo_get_input_state(xdo_t xdo)intxdo_get_mouse_location(xdo_t xdo, com.sun.jna.ptr.IntByReference x, com.sun.jna.ptr.IntByReference y, com.sun.jna.ptr.IntByReference screen_num)intxdo_get_mouse_location2(xdo_t xdo, com.sun.jna.ptr.IntByReference x_ret, com.sun.jna.ptr.IntByReference y_ret, com.sun.jna.ptr.IntByReference screen_num_ret, com.sun.jna.ptr.LongByReference window_ret)intxdo_get_number_of_desktops(xdo_t xdo, com.sun.jna.ptr.LongByReference ndesktops)intxdo_get_pid_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window)com.sun.jna.ptr.PointerByReferencexdo_get_symbol_map()intxdo_get_viewport_dimensions(xdo_t xdo, com.sun.jna.ptr.IntByReference width, com.sun.jna.ptr.IntByReference height, int screen)intxdo_get_window_at_mouse(xdo_t xdo, com.sun.jna.ptr.LongByReference window_ret)intxdo_get_window_location(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, com.sun.jna.ptr.IntByReference x_ret, com.sun.jna.ptr.IntByReference y_ret, com.sun.jna.ptr.PointerByReference screen_ret)intxdo_get_window_name(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, com.sun.jna.ptr.PointerByReference name_ret, com.sun.jna.ptr.IntByReference name_len_ret, com.sun.jna.ptr.IntByReference name_type)intxdo_get_window_property(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String property, com.sun.jna.ptr.PointerByReference value, com.sun.jna.ptr.LongByReference nitems, com.sun.jna.platform.unix.X11.AtomByReference type, com.sun.jna.ptr.IntByReference size)java.lang.Stringxdo_get_window_property_by_atom(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, com.sun.jna.platform.unix.X11.Atom atom, com.sun.jna.ptr.LongByReference nitems, com.sun.jna.platform.unix.X11.AtomByReference type, com.sun.jna.ptr.IntByReference size)intxdo_get_window_size(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, com.sun.jna.ptr.IntByReference width_ret, com.sun.jna.ptr.IntByReference height_ret)intxdo_has_feature(xdo_t xdo, int feature)intxdo_kill_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window)intxdo_map_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)intxdo_minimize_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)intxdo_mouse_up(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int button)intxdo_move_mouse(xdo_t xdo, int x, int y, int screen)intxdo_move_mouse_relative(xdo_t xdo, int x, int y)intxdo_move_mouse_relative_to_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int x, int y)intxdo_move_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int x, int y)xdo_txdo_new(java.lang.String display)xdo_txdo_new_with_opened_display(com.sun.jna.platform.unix.X11.Display xdpy, java.lang.String display, int close_display_when_freed)intxdo_raise_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)intxdo_reparent_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid_source, com.sun.jna.platform.unix.X11.Window wid_target)intxdo_search_windows(xdo_t xdo, xdo_search_t search, com.sun.jna.ptr.PointerByReference windowlist_ret, com.sun.jna.ptr.IntByReference nwindows_ret)intxdo_second_keysequence_window_up(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String keysequence, int delay)intxdo_select_window_with_click(xdo_t xdo, com.sun.jna.platform.unix.X11.WindowByReference window_ret)intxdo_send_keysequence_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String keysequence, int delay)intxdo_send_keysequence_window_down(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String keysequence, int delay)intxdo_send_keysequence_window_list_do(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, charcodemap_t keys, int nkeys, int pressed, com.sun.jna.ptr.IntByReference modifier, int delay)intxdo_set_active_modifiers(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, charcodemap_t active_mods, int active_mods_n)intxdo_set_current_desktop(xdo_t xdo, long desktop)intxdo_set_desktop_for_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, long desktop)intxdo_set_desktop_viewport(xdo_t xdo, int x, int y)intxdo_set_number_of_desktops(xdo_t xdo, long ndesktops)intxdo_set_window_class(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, java.lang.String name)intxdo_set_window_override_redirect(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int override_redirect)intxdo_set_window_property(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, java.lang.String property, java.lang.String value)intxdo_set_window_size(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int w, int h, int flags)intxdo_set_window_urgency(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int urgency)intxdo_translate_window_with_sizehint(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int width, int height, com.sun.jna.ptr.IntByReference width_ret, com.sun.jna.ptr.IntByReference height_ret)intxdo_unmap_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window)java.lang.Stringxdo_version()intxdo_wait_for_mouse_move_from(xdo_t xdo, int origin_x, int origin_y)intxdo_wait_for_mouse_move_to(xdo_t xdo, int dest_x, int dest_y)intxdo_wait_for_window_active(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int active)intxdo_wait_for_window_focus(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int want_focus)intxdo_wait_for_window_map_state(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int map_state)intxdo_wait_for_window_size(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int width, int height, int flags, int to_or_from)intxdo_window_state(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, long action, java.lang.String property)
-
-
-
Method Detail
-
loadLib
static xdotool loadLib(java.lang.String name)
Attempts to load the xdotool library.- Parameters:
name- Name of library. Do not include OS specific prefix or suffix. I.e libxdo.so is passed as xdo.- Returns:
- loaded xdotool library
-
loadLib
static xdotool loadLib()
Attempts to load the xdotool library from either 'xdotool.name' system property or uses 'xdo'.- Returns:
- loaded xdotool library
-
xdo_new
xdo_t xdo_new(java.lang.String display)
-
xdo_new_with_opened_display
xdo_t xdo_new_with_opened_display(com.sun.jna.platform.unix.X11.Display xdpy, java.lang.String display, int close_display_when_freed)
-
xdo_version
java.lang.String xdo_version()
-
xdo_free
void xdo_free(xdo_t xdo)
-
xdo_move_mouse
int xdo_move_mouse(xdo_t xdo, int x, int y, int screen)
-
xdo_move_mouse_relative_to_window
int xdo_move_mouse_relative_to_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int x, int y)
-
xdo_move_mouse_relative
int xdo_move_mouse_relative(xdo_t xdo, int x, int y)
-
xdo_mouse_up
int xdo_mouse_up(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int button)
-
xdo_get_mouse_location
int xdo_get_mouse_location(xdo_t xdo, com.sun.jna.ptr.IntByReference x, com.sun.jna.ptr.IntByReference y, com.sun.jna.ptr.IntByReference screen_num)
-
xdo_get_window_at_mouse
int xdo_get_window_at_mouse(xdo_t xdo, com.sun.jna.ptr.LongByReference window_ret)
-
xdo_get_mouse_location2
int xdo_get_mouse_location2(xdo_t xdo, com.sun.jna.ptr.IntByReference x_ret, com.sun.jna.ptr.IntByReference y_ret, com.sun.jna.ptr.IntByReference screen_num_ret, com.sun.jna.ptr.LongByReference window_ret)
-
xdo_wait_for_mouse_move_from
int xdo_wait_for_mouse_move_from(xdo_t xdo, int origin_x, int origin_y)
-
xdo_wait_for_mouse_move_to
int xdo_wait_for_mouse_move_to(xdo_t xdo, int dest_x, int dest_y)
-
xdo_click_window
int xdo_click_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int button)
-
xdo_click_window_multiple
int xdo_click_window_multiple(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int button, int repeat, int delay)
-
xdo_enter_text_window
int xdo_enter_text_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String string, int delay)
-
xdo_send_keysequence_window
int xdo_send_keysequence_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String keysequence, int delay)
-
xdo_second_keysequence_window_up
int xdo_second_keysequence_window_up(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String keysequence, int delay)
-
xdo_send_keysequence_window_down
int xdo_send_keysequence_window_down(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String keysequence, int delay)
-
xdo_send_keysequence_window_list_do
int xdo_send_keysequence_window_list_do(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, charcodemap_t keys, int nkeys, int pressed, com.sun.jna.ptr.IntByReference modifier, int delay)
-
xdo_wait_for_window_map_state
int xdo_wait_for_window_map_state(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int map_state)
-
xdo_wait_for_window_size
int xdo_wait_for_window_size(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int width, int height, int flags, int to_or_from)
-
xdo_move_window
int xdo_move_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int x, int y)
-
xdo_translate_window_with_sizehint
int xdo_translate_window_with_sizehint(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int width, int height, com.sun.jna.ptr.IntByReference width_ret, com.sun.jna.ptr.IntByReference height_ret)
-
xdo_set_window_size
int xdo_set_window_size(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int w, int h, int flags)
-
xdo_set_window_property
int xdo_set_window_property(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, java.lang.String property, java.lang.String value)
-
xdo_set_window_class
int xdo_set_window_class(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, java.lang.String name)
-
xdo_set_window_urgency
int xdo_set_window_urgency(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int urgency)
-
xdo_set_window_override_redirect
int xdo_set_window_override_redirect(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, int override_redirect)
-
xdo_focus_window
int xdo_focus_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)
-
xdo_raise_window
int xdo_raise_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)
-
xdo_get_focused_window
int xdo_get_focused_window(xdo_t xdo, com.sun.jna.platform.unix.X11.WindowByReference window_ret)
-
xdo_wait_for_window_focus
int xdo_wait_for_window_focus(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int want_focus)
-
xdo_get_pid_window
int xdo_get_pid_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window)
-
xdo_get_focused_window_sane
int xdo_get_focused_window_sane(xdo_t xdo, com.sun.jna.platform.unix.X11.WindowByReference window_ret)
-
xdo_activate_window
int xdo_activate_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)
-
xdo_wait_for_window_active
int xdo_wait_for_window_active(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, int active)
-
xdo_map_window
int xdo_map_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)
-
xdo_unmap_window
int xdo_unmap_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window)
-
xdo_minimize_window
int xdo_minimize_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid)
-
xdo_window_state
int xdo_window_state(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, long action, java.lang.String property)
-
xdo_reparent_window
int xdo_reparent_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid_source, com.sun.jna.platform.unix.X11.Window wid_target)
-
xdo_get_window_location
int xdo_get_window_location(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, com.sun.jna.ptr.IntByReference x_ret, com.sun.jna.ptr.IntByReference y_ret, com.sun.jna.ptr.PointerByReference screen_ret)
-
xdo_get_window_size
int xdo_get_window_size(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, com.sun.jna.ptr.IntByReference width_ret, com.sun.jna.ptr.IntByReference height_ret)
-
xdo_get_active_window
int xdo_get_active_window(xdo_t xdo, com.sun.jna.platform.unix.X11.WindowByReference window_ret)
-
xdo_select_window_with_click
int xdo_select_window_with_click(xdo_t xdo, com.sun.jna.platform.unix.X11.WindowByReference window_ret)
-
xdo_set_number_of_desktops
int xdo_set_number_of_desktops(xdo_t xdo, long ndesktops)
-
xdo_get_number_of_desktops
int xdo_get_number_of_desktops(xdo_t xdo, com.sun.jna.ptr.LongByReference ndesktops)
-
xdo_set_current_desktop
int xdo_set_current_desktop(xdo_t xdo, long desktop)
-
xdo_get_current_desktop
int xdo_get_current_desktop(xdo_t xdo, com.sun.jna.ptr.LongByReference desktop)
-
xdo_set_desktop_for_window
int xdo_set_desktop_for_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, long desktop)
-
xdo_get_desktop_for_window
int xdo_get_desktop_for_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window wid, com.sun.jna.ptr.LongByReference desktop)
-
xdo_search_windows
int xdo_search_windows(xdo_t xdo, xdo_search_t search, com.sun.jna.ptr.PointerByReference windowlist_ret, com.sun.jna.ptr.IntByReference nwindows_ret)
-
xdo_get_window_property_by_atom
java.lang.String xdo_get_window_property_by_atom(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, com.sun.jna.platform.unix.X11.Atom atom, com.sun.jna.ptr.LongByReference nitems, com.sun.jna.platform.unix.X11.AtomByReference type, com.sun.jna.ptr.IntByReference size)
-
xdo_get_window_property
int xdo_get_window_property(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, java.lang.String property, com.sun.jna.ptr.PointerByReference value, com.sun.jna.ptr.LongByReference nitems, com.sun.jna.platform.unix.X11.AtomByReference type, com.sun.jna.ptr.IntByReference size)
-
xdo_get_input_state
int xdo_get_input_state(xdo_t xdo)
-
xdo_get_symbol_map
com.sun.jna.ptr.PointerByReference xdo_get_symbol_map()
-
xdo_get_active_modifiers
int xdo_get_active_modifiers(xdo_t xdo, com.sun.jna.ptr.PointerByReference keys, com.sun.jna.ptr.IntByReference nkeys)
-
xdo_clear_active_modifiers
int xdo_clear_active_modifiers(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, charcodemap_t active_mods, int active_mods_n)
-
xdo_set_active_modifiers
int xdo_set_active_modifiers(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, charcodemap_t active_mods, int active_mods_n)
-
xdo_get_desktop_viewport
int xdo_get_desktop_viewport(xdo_t xdo, com.sun.jna.ptr.IntByReference x_ret, com.sun.jna.ptr.IntByReference y_ret)
-
xdo_set_desktop_viewport
int xdo_set_desktop_viewport(xdo_t xdo, int x, int y)
-
xdo_kill_window
int xdo_kill_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window)
-
xdo_close_window
int xdo_close_window(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window)
-
xdo_find_window_client
int xdo_find_window_client(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, com.sun.jna.platform.unix.X11.WindowByReference window_ret, int direction)
-
xdo_get_window_name
int xdo_get_window_name(xdo_t xdo, com.sun.jna.platform.unix.X11.Window window, com.sun.jna.ptr.PointerByReference name_ret, com.sun.jna.ptr.IntByReference name_len_ret, com.sun.jna.ptr.IntByReference name_type)
-
xdo_disable_feature
void xdo_disable_feature(xdo_t xdo, int feature)
-
xdo_enable_feature
void xdo_enable_feature(xdo_t xdo, int feature)
-
xdo_has_feature
int xdo_has_feature(xdo_t xdo, int feature)
-
xdo_get_viewport_dimensions
int xdo_get_viewport_dimensions(xdo_t xdo, com.sun.jna.ptr.IntByReference width, com.sun.jna.ptr.IntByReference height, int screen)
-
-