How to send macro to a folder
What do you mean by adding a macro to register some actions on a device? Do you actually mean adding a "custom data" field?
What folder are you talking about? A directory folder in the file-system of your devices, or a device-group folder in your device group tree/hierarchy?
I mean create a script which will remember mouse actions.
But Anyway I finnaly found the solution, I created the macro and then I copied and pasted the script of this macro to the post-install script of my package created through MC Studio and that's working fine!
My problem is now solved!
Create a macro through remote control session which will remember what actions should be done after the package installation.
This macro is saved to path C:\Users\farid\AppData\Local\SOTI\MobiControl\Macros
I made a right click then modify the macro to get the script, I copied the script and pasted directly to the post-install script in my project on MC Studio.
I put a delay of approx 1 minute in the first line of the post install script (sleep 60) to be sure that the macro will be execute after the installation and not during it.
Below is my script and enclosed is the way I did it.
MouseEvent 0x0 0xbfff 0xf4e7
MouseEvent 0x1 0xbfff 0xf4e7
MouseEvent 0x0 0x7ddd 0x98bf
MouseEvent 0x1 0x7ddd 0x98bf
MouseEvent 0x0 0x305b 0xf40d
MouseEvent 0x1 0x305b 0xf40d
MouseEvent 0x0 0xb60b 0x94e8
MouseEvent 0x1 0xb60b 0x94e8
MouseEvent 0x0 0x7e93 0x47ae
MouseEvent 0x1 0x7e93 0x47ae
This is a little bit....unconventional...to say the least. Mind I ask what you were using the macro for? Is it for setting configurations within the app after it is installed and launched? If so, are those particular configurations not administerable via an external configuration file or Managed Configuration?