Search found 1030 matches

by Grovkillen
Fri Feb 09, 2024 9:46 am
Forum: Technical / Scripting
Topic: VirtualKey for Gamepad/Joystick input
Replies: 10
Views: 8655

Re: VirtualKey for Gamepad/Joystick input

They are not serial as in COM, they are part of the USB standard and are identified as XInput devices. As long as a controller/gamepad/joystick comply to this standard no drivers are needed. It's been this way since the Xbox 360 got introduced. I just happened to see that the VK enums contained the ...
by Grovkillen
Thu Feb 08, 2024 7:31 pm
Forum: Technical / Scripting
Topic: VirtualKey for Gamepad/Joystick input
Replies: 10
Views: 8655

Re: VirtualKey for Gamepad/Joystick input

I'm wondering if this would be considered to be added?
by Grovkillen
Tue Feb 06, 2024 2:32 pm
Forum: Enhancement Suggestions
Topic: [added 15.0.23] Run command, capture STDOUT
Replies: 29
Views: 77597

Re: [added 15.0.23] Run command, capture STDOUT

I just updated and will wait and see. Sounds like it's fixed then :)

The update notes could be a tad more informative in this particular case, the "minor fixes" didn't sound too important for me to test :oops: :roll: :)
by Grovkillen
Sat Feb 03, 2024 6:12 pm
Forum: General Discussion
Topic: IF with AND
Replies: 2
Views: 1796

Re: IF with AND

Code: Select all

If>{(%cnr% = 1) AND (%dir% = -1)}
And if you are comparing other types:

Code: Select all

If>{(%cnr% = %first%) OR (%cnr% = %another%)}

Code: Select all

If>{(%cnr% = "one") AND (%dir% = "minus one")}
by Grovkillen
Fri Feb 02, 2024 7:21 pm
Forum: Enhancement Suggestions
Topic: [added 15.0.23] Run command, capture STDOUT
Replies: 29
Views: 77597

Re: [added 15.0.23] Run command, capture STDOUT

I just wonder if this is planned to be implemented or if I should not expect it to be addressed?
by Grovkillen
Thu Jan 18, 2024 8:35 pm
Forum: General Discussion
Topic: Unable to Search Website
Replies: 4
Views: 2635

Re: Unable to Search Website

This one?

search.php
by Grovkillen
Wed Jan 17, 2024 5:11 pm
Forum: Scripts and Tips
Topic: Only run script when pc is locked (lock screen)
Replies: 2
Views: 5628

Only run script when pc is locked (lock screen)

Here's a proof of concept to have a script run only when the pc is locked. I just look for the process "LogonUI.exe" which is the lock screen. If it's running then the pc is locked. I hope it's help someone. OnEvent>CUSTOM,LOOP_TO_CHECK_IF_LOCKED_WORKSTATION,LOGONUI_IS_ACTIVE,RUN_THIS_ONLY_WHEN_SCRE...
by Grovkillen
Tue Jan 16, 2024 12:26 pm
Forum: Enhancement Suggestions
Topic: [added 15.0.23] Run command, capture STDOUT
Replies: 29
Views: 77597

Re: [added 15.0.23] Run command, capture STDOUT

Nothing is shared. There shouldn't be a clash. Today the clash happened. A compile script crashed and was started up again. The crash happened during the run command and thus the " output.tmp " file was created in the ...AppData\Local\Temp folder. When the newly started script tried to do a RP_STDO...
by Grovkillen
Wed Jan 10, 2024 6:50 am
Forum: Scripts and Tips
Topic: Random Serial Code Generator
Replies: 6
Views: 11181

Re: Random Serial Code Generator

Thanks Marcus for this code snippet! Came really handy today.
by Grovkillen
Tue Jan 09, 2024 1:24 pm
Forum: Technical / Scripting
Topic: VirtualKey for Gamepad/Joystick input
Replies: 10
Views: 8655

Re: VirtualKey for Gamepad/Joystick input

Great little code there. Thanks for that! :)

But, the gamepad isn't triggering anything so I guess that the gamepad isn't acting like a normal input after all. Would you consider looking into this and see if it's possible to add this feature to MS? :oops:
by Grovkillen
Tue Jan 09, 2024 11:33 am
Forum: Technical / Scripting
Topic: VirtualKey for Gamepad/Joystick input
Replies: 10
Views: 8655

Re: VirtualKey for Gamepad/Joystick input

I guess it wasn't that easy... this is not working: //button A = 195 OnEvent>KEY_DOWN,VK195,0,TEST Label>START Wait>1 Goto>START SRT>TEST MDL>195 GamepadA - pressed Exit> END>TEST I found some more info here: https://learn.microsoft.com/sv-se/windows/win32/api/xinput/ns-xinput-xinput_gamepad?redirec...
by Grovkillen
Tue Jan 09, 2024 9:52 am
Forum: Technical / Scripting
Topic: VirtualKey for Gamepad/Joystick input
Replies: 10
Views: 8655

Re: VirtualKey for Gamepad/Joystick input

If we look in the help: https://help.mjtnet.com/article/262-virtual-key-codes we see that these VK codes are reserved: 195 GamepadA 196 GamepadB 197 GamepadX 198 GamepadY 199 GamepadRightShoulder 200 GamepadLeftShoulder 201 GamepadLeftTrigger 202 GamepadRightTrigger 203 GamepadDPadUp 204 GamepadDPad...
by Grovkillen
Tue Jan 09, 2024 9:36 am
Forum: Technical / Scripting
Topic: VirtualKey for Gamepad/Joystick input
Replies: 10
Views: 8655

VirtualKey for Gamepad/Joystick input

I'm trying to make an "extra" keyboard for our workshop users so that they can make inputs using their feet. For this I plan to use a gamepad DIY module (usually made to build arcade machines). I just need to find a way to use the input from joystick. https://learn.microsoft.com/en-us/uwp/api/window...
by Grovkillen
Mon Dec 18, 2023 12:22 pm
Forum: General Discussion
Topic: ONERROR not capturing string error
Replies: 6
Views: 13537

Re: ONERROR not capturing string error

Thanks for the feedback.

Currently I'm using the good 'ol:

Code: Select all

Let>TEMP_check=VALUE*0
If>TEMP_check=0
  Let>VALUE_round={Round(%VALUE%)}
Else>
  Gosub>PROCESS_ERROR
Endif>
by Grovkillen
Mon Dec 18, 2023 8:23 am
Forum: General Discussion
Topic: ONERROR not capturing string error
Replies: 6
Views: 13537

ONERROR not capturing string error

I have many times found myself with end user problems that have been related to some string ending up in a numerical calculation. These errors aren't catched by the ONERROR function. See example below, the commended out line will be catched but not the string inside the calculation error. Let>ONERRO...
Sign up to our newsletter for free automation tips, tricks & discounts