Swype keyborad - widget

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
sirlaacher
Posts: 2
Joined: 17 Mar 2019 02:57

Swype keyborad - widget

Post by sirlaacher » 02 Aug 2019 22:17

Hi. I want make widget like this.
Screenshot_20190803-001335.png
Screenshot_20190803-001335.png (14.49 KiB) Viewed 1466 times
So basic is like copy paste, next, forward function. Its is possible to make 4x4 visual like that?

User avatar
Desmanto
Posts: 1981
Joined: 21 Jul 2017 17:50

Re: Swype keyborad - widget

Post by Desmanto » 03 Aug 2019 01:18

Of course you can. If you really want the exact same icon as that, you can open Swype keyboard apk using archive opener (MiXplorer can do it), browse to the /res/ folder and check the drawable folder for the images you want. Preferably the higher resolution version, xxxhdpi. Extract them out and use it as the image in the widget.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190829, Pie 9.0, Rooted.

anuraag
Posts: 270
Joined: 24 Jan 2015 02:06

Re: Swype keyborad - widget

Post by anuraag » 03 Aug 2019 01:46

It's possible.
I have created similar widget.
Screenshot_20190803-053604_1.png
Screenshot_20190803-053604_1.png (19.33 KiB) Viewed 1452 times

User avatar
Desmanto
Posts: 1981
Joined: 21 Jul 2017 17:50

Re: Swype keyborad - widget

Post by Desmanto » 03 Aug 2019 01:51

@anuraag : I am curious, do you use the widget to support the keyboard? For copy, cut, paste maybe can be used. But arrow key will have very slow perfomance. And undo/redo works? And how about the shift and ctrl?
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190829, Pie 9.0, Rooted.

anuraag
Posts: 270
Joined: 24 Jan 2015 02:06

Re: Swype keyborad - widget

Post by anuraag » 03 Aug 2019 03:58

@Desmanto
No that widget isn't for supporting keyboard. All buttons uses Automagic keyboard. I activate that widget from navbar.

shift and ctrl button sets true/false to global variable. I use that boolean to send shift/ctrl meta key to sendKey function. You need 1.38 for shift key to work.

Whenever i clicks other buttons, Automagic keyboard is activated and uses sendKey function. I have set 3s sleep within flow before switching back to main keyboard and set flow execution policy to 'Stop the currently executing instance and then execute the newer instance'. Got this idea from one of your flow.

Undo, redo works.

I have added 2 paste buttons. One uses ctrl+v and another types text from clipboard to input field (useful when you can't use long tap paste option).

There is no lag when using dpad buttons.

Post Reply