terrypin Posted December 8, 2008 Report Share Posted December 8, 2008 This stems from the thread 'Assigning New Variables on Each Loop'. Steve's post there prompted me to try a command I haven't used before: Run Macro in Variable. But I consistently get behaviour I don't understand, namely the insertion of an extra '>' character at the end of my variable when it gets run. Here's a simple example. Activate Window: "Notepad" Variable Set String %T1% "<TEXTTYPE:Example of text>" Run Macro in Variable %T1% Macro Return <ACTIVATE2:Notepad><TVAR2:01:01:<TEXTTYPE:Example of text>><RUNMACVAR:1><MRETURN> That should type into Notepad the string Example of text But I get Example of text> If I remove the right hand > from the variable then the result is OK. Adding delays, changing the variable etc, none made any difference. Can anyone reproduce this please? If not, I have to assume it's some sort of conflict unique to my setup. -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
terrypin Posted December 8, 2008 Author Report Share Posted December 8, 2008 OK, sorted thanks. It seems that I need to add a special code, '\s', at the end of my text. So that line becomes Variable Set String %T1% "<TEXTTYPE:Example of text\s>" -- Terry, East Grinstead, UK 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.