PHbot Conditions

Does anyone know how to make the conditions run a pythons script ?

Pick python in the conditions and type the name of the function you want to run, the function has to be inside any loaded plugin

for example can create a python script with keypresser macro? then add it to the conditions ?

The conditions will execute any python function, what that function does is up to you and your python skills