Code Monkey home page Code Monkey logo

macro-deck-windows-utils-plugin's Introduction

Hi, I'm Manuel 👋🏻

Technologies I use

Swift .NET Ionic

Fastlane Git GitHub Docker Ubuntu

HTML CSS TypeScript Angular Bootstrap

Support my work

Buy Me a Coffee at ko-fi.com

Stats

Manuel Mayer's GitHub stats

suchbyte

macro-deck-windows-utils-plugin's People

Contributors

benjiiben53 avatar develeon64 avatar jbcarreon123 avatar kirsebaerqaq avatar manuelmayer-dev avatar phoenixwyllow avatar zedalert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

macro-deck-windows-utils-plugin's Issues

Spotify control and closing opened application

Hi, can you add action to control volume of only Spotify (not on system) and few options with Spotify like:
play pause, maybe link to your playlist? Is it possible?

Second idea is to add action to close the application which is opened by Macro Deck (maybe by different button,
or maybe by click two or three times on button which opens app)
So you have button to open Spotify etc. and when you click on different button you can close Spotify.
Is it possible now?

Thanks

Run commandline commands in the background

Currently commandline commands and applications (even if they support silent mode) are started in the visible window, taking focus onto themself and interrupting fullscreen applications.

It would be great if they would run completely silent in the background.
And maybe someone also interested in separate options to run PowerShell and WSL scripts, not only regular command line.#

Issue originally created by @zedalert in the Macro Deck repository

Press and hold keyboard shortcut

Currently, I can tap an icon and it will send keyboard shortcut (with Windows plugin). But I can't press and hold the icon to keep the shortcut pressed. This would be beneficial for games, flying simulators in my case, where actions like "press and hold for 2 seconds" are quite normal. Or when holding the key continually changes something.

In the easiest setup for a user there should be something like "On hold" action, because this obviously is not On press, nor On release. When such an action is chosen, Windows plugin would offer Hotkey which would be pressed and held for the whole duration of the press. Alternatively, Windows plugin can offer hotkeyOn and Off... but this may be complicated for setup and may offer room for errors (what if user sets on differently than off?).

Any game where holding a key for a while may bring a benefit. DCS simulator is a good example, because there are so many binds, that using something like Stream Deck (which seems NOT to support press-n-hold either!) - or this fantastic alternative -
is ideal for less-used functions. It's still available, it can be readable on the display, it plays well with features like icon folders... this is a fantastic alternative to HW controllers - and while less tactile, it is even more flexible.

more complex hotkey with multiple characters

Is your feature request related to a problem? Please describe.
Ability to use a large set of AutoHotkey and phrase express hotkeys without affecting other macros which other apps perform.

this would be great for things like complex macros for software like solid work / Freecad / fusion CAD Software. Will allow macros to be easier to share macros to other devices as well as create a central database of macros for multiple computers. This will not affect other apps or keyboard shortcuts.

Allow quick chat responses with phrase express.

Implementing macro sets other people have made with an auto hotkey. EG Tarian from LTT adobe macros.

Describe the solution you'd like

A clear and concise description of what you want to happen.
Add an additional 1 or 2 extra characters when doing windows hotkeys by pressing a plus button for the character.

Eg:

control +Shift + VK_A+ VK_B + VK_C

Or

F24 + VK_A

Or
F24 + VK_A + VK_B

Alternitve

A Tut on how we can do it through cottle. Though this would e tedious to do if you have a large set of macro you wish to implement and not as clean.

[BUG] Import icon on Start application does not show the icon size dialog/imports the icon and it leaves a error

What I get:
explorer_iJZ5DI6Pfd

What should happen:
It should show me the import icon size dialog.

Macro Deck Logs:
2022-06-01.log

Error is:
9:17:24 pm [Windows Utils] [Error] >> Failed to import the file icon: Method not found: 'SuchByte.MacroDeck.Icons.Icon SuchByte.MacroDeck.Icons.IconManager.AddIconImage(SuchByte.MacroDeck.Icons.IconPack, System.Drawing.Image, Boolean)'. at SuchByte.WindowsUtils.Utils.FileIconImport.ImportIcon(String filePath) at SuchByte.WindowsUtils.GUI.StartApplicationActionConfigView.OnActionSave() in D:\Temp\SuchByte.WindowsUtils\Views\StartApplicationActionConfigView.cs:line 113

Version:
Macro Deck 2.10.2.221202323
Windows Utils 1.4.0

[feature request] active application from background

If the application is opened, switch it from background to foreground ; otherwise launch the app.
In particular, the launcher and the main program of some applications are not the same file, so two parameters for the program path are necessary and one of them can be null.

Macro Deck 'Windows Utils - Write text'

Write text is a great feature however multi-line text has varying effects depending on what application the text is written to. For example writing an address to Windows Notepad or Microsoft Word has a double line spacing; in Synology MailPlus email a multi-line address is written as one continuous string with no spaces and Microsoft Mail puts the first line on the top line of the message but then leaves a few lines before putting the rest of the address on a single line.

New Action: Switch Windows

Is your feature request related to a problem? Please describe.
I would like to switch windows using an in-built action in MacroDeck2

Describe the solution you'd like
An option in the Actions list to switch windows. It should be able to identify the window required full/partial string matches.

Describe alternatives you've considered
I have considered using imprecise window switching by using Win+number, or alt-tab, or Win-tab. Doesn't quite work as well as precise window switching that I am envisioning.

Additional context
Nothing of note.

Macro Deck Button Action Bug

