Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 04:49:34 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Mach Screens
| | |-+  Screen designer tips and tutorials
| | | |-+  Holding down a Keyboard Button or MousePress
Pages: 1   Go Down
Print
Author Topic: Holding down a Keyboard Button or MousePress  (Read 554 times)
0 Members and 2 Guests are viewing this topic.
Phil
Active Member

Offline Offline

Posts: 6


View Profile
« on: June 06, 2010, 05:24:23 PM »

I have designed my screens for an application I am working on, and need several buttons to operate relays whilst a keyboard button is held down and/or mouse click is held down. I have the screens and operate the relays using some simple VB. I can easily toggle them on and off, and all works fine.

But I need them to hold on only whilst the button is pressed or the mouse clicked - Does anyone know a way to do this with the Brains or VB or anything? I don't actually use an X Y Z axis - it could be a bodge but can the jog buttons be reused if there is no proper way to achieve what I want?

I have searched the forum and cannot find an answer although I did see similar questions posed several times.

Phil.
 Huh
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,612



View Profile WWW
« Reply #1 on: June 06, 2010, 05:43:49 PM »

I think you'll need to do the screen in Flash to do that. Unfortunately, there's no Flash documentation.
Logged

Phil
Active Member

Offline Offline

Posts: 6


View Profile
« Reply #2 on: June 06, 2010, 05:48:13 PM »

Thats a shame - me and flash don't get on!!
Logged
BR549
Active Member

Offline Offline

Posts: 2,551


View Profile
« Reply #3 on: June 06, 2010, 08:10:58 PM »

YOu can use a keyboard key as a hotkey to do that but not a screen button
Logged
Phil
Active Member

Offline Offline

Posts: 6


View Profile
« Reply #4 on: June 06, 2010, 08:26:16 PM »

Really - how - do you have a link, or example within standard mach screens/profiles?
You can use a hotkey to send an output whilst the key is pressed, and then to stop when the key is not pressed -  will try that and see.
thanks
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!