ikodan Posted August 16, 2018 Report Share Posted August 16, 2018 Hello, On my macro, I declare the variable : <VARIABLE SET INTEGER Option="\x00" Destination="%vit_s%" Value="1"/> <MACRO RUN Use_ID="FALSE" Name="#variables" ID="-1" Wait="TRUE"/> And on the macro #variables, I use a debug box to cheak the value of %vit_s% : <TEXT BOX DISPLAY Title="Debug : " Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1036{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs20 %vit_s%\r\n\\par %test%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="278" Height="200" Monitor="0" OnTop="TRUE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/> It return me the value 0... The variable is on the 2 macros, and allowed to be called... Quote Link to comment Share on other sites More sharing options...
Samrae Posted August 16, 2018 Report Share Posted August 16, 2018 The "Run Macro" command runs another macro in a macro file. If you want to run a macro in a variable use the "Run Macro in Variable" command. The "Run Macro in Variable" command can be a bit tricky. There is a sample macro that demonstrates its use: Date String to DateTime Variable Quote Link to comment Share on other sites More sharing options...
ikodan Posted August 18, 2018 Author Report Share Posted August 18, 2018 Idk, I fixed it yesterday and it work with the function I used. Idk how, I cleaned my code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.