Comments (2)
It's not currently possible.
You could implement such a delay by using two macros, the following mappings:
Left button -> Macro 1
Expression 2 -> Macro 2
And the following expressions:
Expression 1:
1 recall
0x00090001 input_state_binary not
mul
0x00090001 input_state_binary
time
5000 add
mul
add
1 store
2 recall
0x00090001 input_state_binary
bitwise_or
2 store
Expression 2:
1 recall
time eq
2 recall
mul
Expression 3:
1 recall
time eq
not
2 recall
mul
2 store
(Change 0x00090001
in the expression to the usage that you want to trigger the macro.)
I realize it's not the most straightforward.
The way it works is Expression 1 stores the current time plus 5 seconds in register 1 if the button is pressed and at the same time updates register 2 with the value of "1".
Expression 2 checks if the current time matches the value in register 1 and additionally checks if register 2 is "1". This triggers the second macro.
Expression 3 resets register 2 to "0" after the second macro is triggered.
Register 2 is necessary because the clock wraps around after like 35 minutes, I think, so it prevents it the second macro from executing again (at least I hope it does, I didn't wait 35 minutes to check.)
(EDIT: I guess we should also think about what happens when current time+5 seconds wraps. Maybe we need to add some modulo or something.)
from hid-remapper.
There are some discussion on "startup" Wait in #132 and it worked for me.
from hid-remapper.
Related Issues (20)
- Usage on a Pico without USB input at all => reuse the D+ and D- as GPIO?
- Would you consider RGB output (APA102 and WS2812B)? HOT 1
- Sticky not working as expected for drag-lock on mouse button HOT 4
- Weird issue with zowie ec1-c HOT 4
- Switch Output does not enable controller setup HOT 3
- Feature Request: Control HID Remapper via USB Serial HOT 1
- Home and Back button not forwarded when using hid-remapper HOT 9
- Feature: Monitor control using DDC/CI protocol
- Emulated a single controller using a USB Joystick and a gamepad using free GPIOs HOT 4
- Firmware for nrf52840-mdk-usb-dongle
- Problem with arrow keys in macro HOT 4
- Support for the sleep and power buttons HOT 4
- Ensure that the prior key in a tap-hold binding is equal to the tap input key when initiating a tap binding HOT 3
- HID Remapper with hand held speechmike HOT 4
- Unable to get board v5 to work HOT 16
- Clear Layer HOT 3
- Support: Startup (run once) action (and Delay) HOT 4
- How would i? Capslock is Escape, or Control if pressed with a key? HOT 6
- A single key press HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hid-remapper.