View Single Post
  #9336 (permalink)  
Old 01-18-2010, 11:16 AM
ai6908's Avatar
ai6908
VIP Member
Offline
Location: Land of OZ
 
Join Date: Jun 2009
Posts: 844
Reputation: 3400
ai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIPai6908 is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via Yahoo to ai6908
Re: WM 6.5 Kitchen QVGA and VGA Developer Edition

Quote:
Originally Posted by swampy395 View Post
Hello guys

Can anybody help me with some mortscript please

I'm trying to read, this ( Icon==//google.JPG ) from a *.txt file, and write it to reg
If i use this

data = ReadFile("\Windows\Opera9\opera6.txt")

#Get Icon
pos = Find(links[i],"Icon")
If (pos)
pos = pos + 6
len = Find(links[i], "CREATED",pos) - 19
Icon[i] = SubStr(links[i],pos,len)
EndIf

RegWriteString("HKLM","Software\Microsoft\CHome\Op era\Page"&ii,"Icon","\Windows\"&Icon[i])
I get this, \Windows\//google.JPG

But i need this, \Windows\google.JPG

I'v tryed and tryed other combination's give me an error "comma expected"
i have read the mortscript-manual but script's not realy my strong piont
someone help me please
Thanks in advance
best regards
swampy395
So your icon is pulling \\Google.jpg.

Can you truncate \\ from icon before you write reg?
Reply With Quote