My last topic was closed (viewtopic.php?f=205&t=7592)
So I come back here.
I managed to do what I wanted using an .mcr script. It was only a macro which is sending data in loop with a delay between different frames.
But now I want to make something with button on .ipf like this :

I manually put 2 data, for example data1 and data2, and If I press the button "SendParameters" the script will send different frame with data1 and data2
Imagine i've put 300 for data1 and 50 for data2 If I press the button the script will do :
Code: Select all
Send 1 02A43FF0h 8 11h 34h 00h 00h 00h 00h 00h A0h
Wait 300
Send 1 02A43FF0h 8 21h 10h 00h 00h 00h 00h 00h A2h
Wait 300
Send 1 02A43FF0h 8 11h 02h 00h 00h 00h 00h 01h 2Ch // (12C for 300 (data1 in hex))
Send 1 02A43FF0h 8 11h 02h 00h 00h 00h 00h 00h 32h // (32 for 50 (data2 in hex))
Code: Select all
If buttonSendParameters.Value is True
Send 1 02A43FF0h 8 11h 34h 00h 00h 00h 00h 00h A0h
Wait 300
Send 1 02A43FF0h 8 21h 10h 00h 00h 00h 00h 00h A2h
Wait 300
Send 1 02A43FF0h 8 11h 02h 00h 00h 00h 00h 01h 2Ch // (12C for 300 (data1 in hex))
Send 1 02A43FF0h 8 11h 02h 00h 00h 00h 00h 00h 32h // (32 for 50 (data2 in hex))
EndIf
Is something like this is can be done on mcr file or VBS macro ?
Best Regards