[MTCD Software Development] jnshk:
To send an intent in Tasker (such as to mimic a physical button press) you want to add an action to your task:

> Code

> > Run Shell

> > > Command: am broadcast -a com.microntek.irkeyDown --ei keyCode xxx

> > > Timeout (seconds): 0

> > > Use root: YES

> > > Continue task after error: YES

Where xxx would be the key code for the button that you want to "press".

For example, I've created a project to adjust volume by speed by monitoring location GPS speed and then sending a broadcast that mimicks a volume button press to raise or lower the volume when I hit certain speeds.

<TaskerData sr="" dvi="1" tv="5.14.6">
<Profile sr="prof100" ve="2">
<cdate>1603677541142</cdate>
<clp>true</clp>
<edate>1635992358242</edate>
<flags>8</flags>
<id>100</id>
<mid0>93</mid0>
<mid1>94</mid1>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gl_speed_MPH</lhs>
<op>7</op>
<rhs>62.5</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Profile sr="prof101" ve="2">
<cdate>1603677541146</cdate>
<clp>true</clp>
<edate>1635992349271</edate>
<flags>8</flags>
<id>101</id>
<mid0>93</mid0>
<mid1>94</mid1>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gl_speed_MPH</lhs>
<op>7</op>
<rhs>72.5</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Profile sr="prof102" ve="2">
<cdate>1603677541155</cdate>
<clp>true</clp>
<edate>1635992308855</edate>
<flags>8</flags>
<id>102</id>
<mid0>93</mid0>
<mid1>94</mid1>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gl_speed_MPH</lhs>
<op>7</op>
<rhs>12.5</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Profile sr="prof47" ve="2">
<cdate>1635992536619</cdate>
<clp>true</clp>
<edate>1635992657858</edate>
<flags>8</flags>
<id>47</id>
<limit>true</limit>
<mid0>43</mid0>
<nme>Scan GPS</nme>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%GPS</lhs>
<op>4</op>
<rhs>on</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Profile sr="prof96" ve="2">
<cdate>1603677541124</cdate>
<clp>true</clp>
<edate>1634249716138</edate>
<flags>8</flags>
<id>96</id>
<mid0>93</mid0>
<mid1>94</mid1>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gl_speed_MPH</lhs>
<op>7</op>
<rhs>22.5</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Profile sr="prof97" ve="2">
<cdate>1603677541130</cdate>
<clp>true</clp>
<edate>1601074573276</edate>
<flags>8</flags>
<id>97</id>
<mid0>93</mid0>
<mid1>94</mid1>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gl_speed_MPH</lhs>
<op>7</op>
<rhs>32.5</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Profile sr="prof98" ve="2">
<cdate>1603677541135</cdate>
<clp>true</clp>
<edate>1601074572403</edate>
<flags>8</flags>
<id>98</id>
<mid0>93</mid0>
<mid1>94</mid1>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gl_speed_MPH</lhs>
<op>7</op>
<rhs>42.5</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Profile sr="prof99" ve="2">
<cdate>1603677541138</cdate>
<clp>true</clp>
<edate>1601074571620</edate>
<flags>8</flags>
<id>99</id>
<mid0>93</mid0>
<mid1>94</mid1>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%gl_speed_MPH</lhs>
<op>7</op>
<rhs>52.5</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Project sr="proj0" ve="2">
<cdate>1600483122498</cdate>
<name>SpeedVol</name>
<pids>97,47,101,98,100,99,102,96</pids>
<tids>93,94,43</tids>
</Project>
<Task sr="task43">
<cdate>1600468186844</cdate>
<edate>1635992729066</edate>
<id>43</id>
<nme>GPS_speed</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>30</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="2"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>366</code>
<se>false</se>
<Bundle sr="arg0">
<Vals sr="val">
<net.dinglisch.android.tasker.RELEVANT_VARIABLES><StringArray sr=""><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0>%gl_latitude 1. Latitude </_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES0><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1>%gl_longitude 2. Longitude </_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES1><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2>%gl_coordinates_accuracy 3. Lat, Lon Accuracy In meters</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES2><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3>%gl_altitude Altitude (meters) In meters</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES3><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4>%gl_altitude_accuracy Altitude Accuracy In meters</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES4><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5>%gl_bearing Bearing in the range 0.0–360.0; Horizontal direction of travel of this device; not related to the device orientation</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES5><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6>%gl_bearing_accuracy Bearing Accuracy In degrees</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES6><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7>%gl_map_url Google Maps URL </_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES7><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES8>%gl_coordinates Latitude and Longitude </_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES8><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES9>%gl_satellites Satellites The number of satellites used to derive the fix. May not always be available.</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES9><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES10>%gl_speed Speed In meters per second</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES10><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES11>%gl_speed_accuracy Speed In meters per second</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES11><_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES12>%gl_time_seconds Time Time in seconds since EPOCH the location was gotten</_array_net.dinglisch.android.tasker.RELEVANT_VARIABLES12></StringArray></net.dinglisch.android.tasker.RELEVANT_VARIABLES>
<net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>[Ljava.lang.String;</net.dinglisch.android.tasker.RELEVANT_VARIABLES-type>
</Vals>
</Bundle>
<Int sr="arg1" val="6"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
<Str sr="arg8" ve="3"/>
<Int sr="arg9" val="1"/>
</Action>
<Action sr="act2" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%gl_speed_MPH</Str>
<Str sr="arg1" ve="3">%gl_speed*2.23693629</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="2"/>
<Int sr="arg6" val="0"/>
</Action>
<Action sr="act3" ve="7">
<code>548</code>
<on>false</on>
<Str sr="arg0" ve="3">%gl_speed_MPH MPH</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act4" ve="7">
<code>135</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="1"/>
<Str sr="arg2" ve="3"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%GPS</lhs>
<op>4</op>
<rhs>on</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act5" ve="7">
<code>549</code>
<Str sr="arg0" ve="3">%gl_speed_MPH</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
</Task>
<Task sr="task93">
<cdate>1598312277011</cdate>
<edate>1635993069830</edate>
<id>93</id>
<nme>MCU-VolUp</nme>
<pri>100</pri>
<rty>2</rty>
<Action sr="act0" ve="7">
<code>123</code>
<se>false</se>
<Str sr="arg0" ve="3">am broadcast -a com.microntek.irkeyDown --ei keyCode 273</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
</Task>
<Task sr="task94">
<cdate>1598312277011</cdate>
<edate>1635993078450</edate>
<id>94</id>
<nme>MCU-VolDown</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>123</code>
<se>false</se>
<Str sr="arg0" ve="3">am broadcast -a com.microntek.irkeyDown --ei keyCode 281</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
</Task>
</TaskerData>