# Sending commands to python interactor from Microsoft kinect

**URL:** <https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284>\
**Category:** Development\
**Created:** [March 10, 2018, 10:29pm UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284 "2018-03-10T22:29:14Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Soufane](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Ahmed\_Soufane](https://discourse.slicer.org/u/Ahmed_Soufane)\
**Post date:** [March 10, 2018, 10:29pm UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284/1 "2018-03-10T22:29:14Z")

</div>

I’m trying to use the sendmessage() command to send the python code to manipulate the 3-D Slicer from the Kinect c# code. Currently the code to do so is:

```auto
Process notepadProccess = Process.GetProcessesByName("NEED NAME")[0];
IntPtr notepadTextbox = FindWindowEx(notepadProccess.MainWindowHandle, IntPtr.Zero, "Edit", null);

SendMessage(notepadTextbox, WM_SETTEXT, 0, "ENTER PYTHON COMMAND");

```

What would the name be for the python interactor that would be needed to entered in the processor element to get it to send the commands to the interactor?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 10, 2018, 11:12pm UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284/2 "2018-03-10T23:12:14Z")

</div>

I don’t think you can or should try to control one application from another like this. There are many inter-process communication techniques, you should be able to find one that is easily accessible from both Slicer and your application. If you don’t want to build Slicer yourself then you can either use OpenIGTLink ([www.openigtlink.org](http://www.openigtlink.org), there are C# implementations for sending/receiving transforms, which should be more than enough) or something native Python based library.

---

<div class="post-metadata">

**Author:** ![Ahmed\_Soufane](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Ahmed\_Soufane](https://discourse.slicer.org/u/Ahmed_Soufane)\
**Post date:** [March 13, 2018, 9:50pm UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284/3 "2018-03-13T21:50:59Z")

</div>

Im currently trying to set up a OpenIGTLinkIf connection between the Windows terminal/command prompt and the 3-D Slicer. The set up on the 3-d slicer runs correctly but following the instructions on the OpenIGTLinkIf page for the terminal (using the ./TrackerServer 18944 10) does not work simply throwing a ./TrackerServer is not recognized as an internal or external command, operable program or batch file. How can I fix this so the connect to the server is complete? Is there a plugin-in that has to be installed or is the command outdated now?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 14, 2018, 4:28pm UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284/4 "2018-03-14T16:28:58Z")

</div>

You need to implement OpenIGTLink communication in your software. What programming language do you use?

---

<div class="post-metadata">

**Author:** ![Ahmed\_Soufane](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Ahmed\_Soufane](https://discourse.slicer.org/u/Ahmed_Soufane)\
**Post date:** [March 14, 2018, 4:35pm UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284/5 "2018-03-14T16:35:53Z")

</div>

I am using C sharp (C#)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 15, 2018, 4:32am UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284/6 "2018-03-15T04:32:15Z")

</div>

You may be able to use this OpenIGTLink client:

> **[GitHub - IGSIO/UWPOpenIGTLink: A client for OpenIGTLink implemented for the...](https://github.com/IGSIO/UWPOpenIGTLink)**
>
> A client for OpenIGTLink implemented for the Universal Windows Platform - GitHub - IGSIO/UWPOpenIGTLink: A client for OpenIGTLink implemented for the Universal Windows Platform

---

<div class="post-metadata">

**Author:** ![zulex](https://avatars.discourse-cdn.com/v4/letter/z/87869e/32.png) [@zulex](https://discourse.slicer.org/u/zulex)\
**Post date:** [November 3, 2020, 9:57am UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284/7 "2020-11-03T09:57:24Z")

</div>

@lassoan, Sorry to bring this topic up again.

I’ve been looking thoroughly for C# solutions to connect to openIGTLink. (Mainly to use in unity and receive transforms/position/rotation).

I’ve been trying the following solution which is referred in most topics: [https://github.com/franklinwk/OpenIGTLink-Unity](https://github.com/franklinwk/OpenIGTLink-Unity). Unfortunately it is based on a deprecated SteamVR dependency, which doesn’t work on unity 2018.3 or higher.

The link you post above is written in C#. Do you advice trying to convert this to a DLL to use in unity, or do you know of any repositories having a working solution for recent unity version?

---

<div class="post-metadata">

**Author:** ![kareem\_abdelaziz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/kareem_abdelaziz/32/82182_2.png) [@kareem\_abdelaziz](https://discourse.slicer.org/u/kareem_abdelaziz)\
**Post date:** [October 22, 2025, 9:03pm UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284/8 "2025-10-22T21:03:55Z")

</div>

Hello Iam a Senior Biomedical Engineering student Working on a similar project using kinect and I want to Integerate it with 3D slicer, have you found a solution to the Bridge problem between IGT and Kinect?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 25, 2025, 2:36pm UTC](https://discourse.slicer.org/t/sending-commands-to-python-interactor-from-microsoft-kinect/2284/9 "2025-10-25T14:36:42Z")

</div>

[Plus toolkit](https://plustoolkit.org) can acquire surface scans using azure kinect, revopoint, and intel realsense surface devices and stream them into Slicer via OpenIGTLink.
