Page 1 of 1
Hook Request
Posted: Wed Jun 26, 2019 10:25 am
by coolprep25
Class: AutomationL.cs
Method: public static bool Trigger<T>(AutomationTrigger trigger,List<string> procCodes,long patNum,long aptNum=0,T triggerObj=default(T))
Please add Hook at the beginning of the case "PopUpThenDisable10Min" statement.
Thanks!
Re: Hook Request
Posted: Wed Jun 26, 2019 4:07 pm
by PatrickC
Here's what I have for the hook at this point.
Code: Select all
case AutomationAction.PopUpThenDisable10Min:
Plugins.HookAddCode(null,"AutomationL.Trigger_PopUpThenDisable10Min_begin");
long automationNum=listAutomations[i].AutomationNum;
If that looks like what you're envisioning, I'll go ahead and add it to the next update.
Re: Hook Request
Posted: Mon Jul 01, 2019 6:41 am
by coolprep25
Please pass following arguments into the method call: listAutomations, List<string> procCodes, long patNum
Plugins.HookAddCode(listAutomations,List<string> procCodes,long patNum, "AutomationL.Trigger_PopUpThenDisable10Min_begin");
Re: Hook Request
Posted: Mon Jul 01, 2019 12:26 pm
by PatrickC
Here is the updated hook request, which has been committed to (soon-to-be)beta version 19.2.2
Code: Select all
Plugins.HookAddCode(null,"AutomationL.Trigger_PopUpThenDisable10Min_begin",listAutomations[i],procCodes,patNum);
This is an AddCode hook, and I wanted to confirm that this is the desired functionality over a Method hook.
Re: Hook Request
Posted: Tue Jul 09, 2019 3:22 pm
by coolprep25
Please change it to Method hook...Thanks!
Re: Hook Request
Posted: Tue Jul 09, 2019 4:15 pm
by cmcgehee
coolprep25,
Could you write out the code for the hook, including several lines before and after the hook? This will help us make sure we get the exact form that will be helpful to you.