{"id":1925,"date":"2024-11-22T10:32:59","date_gmt":"2024-11-22T10:32:59","guid":{"rendered":"https:\/\/www.woojin.help\/?p=1925"},"modified":"2024-12-16T14:18:45","modified_gmt":"2024-12-16T14:18:45","slug":"xdotool","status":"publish","type":"post","link":"https:\/\/www.woojin.help\/ko\/xdotool\/","title":{"rendered":"\uc5d1\uc2a4\ub3c4\ud234"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-top-right\"><\/div>\n<p class=\"wp-block-paragraph\">\uc120\uc801 \uc11c\ub958 \ube44\uce58: <a href=\"https:\/\/wiki.ubuntuusers.de\/xdotool\">https:\/\/wiki.ubuntuusers.de\/xdotool<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using xdotool Scripts for Automation and Testing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This document provides an overview and instructions for the custom xdotool-based scripting setup located on our new Linux Image (006 StormEagle) in <code>\/woojin\/Scripts\/xdotools<\/code>. These scripts allow you to automate and test various tasks on your Linux system, such as moving to specific pages, switching languages, and recording mouse movements.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud3f4\ub354 \uad6c\uc870<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \/woojin\/Scripts\/xdotools\/macros<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"712\" height=\"508\" src=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-22.png\" alt=\"\" class=\"wp-image-1934\" srcset=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-22.png 712w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-22-300x214.png 300w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-22-18x12.png 18w\" sizes=\"(max-width: 712px) 100vw, 712px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This folder contains pre-defined macros, which are individual xdotool scripts that execute specific tasks.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Examples of Macros:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Move to a Certain Page<\/strong>: Navigates to a specific page like &#8220;c220_00_Ejector.sh&#8221;<\/li>\n\n\n\n<li><strong>Switch Language<\/strong>: Automates the process of changing the system language e.g. &#8220;setLanguageKO.sh&#8221;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">These macros are building blocks for more complex operations and can be used individually or combined in tests.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"422\" height=\"182\" src=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-23.png\" alt=\"\" class=\"wp-image-1936\" srcset=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-23.png 422w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-23-300x129.png 300w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-23-18x8.png 18w\" sizes=\"(max-width: 422px) 100vw, 422px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">2. \/woojin\/Scripts\/xdotools\/test<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"712\" height=\"527\" src=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-27.png\" alt=\"\" class=\"wp-image-1956\" srcset=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-27.png 712w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-27-300x222.png 300w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-27-16x12.png 16w\" sizes=\"(max-width: 712px) 100vw, 712px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Examples of Test:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>changePages<\/strong>: Combines multiple macros to test navigating between different pages within an application or website. The test scripts orchestrate macros and validate the intended behavior.<\/li>\n\n\n\n<li><strong>changeLanguage<\/strong>:  Combines multiple macros to switch between mutiple languages.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"423\" height=\"225\" src=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-20.png\" alt=\"\" class=\"wp-image-1931\" srcset=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-20.png 423w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-20-300x160.png 300w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-20-18x10.png 18w\" sizes=\"(max-width: 423px) 100vw, 423px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. \/woojin\/Scripts\/xdotools\/record<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"718\" height=\"529\" src=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-28.png\" alt=\"\" class=\"wp-image-1957\" srcset=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-28.png 718w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-28-300x221.png 300w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-28-16x12.png 16w\" sizes=\"(max-width: 718px) 100vw, 718px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This folder contains tools for recording mouse movements and clicks, which are essential for creating macros.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Key Script:<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>recordMouseClick.sh<\/code><\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\ubaa9\uc801<\/strong>: Captures the current mouse position when you press the <code>\ud050<\/code> key.<\/li>\n\n\n\n<li><strong>Output<\/strong>: Writes the recorded coordinates to the file <code>recorded_moves.txt<\/code>.<\/li>\n\n\n\n<li><strong>Usage<\/strong>: This script is especially helpful when defining precise coordinates for macros that rely on mouse movements.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"426\" height=\"248\" src=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-21.png\" alt=\"\" class=\"wp-image-1933\" srcset=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-21.png 426w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-21-300x175.png 300w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-21-18x10.png 18w\" sizes=\"(max-width: 426px) 100vw, 426px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. \/woojin\/Scripts\/xdotools\/start test<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"521\" src=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-18.png\" alt=\"\" class=\"wp-image-1929\" srcset=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-18.png 719w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-18-300x217.png 300w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-18-18x12.png 18w\" sizes=\"(max-width: 719px) 100vw, 719px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This is an executable icon designed for user-friendly test execution.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">How it Works:<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clicking this icon triggers a script that reads all the files inside the <code>\uc2dc\ud5d8<\/code> folder.<\/li>\n\n\n\n<li>It prompts the user to select a test to execute.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"510\" src=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-19.png\" alt=\"\" class=\"wp-image-1930\" style=\"width:720px;height:auto\" srcset=\"https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-19.png 678w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-19-300x226.png 300w, https:\/\/www.woojin.help\/wp-content\/uploads\/2024\/11\/image-19-16x12.png 16w\" sizes=\"(max-width: 678px) 100vw, 678px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>Documentation: https:\/\/wiki.ubuntuusers.de\/xdotool Using xdotool Scripts for Automation and Testing This document provides an overview and instructions for the custom xdotool-based [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1925","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/posts\/1925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/comments?post=1925"}],"version-history":[{"count":13,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/posts\/1925\/revisions"}],"predecessor-version":[{"id":1959,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/posts\/1925\/revisions\/1959"}],"wp:attachment":[{"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/media?parent=1925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/categories?post=1925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.woojin.help\/ko\/wp-json\/wp\/v2\/tags?post=1925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}