 |
Kaneda Newbie
Joined: 27 Jun 2011 Posts: 2
|
Posted: Mon Jun 27, 2011 6:08 pm
#win problem |
I have a problem with the script
memorize
#Clr Memorize
#Win Memorize MX":" @memtime MN":" @memnow MT":"@memax
#Win Memorize " "
#LOOPDB @spell {#win Memorize #SHOW %key "=" %val}
because it don't accept the double # on the same line in this case the #show
#LOOPDB @spell {#SHOW %key "=" %val}
if i put it it's perfect but it show on the main windows i want it to show on the Memorize window
help me pls :) |
|
|
|
 |
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Mon Jun 27, 2011 6:11 pm |
try this
#loopdb @spell {#execwin Memorize {#print %key "=" %val}} |
|
|
|
 |
Kaneda Newbie
Joined: 27 Jun 2011 Posts: 2
|
Posted: Mon Jun 27, 2011 6:13 pm |
Cool Thx you are my savior :)
thx really for the fast answer :) |
|
|
|
 |
hadar Apprentice
Joined: 30 Aug 2009 Posts: 198 Location: my apt, in california
|
Posted: Mon Jun 27, 2011 6:16 pm |
no problem you just happen to post when i was going through the website
|
|
|
|
 |
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Mon Jun 27, 2011 7:01 pm |
You're both making this more complicated than it needs to be... you don't need to execute #show or #print in the other window, since the #window command already exists to display text in another window. This code should do what you need:
| Code: |
| #LOOPDB @spell {#WIN Memorize %key"="%val} |
EDIT: On another note, you shouldn't get into the habit of using implicit concatenation like this, since it doesn't always work. It's better to use explicit concatenation, with the %concat function. Would look something like this:
| Code: |
| #LOOPDB @spell {#WIN Memorize %concat(%key,"=",%val)} |
|
|
|
|
 |
|
|
|