<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>VoiceBot RSS: Reset mouse position</title>
<atom:link href="https://www.voicebot.net/Discussions/RSS/?TopicID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735" rel="self" type="application/rss+xml" />
<link>https://www.voicebot.net/Discussions/RSS/?TopicID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735</link>
<description>VoiceBot RSS: Reset mouse position</description>
<lastBuildDate>Fri, 24 Apr 2026 13:23:23 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.voicebot.net/Discussions/RSS/?TopicID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735</generator>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#11</link>
<pubDate>Wed, 17 Jul 2019 14:42:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#11</guid>
<category>VoiceBot</category>
<description><![CDATA[Excellent, glad to hear it!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Excellent, glad to hear it!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#10</link>
<pubDate>Tue, 16 Jul 2019 17:11:34 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#10</guid>
<category>VoiceBot</category>
<description><![CDATA[Sweet! Seems to be working just fine. Thanks again!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Sweet! Seems to be working just fine. Thanks again!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#9</link>
<pubDate>Tue, 16 Jul 2019 14:54:14 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#9</guid>
<category>VoiceBot</category>
<description><![CDATA[Ah sorry, my bad! I've edited the code in the previous post, could you try copying it again?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ah sorry, my bad! I've edited the code in the previous post, could you try copying it again?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#8</link>
<pubDate>Mon, 15 Jul 2019 21:34:28 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#8</guid>
<category>VoiceBot</category>
<description><![CDATA[Hi Keith!
Okay, so I tried pasting that code into a new macro just to play around with it and see what I could figure out.. but when I compile, I get an error:
Could not find a public static class named 'VoiceBotScript'.
I looked as closely as I could, and I don't even see any mention of "Voic...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi Keith!<br/>
<br/>
Okay, so I tried pasting that code into a new macro just to play around with it and see what I could figure out.. but when I compile, I get an error:<br/>
<br/>
<i>Could not find a public static class named 'VoiceBotScript'.</i><br/>
<br/>
I looked as closely as I could, and I don't even see any mention of "VoiceBotScript" in the code you provided.. did I miss something?<br/>
<br/>
Thanks for all the help, you guys rock.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#7</link>
<pubDate>Mon, 15 Jul 2019 19:53:07 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#7</guid>
<category>VoiceBot</category>
<description><![CDATA[This Macro code would save the mouse position, run some other stuff, then restore the mouse position:
Code
Copy
Select All
using System;
using System.Drawing;
public static class VoiceBotScript
{
public static void Run(IntPtr windowHandle)
{
SaveMousePosition();
// Run your other stuff...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
This Macro code would save the mouse position, run some other stuff, then restore the mouse position:<br/>
<br/>
<div id="" class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code019dbfa8c9b0718ab7d750110b88d210" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019dbfa8c9b0718ab7d750110b88d210Js'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code019dbfa8c9b0718ab7d750110b88d210Js" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">using System;
using System.Drawing;

public static class VoiceBotScript
{
    public static void Run(IntPtr windowHandle)
    {
        SaveMousePosition();
        
        // Run your other stuff here
        
        RestoreMousePosition();                   
    }
    
    private static void SaveMousePosition()
    {
        BFS.ScriptSettings.WriteValueInt("SavedMousePositionX", BFS.Input.GetMousePositionX());
        BFS.ScriptSettings.WriteValueInt("SavedMousePositionY", BFS.Input.GetMousePositionY());
    }
    
    private static void RestoreMousePosition()
    {
        BFS.Input.SetMousePosition(BFS.ScriptSettings.ReadValueInt("SavedMousePositionX"), BFS.ScriptSettings.ReadValueInt("SavedMousePositionY"));
    }
}</pre><textarea id="code019dbfa8c9b0718ab7d750110b88d210" name="code019dbfa8c9b0718ab7d750110b88d210" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Alternatively, you could break those "SaveMousePosition" and "RestoreMousePosition" functions out into two separate Macro Scripts. You could then call the Save script as your first action in VoiceBot, add all of the other actions, then call the Restore script as the last action.<br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#6</link>
<pubDate>Sat, 13 Jul 2019 00:08:03 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#6</guid>
<category>VoiceBot</category>
<description><![CDATA[I really recommend making AutoHotKey scripts! Then attaching those AHK scripts to run from a custom voice command, this is what I do when I want to run a script since I don't know how to use c#/provided scipting method. But I do use the provided scripting feature for a few things but I know much ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I really recommend making AutoHotKey scripts! Then attaching those AHK scripts to run from a custom voice command, this is what I do when I want to run a script since I don't know how to use c#/provided scipting method. But I do use the provided scripting feature for a few things but I know much more about AutoHotKey than whatever c#/c? whatever it uses.<br/>
<br/>
I bet AutoHotKey will help you make a mouse respositioning/saving script and theres likely alot of code out there on the web you can save/copy and use to make your own.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#5</link>
<pubDate>Fri, 12 Jul 2019 19:58:02 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#5</guid>
<category>VoiceBot</category>
<description><![CDATA[Bummer. Ah well, I'll survive.
So, about that mouse positioning.. I'm not sure I know where to start. Basically, what I'm doing is clicking on each item in a list of things (in Firefox), running a voice command/script (often including copy/paste, typing text, moving the mouse, clicking other thi...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Bummer. Ah well, I'll survive. <img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" /><br/>
<br/>
So, about that mouse positioning.. I'm not sure I know where to start. Basically, what I'm doing is clicking on each item in a list of things (in Firefox), running a voice command/script (often including copy/paste, typing text, moving the mouse, clicking other things, etc.), and then when that's done, moving on to the next item in the list. What I need is a first step that records the position of the mouse at the start of the script, and then returns the mouse to the same position once all the actions are complete.<br/>
<br/>
I gave it a shot, but knowing nothing about C#, it didn't work out so well.  Is there a pre-made macro somewhere I can copy and/or reference? Thx for all the help!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#4</link>
<pubDate>Thu, 11 Jul 2019 18:27:20 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#4</guid>
<category>VoiceBot</category>
<description><![CDATA[Sorry, VoiceBot only supports one PTT hotkey right now.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Sorry, VoiceBot only supports one PTT hotkey right now. <img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" />
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#3</link>
<pubDate>Wed, 10 Jul 2019 22:58:54 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#3</guid>
<category>VoiceBot</category>
<description><![CDATA[Awesome. I'll try to figure it out, but I may ask for help in the future.
Next question.. should I put this here or make a new thread? Anyway, is there a way to have multiple push-to-talk / push-to-ignore keys? E.g. in Arma 3, I use 2 different buttons as PTT, Insert and Caps Lock. I got Insert ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Awesome. I'll try to figure it out, but I may ask for help in the future.<br/>
<br/>
Next question.. should I put this here or make a new thread? Anyway, is there a way to have multiple push-to-talk / push-to-ignore keys? E.g. in Arma 3, I use 2 different buttons as PTT, Insert and Caps Lock. I got Insert to work as push-to-ignore, but I'd also like to add Caps Lock to that list. Is this possible?<br/>
<br/>
Loving this program. Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#2</link>
<pubDate>Tue, 09 Jul 2019 18:48:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735#2</guid>
<category>VoiceBot</category>
<description><![CDATA[There isn't a pre-built way to do this, but you can easily do this using the scripts. If you create a script to read and save the mouse position, then run your actions, then create a script to read the saved position and set the mouse back again. If you need some help with the script creation jus...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
There isn't a pre-built way to do this, but you can easily do this using the scripts. If you create a script to read and save the mouse position, then run your actions, then create a script to read the saved position and set the mouse back again. If you need some help with the script creation just let us know. Thanks!
</div>
]]></content:encoded>
</item>
<item>
<title>Reset mouse position</title>
<link>https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735</link>
<pubDate>Tue, 09 Jul 2019 14:41:56 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/reset-mouse-position/?ID=03b7c0c7-feb1-49d9-a7e3-c8b225e24735</guid>
<category>VoiceBot</category>
<description><![CDATA[Hi! So I've been using VBPro to help automate some of my work this summer, and while it has been EXTREMELY helpful, there's one feature I wish it had.. and that's a 'reset mouse position' step. Something that would send the pointer back to where it was before a command was run (the macros I'm usi...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hi! So I've been using VBPro to help automate some of my work this summer, and while it has been EXTREMELY helpful, there's one feature I wish it had.. and that's a 'reset mouse position' step. Something that would send the pointer back to where it was before a command was run (the macros I'm using send the mouse all over the place). OR, is there a way to do this with the current build? I haven't been able to figure it out.<br/>
<br/>
Anyway, cool program! It hasn't made the summer busywork any faster (due to limitations outside of VoiceBot), but it sure has made it easier. o7
</div>
]]></content:encoded>
</item>
</channel>
</rss>