<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: quandale dingle</title>
    <description>The latest articles on DEV Community by quandale dingle (@breath3manually).</description>
    <link>https://dev.to/breath3manually</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1174809%2F82dc4ec6-69d7-48ba-aa48-4ece918be368.png</url>
      <title>DEV Community: quandale dingle</title>
      <link>https://dev.to/breath3manually</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/breath3manually"/>
    <language>en</language>
    <item>
      <title>How can I have two mice and keyboards, one pair controlled by a program?</title>
      <dc:creator>quandale dingle</dc:creator>
      <pubDate>Thu, 13 Jun 2024 20:42:34 +0000</pubDate>
      <link>https://dev.to/breath3manually/how-can-i-have-two-mice-and-keyboards-one-pair-controlled-by-a-program-50d1</link>
      <guid>https://dev.to/breath3manually/how-can-i-have-two-mice-and-keyboards-one-pair-controlled-by-a-program-50d1</guid>
      <description>&lt;p&gt;I want to create a program that automatically does some tasks on the computer. I want these tasks to be done at the same time as the user is doing their own tasks. In order to do this, I would need to simulate a mouse and keyboard.&lt;/p&gt;

&lt;p&gt;I want the two pairs of mice and keyboards to work separately, for example if program selected a textbox at the same time that a user selected a textbox and both the user and the program type something, I want what the user typed to go into the textbox that the user selected and what the program typed to go into the textbox that the program selected.&lt;/p&gt;

&lt;p&gt;How can I do this? Thank you very much :)&lt;/p&gt;

&lt;p&gt;I've tried libraries like pyautogui and others but they control the user's mouse and keyboard. I want the program to control its own mouse and keyboard.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How do I make the Openai API message output in real time?</title>
      <dc:creator>quandale dingle</dc:creator>
      <pubDate>Mon, 02 Oct 2023 06:13:23 +0000</pubDate>
      <link>https://dev.to/breath3manually/how-do-i-make-the-openai-api-message-output-in-real-time-2p3b</link>
      <guid>https://dev.to/breath3manually/how-do-i-make-the-openai-api-message-output-in-real-time-2p3b</guid>
      <description>&lt;p&gt;I'm trying to make a chatbot website. I want the ai's response to be sent chunk by chunk as soon as the chunk is processed, but the output message is being sent all at once on my website.&lt;br&gt;
In the terminal, I made it so that the response gets outputted as soon as each chunk is processed, and it worked for the terminal using this code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print(chunk_message['content'], end='', flush=True)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But I can't figure out how to make it send as soon as each chunk was processed in my website.&lt;br&gt;
I made the browser console print out the times when the chunks were sent to it and they all were apparently sent at the same time. I know that is the problem but I can't figure out how to solve it. Here is my github link for the full code: &lt;a href="https://github.com/Breath3Manually/chat-bot.git"&gt;https://github.com/Breath3Manually/chat-bot.git&lt;/a&gt;&lt;br&gt;
the important files are the consumers.py file and the chat_view.html file&lt;br&gt;
any help will be appreciated, I've spent 2 days trying to fix this &amp;lt;3&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>python</category>
      <category>html</category>
      <category>django</category>
    </item>
  </channel>
</rss>
