Shiny Posted January 9, 2012 Report Share Posted January 9, 2012 Help! I am writing a script to helps me write other scripts. I require a floating textbox that has a code so I can copy and paste into my dozens of other scripts. But I cannot use // %integer%, the textbox would show the value of the integer instead of plain text. I have tried using // %textvariable% and textvariable = %integer%, but that didn't work either. Please? IS there any possible method? Thanks, Shiny. Quote Link to comment Share on other sites More sharing options...
Cory Posted January 9, 2012 Report Share Posted January 9, 2012 Is the problem that you have that variable name in both the macro you are running and in the macros you are editing? Have you tried changing the name of the variable in the macro you are running? Quote Link to comment Share on other sites More sharing options...
Shiny Posted January 9, 2012 Author Report Share Posted January 9, 2012 Is the problem that you have that variable name in both the macro you are running and in the macros you are editing? Have you tried changing the name of the variable in the macro you are running? I don't think I have the problem you are describing. I want to have this code to show up in a textbox <VARIABLE MODIFY INTEGER Option="\x00" Destination="%integerX%" Value1="%topLeftX%" Value2="%halfX%"/> <VARIABLE MODIFY INTEGER Option="\x00" Destination="%integerY%" Value1="%topLeftY%" Value2="%halfY%"/> Here is the textbox: <UPDATE TEXTBOX Header="The Code" Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 <VARIABLE MODIFY INTEGER Option=\"\\\\x00\" Destination=\"%integerX%\" Value1=\"%topLeftX%\" Value2=\"%halfX%\"/>\r\n\\par <VARIABLE MODIFY INTEGER Option=\"\\\\x00\" Destination=\"%integerY%\" Value1=\"%topLeftY%\" Value2=\"%halfY%\"/>\r\n\\par \\f1 \r\n\\par }\r\n"/> I need %integerX% to not show up as the value of %integerX%, but instead I need it to show up as plain text (show up as what it is: " %integerX% " ). This way, I can copy and paste the code into my other scripts I am working on. And %halfX% to show up as the value of what it is. UPDATE: I think I understand what you are trying to say. I will try it now. The problem is I integer %topLeftX% in most of my code as a screen coordinating reference variable. Even the textbox that I want to display itself uses this variable to position the textbox. I cannot put the text "%topLeftX%" inside the textbox without it showing up the integer value. Update: I resolved it with adding a dash after the variable name like this: %integerX-%. Though I will have to delete the dash after I copy and paste the code into my other scripts. Thanks Cory. I got the idea from your comment. 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.