Hello Guest it is April 25, 2024, 05:03:19 AM

Author Topic: How to trigger either a message, or a pop-up when input 2 is activated?  (Read 768 times)

0 Members and 1 Guest are viewing this topic.

I have several brains working, so I can add another for this purpose, I'm just not sure how to trigger either a message or a pop-up (anything to get the users attention)

If I can't do it with a brain, is there some other way?

I tried adding the following to macropump.m1s, but it does not work (macropump is enabled in cfg), so not sure what's up with that approach?
If IsActive(INPUT2) Then
message"abc"
EndIf


I can see input 2 changing in the diagnostic page, so the hardware is okay.

If I open macropump.m1s in the VB editor and then hit the play button, it gives syntax errors for just about any valid code that I put in the script


Thanks
« Last Edit: December 05, 2022, 09:19:05 PM by slow-poke »

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: How to trigger either a message, or a pop-up when input 2 is activated?
« Reply #1 on: December 06, 2022, 06:49:02 AM »
try this

Code: [Select]

If IsActive(INPUT2) Then
message "abc"
End If

anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.