<?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: Get Mouse Position macro</title>
<atom:link href="https://www.voicebot.net/Discussions/RSS/?TopicID=767442a7-c38a-4c6b-b97b-f4f0930ad41c" rel="self" type="application/rss+xml" />
<link>https://www.voicebot.net/Discussions/RSS/?TopicID=767442a7-c38a-4c6b-b97b-f4f0930ad41c</link>
<description>VoiceBot RSS: Get Mouse Position macro</description>
<lastBuildDate>Sat, 13 Jun 2026 22:48:00 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.voicebot.net/Discussions/RSS/?TopicID=767442a7-c38a-4c6b-b97b-f4f0930ad41c</generator>
<item>
<title>RE: Get Mouse Position macro</title>
<link>https://www.voicebot.net/Discussions/View/get-mouse-position-macro/?ID=767442a7-c38a-4c6b-b97b-f4f0930ad41c#2</link>
<pubDate>Thu, 28 Mar 2019 18:13:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/get-mouse-position-macro/?ID=767442a7-c38a-4c6b-b97b-f4f0930ad41c#2</guid>
<category>VoiceBot</category>
<description><![CDATA[You sure can! Try something like this out:
Code
Copy
Select All
using System;
using System.Drawing;
public static class VoiceBotScript
{
public static void Run(IntPtr windowHandle)
{
// Store the mouse position
Point originalMousePosition = new Point(BFS.Input.GetMousePositionX(), BFS....]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
You sure can! Try something like this out:<br/>
<br/>
<div 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="#code019ec32baf3e742ebdbabb7968855e9a" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code019ec32baf3e742ebdbabb7968855e9aJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;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="code019ec32baf3e742ebdbabb7968855e9aJs" 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)
    {
        // Store the mouse position
        Point originalMousePosition = new Point(BFS.Input.GetMousePositionX(), BFS.Input.GetMousePositionY());
        
        // Do stuff here
        
        // Restore the mouse position
        BFS.Input.SetMousePosition(originalMousePosition.X, originalMousePosition.Y);
    }
}</pre><textarea id="code019ec32baf3e742ebdbabb7968855e9a" name="code019ec32baf3e742ebdbabb7968855e9a" style="position:absolute; top:0; left:-999999px; width:1px; height:1px;"></textarea></div>
</div></div></div><br/>
<br/>
Unfortunately we don't have any scripting tutorials. The code is written in C#, so you could start with something like this: <a href="https://csharp-station.com/Tutorial/CSharp/Lesson01" target="_blank" rel="nofollow"><b>https://csharp-station.com/Tutorial/CSharp/Lesson01</b></a><br/>
<br/>
In VoiceBot (and other Binary Fortress apps), there's a BFS namespace that has a bunch of pre-built functions. If you type <div class="Inline"><pre>BFS.</pre></div> into the code editor, you'll get an Intellisense style list that gives you some options to start with. Hovering the mouse over them will give descriptions and examples. We also have them listed here: <a href="https://www.voicebot.net/Profiles/Help/" target="_blank" rel="nofollow"><b>https://www.voicebot.net/Profiles/Help/</b></a><br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>Get Mouse Position macro</title>
<link>https://www.voicebot.net/Discussions/View/get-mouse-position-macro/?ID=767442a7-c38a-4c6b-b97b-f4f0930ad41c</link>
<pubDate>Wed, 27 Mar 2019 19:43:31 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/get-mouse-position-macro/?ID=767442a7-c38a-4c6b-b97b-f4f0930ad41c</guid>
<category>VoiceBot</category>
<description><![CDATA[I was wondering if there was a way to script a macro to
Get current Mouse Position x & y
"execute other commands"
Recall and move mouse to the stored X/Y?
Also can anybody point me to a scripting tutorial for voiceBot macros?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I was wondering if there was a way to script a macro to<br/>
Get current Mouse Position x & y<br/>
"execute other commands" <br/>
Recall and move mouse to the stored X/Y? <br/>
<br/>
Also can anybody point me to a scripting tutorial for voiceBot macros?
</div>
]]></content:encoded>
</item>
</channel>
</rss>