{"id":592,"date":"2022-04-28T12:33:00","date_gmt":"2022-04-28T12:33:00","guid":{"rendered":"https:\/\/mgalaxy.com\/helpcenter\/?post_type=docs&#038;p=592"},"modified":"2022-05-07T15:42:28","modified_gmt":"2022-05-07T15:42:28","password":"","slug":"adding-script-to-support-an-emulator","status":"publish","type":"docs","link":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/","title":{"rendered":"Adding script to support an emulator"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"592\" class=\"elementor elementor-592\" data-elementor-post-type=\"docs\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b8c85d9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b8c85d9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e0b6d82\" data-id=\"e0b6d82\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a39257f elementor-widget elementor-widget-text-editor\" data-id=\"a39257f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>What is a script and why use it!<\/h2><p>When using an emulator with mGalaxy, 2 criteria are induced:<\/p><ul><li>the emulator must be able to run in full screen.<\/li><li>you must be able to exit the emulator by pressing the \u2018ESC\u2019 key.<\/li><\/ul><p>Sometimes an emulator will not allow to specify one or all of these 2 settings in the application. In this case, you need a \u2018script\u2019 to assist the emulator.<\/p><p>A script is a small piece of software between mGalaxy and the emulator to execute tasks that are not natively provided by the emulator.<\/p><p>mGalaxy comes with all the necessary scripts pre-installed but if you need to add an emulator not yet recognized by mGalaxy and also the necessary script, here is how to proceed.<\/p><p>The script must be located in the &#8220;Scripts&#8221; folder of mGalaxy and have exactly the same name as the one given to the emulator. Finally, you must make sure that the system informing this emulator (and therefore the corresponding script) has the box &#8220;Use script file if available&#8221; checked.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cdd2586 elementor-widget elementor-widget-image\" data-id=\"cdd2586\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"771\" height=\"493\" src=\"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg\" class=\"attachment-full size-full wp-image-600\" alt=\"\" srcset=\"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg 771w, https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01-300x192.jpg 300w, https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01-768x491.jpg 768w\" sizes=\"(max-width: 771px) 100vw, 771px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2b8a922 elementor-widget elementor-widget-text-editor\" data-id=\"2b8a922\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Creating a script with &#8216;AutoIt&#8217;<\/h2><p>AutoIt is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window\/control manipulation in order to automate tasks.<\/p><p>\u2022 First you will need to download and install the AutoIt freeware <a href=\"https:\/\/www.autoitscript.com\/site\/autoit\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p><p>\u2022 Create a script that must start with the code below.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e207cf1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e207cf1\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d1fec85\" data-id=\"d1fec85\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-3ca6a21 elementor-widget elementor-widget-text-editor\" data-id=\"3ca6a21\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\u2022 We can&#8217;t give you a programming course here and we urge you to take the necessary knowledge (<a href=\"https:\/\/www.autoitscript.com\/forum\/topic\/84960-learning-to-script-with-autoit-v3\/\" target=\"_blank\" rel=\"noopener\">Learning to script with autoit v3<\/a>) by starting, for example, by examining how the scripts in the &#8220;Scripts&#8221; folder of mGalaxy are written.\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>What is a script and why use it! When using an emulator with mGalaxy, 2 criteria are induced: the emulator must be able to run in full screen. you must be able to exit the emulator by pressing the \u2018ESC\u2019 key. Sometimes an emulator will not allow to specify one or all of these 2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[19],"doc_tag":[],"class_list":["post-592","docs","type-docs","status-publish","hentry","doc_category-advanced-use"],"year_month":"2026-04","word_count":486,"total_views":"562","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"mgalaxy","author_nicename":"mgalaxy","author_url":"https:\/\/mgalaxy.com\/helpcenter\/author\/mgalaxy\/"},"doc_category_info":[{"term_name":"Advanced Use","term_url":"https:\/\/mgalaxy.com\/helpcenter\/docs-category\/advanced-use\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.3.1 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Adding script to support an emulator - HELP CENTER<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding script to support an emulator\" \/>\n<meta property=\"og:description\" content=\"What is a script and why use it! When using an emulator with mGalaxy, 2 criteria are induced: the emulator must be able to run in full screen. you must be able to exit the emulator by pressing the \u2018ESC\u2019 key. Sometimes an emulator will not allow to specify one or all of these 2 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/\" \/>\n<meta property=\"og:site_name\" content=\"HELP CENTER\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mgalaxyFE\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-07T15:42:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@mGalaxyFE\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/\",\"url\":\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/\",\"name\":\"Adding script to support an emulator - HELP CENTER\",\"isPartOf\":{\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg\",\"datePublished\":\"2022-04-28T12:33:00+00:00\",\"dateModified\":\"2022-05-07T15:42:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#primaryimage\",\"url\":\"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg\",\"contentUrl\":\"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg\",\"width\":771,\"height\":493},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mgalaxy.com\/helpcenter\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Adding script to support an emulator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/#website\",\"url\":\"https:\/\/mgalaxy.com\/helpcenter\/\",\"name\":\"HELP CENTER\",\"description\":\"mGalaxy help, documentation, tutorials, faq, knowledge base\",\"publisher\":{\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mgalaxy.com\/helpcenter\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/#organization\",\"name\":\"mGalaxy\",\"url\":\"https:\/\/mgalaxy.com\/helpcenter\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/logo_blue.png\",\"contentUrl\":\"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/logo_blue.png\",\"width\":256,\"height\":88,\"caption\":\"mGalaxy\"},\"image\":{\"@id\":\"https:\/\/mgalaxy.com\/helpcenter\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/mgalaxyFE\",\"https:\/\/x.com\/mGalaxyFE\",\"https:\/\/www.instagram.com\/mgalaxyfe\/\",\"https:\/\/www.youtube.com\/user\/mGalaxyFE\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Adding script to support an emulator - HELP CENTER","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/","og_locale":"en_US","og_type":"article","og_title":"Adding script to support an emulator","og_description":"What is a script and why use it! When using an emulator with mGalaxy, 2 criteria are induced: the emulator must be able to run in full screen. you must be able to exit the emulator by pressing the \u2018ESC\u2019 key. Sometimes an emulator will not allow to specify one or all of these 2 [&hellip;]","og_url":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/","og_site_name":"HELP CENTER","article_publisher":"https:\/\/www.facebook.com\/mgalaxyFE","article_modified_time":"2022-05-07T15:42:28+00:00","og_image":[{"url":"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@mGalaxyFE","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/","url":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/","name":"Adding script to support an emulator - HELP CENTER","isPartOf":{"@id":"https:\/\/mgalaxy.com\/helpcenter\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#primaryimage"},"image":{"@id":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#primaryimage"},"thumbnailUrl":"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg","datePublished":"2022-04-28T12:33:00+00:00","dateModified":"2022-05-07T15:42:28+00:00","breadcrumb":{"@id":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#primaryimage","url":"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg","contentUrl":"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/AddingScript_01.jpg","width":771,"height":493},{"@type":"BreadcrumbList","@id":"https:\/\/mgalaxy.com\/helpcenter\/docs\/adding-script-to-support-an-emulator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mgalaxy.com\/helpcenter\/"},{"@type":"ListItem","position":2,"name":"Adding script to support an emulator"}]},{"@type":"WebSite","@id":"https:\/\/mgalaxy.com\/helpcenter\/#website","url":"https:\/\/mgalaxy.com\/helpcenter\/","name":"HELP CENTER","description":"mGalaxy help, documentation, tutorials, faq, knowledge base","publisher":{"@id":"https:\/\/mgalaxy.com\/helpcenter\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mgalaxy.com\/helpcenter\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mgalaxy.com\/helpcenter\/#organization","name":"mGalaxy","url":"https:\/\/mgalaxy.com\/helpcenter\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mgalaxy.com\/helpcenter\/#\/schema\/logo\/image\/","url":"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/logo_blue.png","contentUrl":"https:\/\/mgalaxy.com\/helpcenter\/wp-content\/uploads\/logo_blue.png","width":256,"height":88,"caption":"mGalaxy"},"image":{"@id":"https:\/\/mgalaxy.com\/helpcenter\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/mgalaxyFE","https:\/\/x.com\/mGalaxyFE","https:\/\/www.instagram.com\/mgalaxyfe\/","https:\/\/www.youtube.com\/user\/mGalaxyFE"]}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/docs\/592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/comments?post=592"}],"version-history":[{"count":54,"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/docs\/592\/revisions"}],"predecessor-version":[{"id":1574,"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/docs\/592\/revisions\/1574"}],"wp:attachment":[{"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/media?parent=592"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/doc_category?post=592"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/mgalaxy.com\/helpcenter\/wp-json\/wp\/v2\/doc_tag?post=592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}