Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

I am having a problem with the search and replace Plugin

Discuss anything to do with plugins

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
FormatC:

I am having a problem with the search and replace Plugin

Post by FormatC: »

I'm having a problem using SANDR.DLL Do I have a LCD Smartie coding problem or maybe a problem with the DLL I don't know as sandr.dll works fine every where else in my coding I want to replace the -1 with a stop block (Like on a VCR) and the 1 with a Record Symbol and the 0 with a play arrow I already made custom characters in LCD Smartie for my VFD (A Noritake 4 X 20 CU20045CPB-W2J HDD44780 Compatible Display) I am using the Search and replace plugin for LCD smartie. I'm very familiar with custom characters as I use the program called "CCE or Custom Character Editor" and I'm also familiar with Search and Replace as I use it in some on my other screens (Winamp, Zoom Player) but for the life of me I can't get it to work with this plugin. It says Custom Character number invalid on the VFD and on the virtual display but I know the character is good as I used the same character in another screen and when I type it directly into the LCD Smartie box I can see the character displayed on the VFD. So what can my problem be ? Thanks

Code: Select all

Here are the codes for the custom characters I used 

Rec $CustomChar(1,0,14,17,17,17,17,14,0)
Play $CustomChar(8,0,8,12,14,12,8,0,0)
Stop $CustomChar(8,0,31,31,31,31,31,0,0)
Here is the documention to the plugin i'm trying to use http://mizook.com/lcd/ and here is my code I typed into smartie

Code: Select all

$dll(sandr.dll,1,$dll(MizookLCD.dll,8,,),C:\Program Files\smartie\plugins\omit3.ini)$Chr(263)
Here is my Search and Replace Code

Code: Select all

[Search1]
1=0
2=1
3=-1 
4=
5=
6=
7=
8=
9=
10=
11=
12=
13=
14=
15=
16=
17=
18=
19=
20=


[Replace1]
1=$CustomChar(8,0,8,12,14,12,8,0,0)
2=$CustomChar(1,0,14,17,17,17,17,14,0)
3=$CustomChar(8,0,31,31,31,31,31,0,0)
4=
5=
6=
7=
8=
9=
10=
11=
12=
13=
14=
15=
16=
17=
18=
19=
20= 


[Search2]
1=
2=
3=
4=
5=
6=
7=
8=
9=
10=
11=
12=
13=
14=
15=
16=
17=
18=
19=
20=


[Replace2]
1=
2=
3=
4=
5=
6=
7=
8=
9=
10=
11=
12=
13=
14=
15=
16=
17=
18=
19=
20= 

limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Something is going wrong when calling a custom character using a 0 or a negative number as variable :smt090


Workaround
Make your line:

Code: Select all

$dll(sandr.dll,1,$dll(MizookLCD.dll,8,,),C:\Program Files\smartie\plugins\omit3.ini)
and your ini file:

Code: Select all

[Search1] 
1=-1 
2=0
3=1 
4=st_play
5=st_pause
6=st_stop
7=
8=
9=
10= 
11= 
12= 
13= 
14= 
15= 
16= 
17= 
18= 
19= 
20= 


[Replace1] 
1=st_play
2=st_pause
3=st_stop
4=$Chr(263)$CustomChar(8,0,8,12,14,12,8,0,0) 
5=$Chr(263)$CustomChar(8,0,14,17,17,17,17,14,0) 
6=$Chr(263)$CustomChar(8,0,31,31,31,31,31,0,0) 
7=
8= 
9= 
10= 
11= 
12= 
13= 
14= 
15= 
16= 
17= 
18= 
19= 
20= 


[Search2] 
1= 
2= 
3= 
4= 
5= 
6= 
7= 
8= 
9= 
10= 
11= 
12= 
13= 
14= 
15= 
16= 
17= 
18= 
19= 
20= 


[Replace2] 
1= 
2= 
3= 
4= 
5= 
6= 
7= 
8= 
9= 
10= 
11= 
12= 
13= 
14= 
15= 
16= 
17= 
18= 
19= 
20= 
Hopefully you will get your custom characters...
Notice: Don't change the line sequence on ini

FormatC:

Post by FormatC: »

Thank you Limbo That code worked just had to rearrange the ini file a little bit (Was Displaying Play arrow where it should have said stop) and now every thing works the way I would like it to Thanks again.

Post Reply