Describe the bug
With Write text on both On Press and Release, a short press on the button shows corrupted text on screen.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'any folder'
  2. Click on '.a new button'
  3. For 'On Press' Click + to add text in Windows Utils > Write text
  4. Type text "On Press"
  5. Repeat 3. For 'On Release'
  6. Type text "On Release"
  7. Save button.
    In a client, press the button and release it straight away.
  8. See error: The printed text is corrupted.

Expected behavior
What should be displayed is 'On Press' then 'On Release'

Screenshots
If applicable, add screenshots to help explain your problem.

Button Action Bug

Opción para poder apagar la computadora con un botón

hello, can you add an option to turn off the computer from a button, it would be of great help and a quick direct access, as well as the option to suspend the computer.
and the other idea is an option to mute the micro from a button.

Thank you for your attention.

Configuring Working directory for the "Start application" action

Is your feature request related to a problem? Please describe.
Tried to start 'OBS Studio' using 'Windows Utils -> Start application', and it doesn't work.
The following 2 errors pop up:

Failed to find locale/en-US.ini

Failed to load locale

It seems that 'OBS Studio' assumes working directory to be set to the same as the executable.
So as a workaround, I use 'Windows Utils -> Command line command' and set the working directory as follows:

Command -> start "" "C:\Program Files\obs-studio\bin\64bit\obs64.exe"
Working directory -> C:\Program Files\obs-studio\bin\64bit

But it's annoying to see the console window coming up.

Describe the solution you'd like
It would be nice to have a working directory input text field in the 'Windows Utils -> Start application' action, like the one in 'Windows Utils -> Command line command'

Describe alternatives you've considered
(Alternative 1)
'Windows Utils -> Start application' sets the working directory to the same folder path as the executable by default (like the default shortcuts in Windows)

(Alternative 2)
An additional checkbox in 'Windows Utils -> Start application', indicating whether you want the working directory set to the same folder path as the executable or not.

(Alternative 3)
An additional checkbox in 'Windows Utils -> Command line command', indicating whether you want to show the console window or not.

Additional context
None.

Fn button as hotkey?

Do you support Fn? if you do which is it, in the drop down list of hotkeys? (my use is for an msi laptop where if you press fn then f8 it start to spin the fans much faster)

Key Macro: Improvements (Key-Down, Key-Up)

Is your feature request related to a problem? Please describe.
I would like to define the key macros to a finer degree, to be able to specify key-down, and key-ups as required. Thus, this allows the ability to do key-held shortcuts, for example alt-tabbing until the required window or Win+number to get to the second window for switching.

Describe the solution you'd like
To be able to define key-downs and key-ups separately as part of the key macros.

Describe alternatives you've considered
A bonus would be able to record the macro from the keyboard instead of manually defining it.

Additional context
Added a screenshot of something equivalent that was constructed using Corsair's iCue software.

unknown

`Start/Focus` method not focusing application

Info

OS: Windows 10 22H2
Macro Deck Version: 2.14.1
Client: Android (13)

Steps to Reproduce

  1. Select the Start/Focus method in Start Application
  2. Open the application (either outside of Macro Deck or using the button, it doesn't matter)
  3. The already opened application does not focus when clicking the button

The Issue

The SetForegroundWindow function only works in certain cases. Provided is an image of the requirements that are the main reason as to why the function doesn't work in most cases:
conditions
SetForegroundWindow documentation here.

The Fix

I used the ShowWindow function, which is already used in the code, to activate the window (SW_SHOW) and then show its default state (SW_SHOWDEFAULT).
ShowWindow documentation here.

Using this information, I have (somewhat) fixed the implementation of the BringToForeground function in the ApplicationLauncher.cs file. This does not restore it in the most recent position or state. It only restores it to the state it was in when first opened.

Updated function:

public static void BringToForeground(string path)
{
    path = WindowsShortcut.GetShortcutTarget(path);
    if (!IsRunning(path)) return;
    var p = GetProcessByPath(path);
    if (p == null) return;

    IntPtr handle = p.MainWindowHandle;
    ShowWindow(handle, 5);    // Changes here
    ShowWindow(handle, 10);  // Changes here
    if (!IsIconic(handle))
    {
            return;
    }
    MinimizeAndRestoreWindow(handle); // Fallback function
}

The changes are in pull request #33.

simultaneously key press for large quantity of macro and integration to auto hotkey / phrase express / text expander

Is your feature request related to a problem? Please describe.
Auto hotkey/phrase express integration for a large set of macros and auto-text expansion
Describe the solution you'd like
in the window utils add a second simultaneous keypress to the current hotkey macro

Current:
control + Shift + VK_a

Requested:
Example 1:
control + Shift + VK_a + f24
Example 2:
control + Shift + VK_a + VK_b + f24

Describe alternatives you've considered
add typing simulation to activate a phrase express hotkeys

Additional context
would be great to be able to use it for quick typing and other scripting functions outside of streaming. Thanks for the consideration

"Start application" does not import icon

Macro.Deck.2-20220130115112-1.mp4

Expected behaviour:
the prompt used to work where the user could choose the icon pack in which to add the icon.

Possible additional improvement:
the possibility of creating a new icon pack when importing the icon.

Icons import form executables not working

Before updating to MacroDeck 2.3.*-dev it was working.
Current version of Windows Utils plugin is 1.3.0

Now it only asks whether it should import icon from the application, but it does nothing in case of agreement.

windows utils "write text" inconsistently inaccurate

when using the "write text" and using break line ("
, "\n ", "return", "ENTER" or whatever you want to call it) has different effects in different programs:
visual studio code and pspad - continues in same row instead of going done one
notepad - goes down 2 rows
microsoft word - goes down a row but shows weird symbols
macro 2
macro 1

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.