{"id":84,"date":"2026-03-06T15:20:24","date_gmt":"2026-03-06T15:20:24","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_alhallak\/?p=84"},"modified":"2026-03-06T15:20:24","modified_gmt":"2026-03-06T15:20:24","slug":"free-friday-post-3-6-2026","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_alhallak\/2026\/03\/06\/free-friday-post-3-6-2026\/","title":{"rendered":"Free Friday post 3\/6\/2026"},"content":{"rendered":"\n<p>Today I have spent most of the time fixing the &#8220;Auto typer&#8221; I made a while ago. which turned out to be really easy and short. all I needed was this<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import keyboard\nimport time\n \ntext = input(\"Select the Auto text\")\n \nwhile True:\n    if keyboard.is_pressed(\"w\"):\n        keyboard.write(text, delay=0)   # no delay at all\n        time. Sleep(0.1)\n <\/code><\/pre>\n\n\n\n<p>the text input so you can pick what it writes, I did not need a function for it since it&#8217;s really short and it does one task anyways. After I tested it out and made sure it works, I decided to Turn both clickers into a Gui which looks like this<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from tkinter import *\nfrom tkinter import ttk\nimport time\nimport keyboard\nimport threading\n\nroot = Tk()\nfrm = ttk.Frame(root, padding=100)\nfrm.grid()\n\nttk.Label(frm, text=\"Enter auto text:\").grid(column=0, row=0)\ntext_entry = ttk.Entry(frm, width=30)\ntext_entry.grid(column=1, row=0)\n\n\ndef keyboard_auto():\n    text = text_entry.get()   \n\n    def loop():\n        while True:\n            if keyboard.is_pressed(\"w\"):\n                keyboard.write(text, delay=0)\n                time.sleep(0.1)\n\n    threading.Thread(target=loop, daemon=True).start()\n\n\nttk.Button(frm, text=\"Press W to activate\", command=keyboard_auto).grid(column=0, row=1)\n\n# Quit button\nttk.Button(frm, text=\"Quit\", command=root.destroy).grid(column=1, row=1)\n\nroot.mainloop()\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Today I have spent most of the time fixing the &#8220;Auto typer&#8221; I made a while ago. which turned out [&hellip;]<\/p>\n","protected":false},"author":1,"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-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":"","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-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":"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":""},"mobile":{"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":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-84","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts\/84","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/comments?post=84"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts\/84\/revisions"}],"predecessor-version":[{"id":85,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts\/84\/revisions\/85"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/media?parent=84"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/categories?post=84"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/tags?post=84"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}