Git Product home page Git Product logo

openmacroinput's Introduction

Hello there 👋

image
image

Visit card redirection links

Learn about Eloi Stree : About - Portfolio - Service - Contact - Download
Learn about Open Macro input : About - Learn - API - Invest - Download

IMMO: Integer Games

Git; Integer Games | RSA Key | RSA to Platform | Tools
Web: Website Landing Page | Log In
image


Toolboxes

In any project I am working on, you will find these packages in the manifest:

How to install in Unity3D ?

"be.eloistree.license": "https://github.com/EloiStree/GeneralLicense.git",
"be.eloistree.generaltoolbox": "https://github.com/EloiStree/2021_10_03_EloiGeneralToolbox.git",
"be.eloistree.quickgitutility": "https://github.com/EloiStree/2019_07_21_QuickGitUtility.git",
"be.eloistree.unitypackagefacilitator": "https://github.com/EloiStree/2019_07_21_UnityPackageFacilitator.git",
"be.eloistree.zhulistaticsingleton": "https://github.com/EloiStree/2022_11_22_ZhuLiStaticSingleton.git",
"be.eloistree.etoolboxbasicfont": "https://github.com/EloiStree/2024_03_11_eToolbox_BasicFont.git",
"be.eloistree.etoolboxcolordrop": "https://github.com/EloiStree/2024_03_11_eToolbox_ColorDrop.git",
"com.endel.nativewebsocket": "https://github.com/endel/NativeWebSocket.git#upm",

OpenUPM

image
"Unity store rejected my tools five times in my life: F**k them."
https://openupm.com/packages/?sort=downloads&q=eloistree

GitHub / Gitlab

image
GitLab projects - GitHub Projects

Portfolio

I am coding all day... And most of the code are not showable. But you can find some here: here image
image

📚 Teaching Workshop

image
Twitch: EloiTeaching Youtube: Eloi Raw & Multiple attempts of channel

Tools used to teach and share knowledge during workshops.

A [B]
A B
A B
A B
A A
A A

Other workshop that I am creating, or would like to create:
Search for "Hello" in the repository

From a tool I generate preview of workshop that you can find here:
Issues to Markdown preview of workshop

Need my help for something ?

image

May the code be with you,
Kind regards,
Eloi S.

🧰 📦 📹 💻 💥 🎮 𑁒 🔨 🍻 ☕ 🧪

openmacroinput's People

Contributors

eloi4activeme avatar eloistree avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

eloi4activeme

openmacroinput's Issues

Topic: How could I read key, mouse input from a java third app ?

Maybe a solution for the project would be to read the input outside Unity to send them to Unity to generate the logic and the filter. And to send back the logic to the application for execution.

I am have some doubt about the transition delay with UDP event if it is on the same PC.

The questions are, if i decide to do that:

  • can I do it with java to be multi-platform ?
  • what library or official code would allow me to do that in java ?
  • Does it exist a library that is doing that with the "permissive" license ?

File extension: .audiointensity

This file allow you to switch a Boolean based on the intensity of microphone intensity.

In the following example, we create booleans that check if the user in the microphone 1 is speaking correctly or not.

It can be used if you have several microphone on your computer and want to make a feed back when the participant is not tuned properly to the microphone intensity.
It can also display the user that he is considered as speaking by the software.

It can be use for ton of alternative tools. For example:

  • if you want to make a tool that countdown the time of each participant
  • if you want to trigger some action based on morse you do with your pencil
  • wait for error to occur to launch a script
  • be able to control by "voice" your computer when doing away-from-keyboard actions
  • ...
Microphone1♦Mic1NotUsed♦0.1♦1
Microphone1♦Mic1Used♦0.1♦1
Microphone1♦Mic1Medium♦0.5♦1
Microphone1♦Mic1TooHigh♦0.9♦1

One way I am using it is to fishing in world of Warcraft:

Stereo♦FishingSound♦0.1♦1

See #47 .wowfishingsetting

How to set it up ?

This one is a bit tricky because for the moment, my code allows only to listen to microphone.

Low cost computer

In some computer you don't have tools to listen to the ouput sound as an input sound.

In my old computer the trick is simple... I use a jack cable that go from the microphone jack and the speaker jack. And track the microphone of window.

"If it is stupid by it work... It ain't that stupid."

By changing your Window preference

Open the sound configuration system of Window.
image

Check for the name of the input you want to listen. You have one for each microphone detected of virtual audio input in your computer.
image

If you don't want to use the name of the audio Window gave to your microphone you can renamed it.
image

image

Topic: Download Java OMI

Java OMI is a small Java "Runtime" that listen to a port of you computer.
When he received a message (not security yet) he try to translate it.
If he does, it converts it to a mouse move/click/wheel, keyboard stroke.

Required Java Runtime on your computer.
Generally install by default, if not download it here

You can easily interact with is in Unity using this package:
be.eloistree.javaopenmacroudp

Default Port:2501
Commands (P ress, R elease, S troke) :

  • ks:[keyname:string]: // type a key on the keyboard
  • ms:[0,1,2] // click the mouse left, middle or right
  • wh:[wheel:int] // Do a scroll mouse
  • mm:[x:int]:[y:int] // Move your mouse at the x:y pixel of the screen

Download last stable version:
V2020_04_10_JavaOMI.zip

Topic: ↓↑ Boolean State Machine annotation

