Dim macrosplayer As macroplay
macrosplayer.Initialize
macrosplayer.MacroPlayinWin(Me,Array As String("Run","Notepad",B4XPages.GetNativeParent(Me).Title),"D:/test4.rec",3)
'this will repeat for 3 times the same moves-keys-clicks recorded at test4.rec / clicks and keys will only made if Run, Notepad or your App-B4XPage is on top
'so the MacroPlayinWin limits where will run... the "keystroke, clicks"... this is good if you want to be sure... where typing and clicking ! :)
'if you don't want to limit and you are sure what you are doing, just use:
macrosplayer.MacroPlay(Me,"D:/test4.rec",1)
'This will run one time... the moves, clicks, keypressing... but will not check where all these will be...