P.I. Engineering User Forum

Product Support, Technical Questions and Answers, and Examples for P.I. Engineering Products

You are not logged in.

#1 2018-09-10 22:33:50

Dave
Member
Registered: 2018-09-10
Posts: 3

Preventing fast button presses

Is there any way to limit the speed at which button presses are registered? My keypads are used in a public kiosk setting and I have no control over users' actions. Some people like to try and "break" the applications by pressing buttons as fast as they can. I've been combating this programmatically from within the applications but it's a pain - it would be much easier if I could simply program the keypad to only accept a button press after a certain delay. For example, any button press less than one second since the last button press is ignored.

Thanks,
Dave

Last edited by Dave (2018-09-10 22:34:29)

Offline

#2 2018-09-11 08:20:29

PIE Jon
PI TECH SUPPORT
From: Somewhere
Registered: 2018-03-21
Posts: 20

Re: Preventing fast button presses

Have you tried programing any delays in? there is a delay option in macroworks. After clicking the button you wish to program go to the function tab, click show function, and you should see delay in the list.

Offline

#3 2018-09-11 23:24:45

Dave
Member
Registered: 2018-09-10
Posts: 3

Re: Preventing fast button presses

I don't actually want a delay in the button's response, I want a delay after the button press during which any additional button presses are ignored.

It would work like this:
- User presses button A, which triggers the programmed action immediately as you'd expect in normal use.
- Less than one second later, user presses button A again, but since it's been less than 1 second since they last pressed the button, this button press is ignored.
- After one second, the user presses button A again and it functions normally.

I hope I've explained this properly. It's hard to describe but if you can imagine a child frantically pressing every button they can as fast as they can just to see what happens, you'll understand my situation. Some users try to press as many buttons as they can at the same time, just to try and crash the application.

I don't see any way to do what I need in Macroworks but I thought it would be worth asking just in case anyone has any ideas.

Offline

#4 2018-09-12 08:22:57

PIE Liam
Technical Support Specialist
From: Williamston, MI
Registered: 2016-01-21
Posts: 130
Website

Re: Preventing fast button presses

Dave,
you're right, I don't see a way to accomplish this via our standard gui and functions. Their is another option however, a piece of software called "AutoHotkey" could be used to write a script file that would behave like this I'm sure, you could then launch the scripts via our hardware (whether through keystroke macros assigned to the script or via the file "Shortcut" tab in Macroworks 3.1.

Autohotkey home https://autohotkey.com/

A forum post form autohotkey regarding single press, double press and long press actions https://autohotkey.com/boards/viewtopic.php?t=10067

Offline

#5 2018-09-13 21:08:18

Dave
Member
Registered: 2018-09-10
Posts: 3

Re: Preventing fast button presses

Thanks very much, I'll give that a try.

Offline

Board footer

Powered by FluxBB