....what i think now after i tested again all this stuff(when a window loose focus)
the conclusion is one:
it is good to add these lines before any script code of program so you will obtain excelent results of "Strokesplus" :
local iHandle = acGetOwnerWindowByPoint(gsx, gsy)
acActivateWindow(iHandle,0,0)