Hi guys,
I use a button in my indicator to save a screenshot. This screenshot can only be saved to the MT4 data folder. Now I would like to copy it from there to my desktop by using CopyFile from kernel32.dll.
I found the description about CopyFile here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa363851(v=vs.85).aspx
Now my problem is that I don't know which data type the parameters have to be. I guess the first and second parameter are strings and obviously the third is a bool.
I tried to code a small script for testing purposes but nothing works... I also receive an error that the function CopyFile can't be found in kernel32.dll although it's mentioned on the Microsoft page that it is kernel32.dll.
Can someone help me with that?
The proper function spelling is CopyFileW
Just google for "Mt4 kernell32 File" and you find a lot about that!
Awesome! It works! Thanks guys!

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys,
I use a button in my indicator to save a screenshot. This screenshot can only be saved to the MT4 data folder. Now I would like to copy it from there to my desktop by using CopyFile from kernel32.dll.
I found the description about CopyFile here: https://msdn.microsoft.com/en-us/library/windows/desktop/aa363851(v=vs.85).aspx
Now my problem is that I don't know which data type the parameters have to be. I guess the first and second parameter are strings and obviously the third is a bool.
I tried to code a small script for testing purposes but nothing works... I also receive an error that the function CopyFile can't be found in kernel32.dll although it's mentioned on the Microsoft page that it is kernel32.dll.
Can someone help me with that?