What to do for Autohotkey functions that not available on Autokey

I want to migrate my AHK code to Autokey code for Ubuntu (AHK code monitors clipboard and mouse movements, performs advanced string processing and paste it to the specific window).

There are many functions like OnClipboardChange, StringReplace, RegExReplace, GetKeyState, etc. on AutoHotKey which are not available on AutoKey. What to do for these? Do I need to Python code these? If yes, then how?

PS: Basically, I want to migrate from Windows to Ubuntu. I use advanced scripting of AutoHotKey on Windows. But I cannot find any comparable scripting program on Ubuntu Linux.