Author Topic: Event handling for inline functions  (Read 3404 times)

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Event handling for inline functions
« on: May 09, 2018, 01:29:12 PM »
It would be great if there could be some event handling built into the VAProxy so that a 'Stop Commands,' profile switch, and/or maybe even setting a VA variable could trigger an event in an inline function. Would be particularly useful for cleaning up, especially when running async tasks from within the function that keep running even after a 'Stop Commands' is issued.

Thanks!

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2824
Re: Event handling for inline functions
« Reply #1 on: May 10, 2018, 09:07:15 AM »
I'm thinking this will be good.

SemlerPDX

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 280
  • Upstanding Lunatic
    • My AVCS Homepage
Re: Event handling for inline functions
« Reply #2 on: May 11, 2018, 02:53:55 PM »
If they were also in tokens, it would be great to have "VA Program State" variables, i.e. current profile, log file text direction (new entries top/bottom), key/mouse/joy input on/off, etc. so basic conditions could evaluate that.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Event handling for inline functions
« Reply #3 on: May 11, 2018, 03:20:45 PM »
If they were also in tokens, it would be great to have "VA Program State" variables, i.e. current profile
"{PROFILE}" is already implemented.

, log file text direction (new entries top/bottom),
Agreed.

key
"{STATE_SHORTCUTS}" is already implemented.

/mouse
"{STATE_MOUSESHORTCUTS}" is already implemented.

/joy input on/off, etc. so basic conditions could evaluate that.
"{STATE_JOYSTICKBUTTONS}" is already implemented.

Exergist

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 405
  • Ride the lightning
Re: Event handling for inline functions
« Reply #4 on: December 08, 2018, 09:55:22 PM »
I'd like to put in another plug for this one in the hopes that *maybe* it will get pushed further up the list. Being able to halt inline functions based on events like the Stop Commands button being pressed or the profile being unloaded would be very handy. Thanks!

kourou

  • Jr. Member
  • **
  • Posts: 81
  • Anything that can go wrong will go wrong
    • FANNY (Discord)
Re: Event handling for inline functions
« Reply #5 on: December 10, 2018, 12:17:05 PM »
take my upvote :)

kourou

  • Jr. Member
  • **
  • Posts: 81
  • Anything that can go wrong will go wrong
    • FANNY (Discord)
Re: Event handling for inline functions
« Reply #6 on: December 28, 2018, 05:38:00 PM »
some of events i've been thinking about : profile switching, state_ shortcuts, listening, etc... maybe cmds execution too and variables values changement.