Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: slow-poke on December 05, 2022, 09:13:25 PM

Title: How to trigger either a message, or a pop-up when input 2 is activated?
Post by: slow-poke on December 05, 2022, 09:13:25 PM
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
Title: Re: How to trigger either a message, or a pop-up when input 2 is activated?
Post by: TPS on December 06, 2022, 06:49:02 AM
try this

Code: [Select]

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