I plan to use Python with https://github.com/asweigart/pyautogui. Maybe BAnano can be used to write a web front end as developing GUI program with Python is not easy.
I find AWTRobot partly works but combo does not work, like ctrl+h. I use the test code below. Run the B4J app and switch to Word. The dialog does not show.
B4X:
Do While True
Log("combo")
Sleep(1000)
Dim awt As AWTRobot
awt.RobotSpecialKeyCombo("ctrl_h")
Loop
I have thought about this. But it is a bit complicated and users cannot see the replacing process directly. And ultimately, I want to create a universal text replacer which works for word, excel, ppt, photoshop, indesign, etc.
If my recollection serves me, ctrl_h is not one of the listed combos in the comments for RobotSpecialKeyCombo. This means you will have to separately press and release the ctrl and h keys.
Do While True
Sleep(1000)
awt.RobotSpecialKeyPress("control")
awt.RobotKeyPress("h")
awt.RobotSpecialKeyRelease("control")
awt.RobotKeyRelease("h")
Log("combo")
Loop