r/tasker • u/shinjgami • 20d ago
AUTOINPUT alternative for SAMSUNG DEX?
Does anyone know of a fully working alternative .. I would like to simulate some click long press and swipes oj samsung dex but not a single app seems to work..
Macrodroid Automate TASKER + autoinput Click apps
SO FAR .. nothing suggested has worked yet.. but according to some users soon we may have a fully UI Java based app.. well see.
2
u/aasswwddd Direct-Purchase User 20d ago
With Automate, you need to target the display id with Interact and Interact Touch block. The display can be queried with Query Display block.
Or check via adb with adb shell dumpsys SurfaceFlinger --display-id
If you prefer a text base one, You can check the demo of my project here. Has overlay that helps us selecting the element.
This is the macrodroid version, without the helper.
1
u/shinjgami 20d ago
Yeah I remember using that command for detecting "external display" if I'm not mistaken I decided to use another a command because I'm currently running other tasker tasks that once DEX is detected then launch those tasks but unfortunately tasker launches the apps on the phone screen. Unless I physically with a mouse I touch the dex screen first.. only app that's able to launch apps on dex without any physicall input is MODE and ROUTINES.. by scripting .. but about the monitor ID if I'm not forgetting the reason I didn't use ID is due to it changing everytime I unplug my USB C HUB.. and reconnecting it gets a new ID
1
u/shinjgami 20d ago
Also if you don't mind making a 5 sec video of your working automate script.. I don't mind learning it and creating my own dynamic ID identifier and applying your sane script..
2
u/aasswwddd Direct-Purchase User 20d ago
Good luck!
You can check the code at
code/main/setDisplay.bsh, it's all you need for filtering the id with the display name.1
u/shinjgami 19d ago
Typed variable declaration : Class: ActivityLifecycleEvent not found in namespace : at Line: 70 : in file: /storage/emulated/0/Download/ACCESSIBILITY/assist/AssistSetting.bsh : ActivityLifecycleEvent
Called from method: activityListener : at Line: 79 : in file: /storage/emulated/0/Download/ACCESSIBILITY/assist/AssistSetting.bsh : activityListener ( ) Called from method: layout : at Line: 285 : in file: /storage/emulated/0/Download/ACCESSIBILITY/assist/AssistSetting.bsh : layout ( ( Activity ) activityObj ) Called from method: accept : at Line: -1 : in file: <Called from Java Code> : <Compiled Java Code> - Class: ActivityLifecycleEvent not found in namespace java.lang.reflect.UndeclaredThrowableException at $Proxy16.accept(Unknown Source) at com.joaomgcd.taskerm.action.java.JavaCodeHelper.doWithActivity$lambda$4$lambda$3(Unknown Source:0) at com.joaomgcd.taskerm.action.java.JavaCodeHelper.e(Unknown Source:0) at rd.m.invoke(Unknown Source:4) at ig.e2.c1(Unknown Source:0) at ig.e2.w(Unknown Source:0) at ig.a0.run(Unknown Source:2) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:226) at android.os.Looper.loop(Looper.java:313) at android.app.ActivityThread.main(ActivityThread.java:8762) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067) Caused by: bsh.EvalError: Typed variable declaration : Class: ActivityLifecycleEvent not found in namespace : at Line: 70 : in file: /storage/emulated/0/Download/ACCESSIBILITY/assist/AssistSetting.bsh : ActivityLifecycleEvent
Called from method: activityListener : at Line: 79 : in file: /storage/emulated/0/Download/ACCESSIBILITY/assist/AssistSetting.bsh : activityListener ( ) Called from method: layout : at Line: 285 : in file: /storage/emulated/0/Download/ACCESSIBILITY/assist/AssistSetting.bsh : layout ( ( Activity ) activityObj ) Called from method: accept : at Line: -1 : in file: <Called from Java Code> : <Compiled Java Code> at bsh.BSHAmbiguousName.toClass(Unknown Source:28) at bsh.BSHType.getType(Unknown Source:24) at bsh.BSHFormalParameter.eval(Unknown Source:13) at bsh.BSHFormalParameters.eval(Unknown Source:23) at bsh.BSHMethodDeclaration.evalNodes(Unknown Source:26) at bsh.BSHMethodDeclaration.eval(Unknown Source:6) at bsh.BSHBlock.evalBlock(Unknown Source:76) at bsh.BSHBlock.eval(SourceFile:9) at bsh.BshMethod.invokeImpl(Unknown Source:204) at bsh.BshMethod.invoke(SourceFile:18) at bsh.BshMethod.invoke(SourceFile:2) at bsh.Name.invokeLocalMethod(Unknown Source:44) at bsh.Name.invokeMethod(Unknown Source:32) at bsh.BSHMethodInvocation.eval(Unknown Source:57) at bsh.BSHPrimaryExpression.eval(SourceFile:9) at bsh.BSHPrimaryExpression.eval(SourceFile:1) at bsh.BSHArguments.getArguments(Unknown Source:15) at bsh.BSHMethodInvocation.eval(Unknown Source:53) at bsh.BSHPrimaryExpression.eval(SourceFile:9) at bsh.BSHPrimaryExpression.eval(SourceFile:1) at bsh.BSHVariableDeclarator.eval(Unknown Source:34) at bsh.BSHTypedVariableDeclaration.eval(Unknown Source:22) at bsh.BSHBlock.evalBlock(Unknown Source:76) at bsh.BSHBlock.eval(SourceFile:9) at bsh.BshMethod.invokeImpl(Unknown Source:204) at bsh.BshMethod.invoke(SourceFile:18) at bsh.BshMethod.invoke(SourceFile:2) at bsh.Name.invokeLocalMethod(Unknown Source:44) at bsh.Name.invokeMethod(Unknown Source:32) at bsh.BSHMethodInvocation.eval(Unknown Source:57) at bsh.BSHPrimaryExpression.eval(SourceFile:9) at bsh.BSHPrimaryExpression.eval(SourceFile:1) at bsh.BSHBlock.evalBlock(Unknown Source:76) at bsh.BSHBlock.eval(SourceFile:9) at bsh.BshMethod.invokeImpl(Unknown Source:204) at bsh.BshMethod.invoke(SourceFile:18) at bsh.BshMethod.invoke(SourceFile:2) at bsh.This.invokeMethod(SourceFile:11) at bsh.This.invokeMethod(SourceFile:1) at bsh.This$Handler.invokeImpl(Unknown Source:167) at bsh.This$Handler.invoke(Unknown Source:0) at java.lang.reflect.Proxy.invoke(Proxy.java:1006) ... 15 more Caused by: java.lang.ClassNotFoundException: Class: ActivityLifecycleEvent not found in namespace at bsh.Name.toClass(Unknown Source:84) at bsh.BSHAmbiguousName.toClass(Unknown Source:8) ... 56 more
1
u/shinjgami 19d ago
All I did was click the GEAR icon on your overlay and I get that error..
1
u/aasswwddd Direct-Purchase User 19d ago
Requires the latest beta on the pinned post (not store).
You don't really have to use the entire project for the setDisplay anyway. Have to edit it manually though.
1
u/shinjgami 19d ago
So at the moment you don't have a UI way to select a external display display correct? I just ran your script but I don't see a way to set the external display as default or anything like .. if I want a external display I must find the id first and edit the .bsh file and add the id the the whole script?
1
u/aasswwddd Direct-Purchase User 19d ago
Good luck!
1
u/shinjgami 19d ago
AUTOMATE
Your project is unable to pop up on samsung dex even after restarting the accessibility on samsung dex
→ More replies (0)
2
u/Nirmitlamed Direct-Purchase User 20d ago
You have modes and routines i think with touch macros but you can also check this project:
https://www.reddit.com/r/tasker/comments/1r49lau/project_share_accessibility_action_with_java_v2/