Simulate click on "AddFile"

Hello, I wonder if anyone can help me with this,
I want to know how to simulate the click of the button “addFile” I’ve dealt with “onclick” in all classes and to “trigger” but I can not make you open the window to add files.

I would greatly appreciate help me.

Method addFile will not work in all the modes without an original mouse click. It is browser feature (browser security system). It needs click sometime…