If I give you this boolean:
IsHandsOverHead
IsHandsStandingStill
IsHandOnLeftSide
IsHandOnRightSide
IsHandLeftNearHead
IsHandRightNearHead
Could you check if the player is holding his hand in the air ?
Could you check if the player is asking a question ?
Could you check if the player is crossing hands ?
Yes by doing combination.

But to do that you need to connect the dote in a way or an other that the programme can understand.
That the idea of this thread to check around what has been done with boolean state machine and how I could write my "own" converter to allow user to know learn a coding language but still use logic to do they own input trigger.

Topic: Muscle Sensor

Same question that for #38 Egg:

  • what are muscle sensors ?
  • How will I have to connect them to OMI ?
  • What are the constraint ?
  • What are the cost ?

Topic: Read and Write Xbox input

Ouh... That a hard topic.

To read

You can find my code here that is based on some else code:
https://github.com/EloiStree/XInputDotNet

To Write

To write is an other story...
You can't write just by calling a windowfile.dll like for mouse and screen.

You need to create a fake controller using:

The tool is apparently created by "vXbox by vJoy".

And then use some wrapper like the following:

To interface the DLL.

(I am new to this weird situation. So feel free to correct me and don't take my word for trust.)


There are also a x360ce Library but I am not sure of how to use it or if it is free to use in the license therm.

Support: Auto Hot Key

The question is simple, in what ways can I support auto Hotkey with Unity OMI or Java Runtime OMI.

Topic: Capture the screen in C# to threat it in Unity but with the less possible preformance lost

I need to convert the screen(s) to Texture2D in unity to be able to make pixel condition and shadergraph filtering to improve the toolbox OMI.
You can use the classic C# and user32 dll to copy the screen but it often crash and is very very slow 400-1000 milliseconds.
I use also a java version that take 100-600 ms.

I need something more smooth. Because of performance but also because I would like to create my own virtual desktop version in Unity in an open source way in the future to make working environment.

So apparently they are ways of doing it. But that in skills I don't own.
So let's learn new skills.

Tocip: What is a regex ? Where to start ? (For new user)

Regex

Basically, a Regular Expression is a small line of text that represent a format.
You can use it to sort, replace, found, identify, validate text ...

There are tons of reason to study Regex in your life.

Why should you study Regex to use Open macro input ?

  • Because it allows you to create your own input state listener without having to learn code.
  • Because you can create "format" of text that can trigger the macro & commands you want.

How ?

1.For the the trigger, you can for example do this:
Regex: (?=([Aa]rcher|[Ss]oldiers?)).*([Bb]ig)
Command: Stroke 10 time key Z
Text:
Can you spawn archer soldiers. A Big group. Can you spawn archer soldiers. A Small group. Can you spawn one archer soldier.

Support: Tap With Us

Ok, so one of the hardware I have is, Tap With Us:
https://www.tapwithus.com/

It is a good example of OMI support complex case:

  • I need it to works on my phone when I am not on my PC.
  • I need it to interact with my PC when I am on it
  • I need it to only interact when I press some button on my keyboard
  • I could make the phone switch mapping depending on what app I am focusing

So... Lot's of work.

But if it works properly without too much "bug" it means that OMI is almost ready to be massively used

For the moment you can find:

Find the APK demo of Java Toolbox here:
TapWithUsToolboxDemo.zip

Installation & Use

A bit complex, I should do a video about the subject.
In the big line:

  1. Download the last Zip
  2. You should have an APK and a jar file in it
  3. Install the APK on your phone
  4. Launch the applicatoin
  5. Launch the jar file by clicking on it
  6. Add the ip & port info in your phone app from the app on your PC
  7. You should be able ton control your PC.

Feel free to learn how to install APK on your phone.
Then to come on the discord to ask me how to do it (until I have a video about it)

File extension: .wowfishingsetting

Wow Fishing Setting file can be use to start a block of logic that allow a player of World of Warcraft to auto-fish when they don't need to use their computer.

// That is the macro we will execute if a fishing is detected
☗fishingcastcommandline macro:wow:collectandrestartfishing

//This is the condition that will trigger if the fish has been detected
☗fishingtriggercastcondition wow + fishingsound

//This condition allow to define when the user want to fish automaticaly
☗fishingactivecondition wow + isfishing 

// This is the time in millisecond that we want the detection of the fishing to be in pause when we re-cast the line
☗fishingcastpause 4000

//This is the time in millisecond before the cast will be re-cast if it was not triggered before
☗fishingrecallduration 22000

To work you need an other part.

  • Pixel detection that will be present in near future.
  • Sound detection

For the moment I use the sound of the computer.
Like this:

// Set the boolean "FishingSound" to on/off based on the intensity  of the sound, from 10% to 100% of it for true, that is out of a audio channel with "Stereo" in his name.
Stereo♦FishingSound♦0.1♦1

Look in the documentation on ".audiointensity" to check how to set it up.

Topic: How can I connect IOT service to OMI

Ok, I remember by talking with IOT guys and during hackathons that they use lot's of different service for dealing with device around the house and buildings.

That where I learn the first time about MQTT Server.
What what else exist in the field.

The idea is that simple webcam can know where you are in the room.
So it would be good to have if the I am in the bed room of the room and click on play button. I play music and put window screen in low mode or black.

I know that at the start IFTTT should be that but they are so greedy with sponsors that it is unusable.

So the question of this Topic is:
How does people using IOT trigger actions from so many devices on the web.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.