PC Review


Reply
Thread Tools Rate Thread

macro help needed

 
 
reiro
Guest
Posts: n/a
 
      5th May 2005
I don't know how to write macros and I hope that you will help me write
one or write one for me. What I need is a rather simple macro that I'd
like to use to generate sound elements for my learning software -
Supermemo.

The macro should do something like this:

The text below is a typical text output from supermemo which contains data
about so called items. We can write in it about the locations of files
etc. and the locations of files is what I want to generate automatically.
The numbers on the left are made just to facilitate referring to different
lines. They can't appear in the file.

What should the macro do? I will put my comments after ::
If I don't make a comment, the line stays the same.

1. Begin Element #2294 :: root of iteration number #2294 remains unaltered
2. Source=K:\supermemo\ma1
3. Parent=2292
4. ParentTitle=v
5. Begin ElementInfo #2294
6. Title=New: #2294 (v)
7. Type=Item
8. Status=Memorized
9. FirstGrade=6
10. Ordinal=100.000000
11. Repetitions=1
12. Lapses=0
13. Interval=3
14. LastRepetition=05.05.05
15. AFactor=3.000
16. UFactor=3.000
17. RepetitionHistory=32
18. ForgettingIndex=10
19. End ElementInfo #2294
20. ElementColor=-1
21. AutoPlay=1
22. BackgroundImage=
23. BackgroundFile=
24. BackgroundStyle=Tile
25. Scaled=1
26. CategoryName=v
27. CategoryRoot=2292
28. CategoryHook=2292
29. ReadPointComponent=0
30. ReadPointStart=0
31. ReadPointLength=0
32. ReadPointScrollTop=0
33. Hyperlink=0
34. ComponentNo=2
35. Begin Component #1
36. Type=Sound
37. Cors=(69,98,1155,376)
38. DisplayAt=255
39. PlayAt=47
40. Hyperlink=0
41. SoundName=::I'd like to generate a name which would be the same as
file path in my case K:\supermemo\ma1\snd\iteration of the file name
starting from 0001.mp3:: the line should then be
K:\supermemo\ma1\snd\0001.mp3::
42. SoundFile=::the sound file location should be the same as its name
and should of course be included in the iteration process:: this line
should be like this::K:\supermemo\ma1\snd\0001.mp3::
43. Text=
44. Center=0
45. Color=-1
46. StartPosition=0
47. EndPosition=0
48. Panel=4
49. Continuous=0
50. Transparent=0
51. End Component #1
52. Begin Component #2
53. Type=Sound
54. Cors=(69,572,1155,359)
55. DisplayAt=215
56. PlayAt=208
57. Hyperlink=0
58. SoundName=::the iteration of the previous one
K:\supermemo\ma1\snd\0002.mp3
59. SoundFile=K:\supermemo\ma1\snd\0002.mp3 ::after the iteration
60. Text=
61. Center=0
62. Color=-1
63. StartPosition=0
64. EndPosition=0
65. Panel=4
66. Continuous=0
67. Transparent=0
68. End Component #2
69. Begin RepHist #2294
70. Rep=1 Date=05.05.05 Int=0 Grade=4 Laps=0 ElNo=2294 AFactor=3
UFactor=0 FI=0
71. End RepHist #2294
72. End Element #2294
73.
74. Begin Element #2295 ::iteration of the number here
75. Source=K:\supermemo\ma1
76. Parent=2292
77. ParentTitle=v
78. Begin ElementInfo #2295::equals number from line 74
79. Title=New: #2295 (v)::equals number from line 74 text stays the
same
80. Type=Item
81. Status=Memorized
82. FirstGrade=6
83. Ordinal=100.000000
84. Repetitions=1
85. Lapses=0
86. Interval=2
87. LastRepetition=05.05.05
88. AFactor=3.000
89. UFactor=2.000
90. RepetitionHistory=34
91. ForgettingIndex=10
92. End ElementInfo #2295::equals iterated number from line 74
93. ElementColor=-1
94. AutoPlay=1
95. BackgroundImage=
96. BackgroundFile=
97. BackgroundStyle=Tile
98. Scaled=1
99. CategoryName=v
100. CategoryRoot=2292
101. CategoryHook=2292
102. ReadPointComponent=0
103. ReadPointStart=0
104. ReadPointLength=0
105. ReadPointScrollTop=0
106. Hyperlink=0
107. ComponentNo=2
108. Begin Component #1
109. Type=Sound
110. Cors=(69,98,1155,376)
111. DisplayAt=255
112. PlayAt=47
113. Hyperlink=0
114. SoundName=::itreration of the last sound name, it should be
K:\supermemo\ma1\snd\0003.mp3::
115. SoundFile=::the same as SoundName K:\supermemo\ma1\snd\0003.mp3::
116. Text=
117. Center=0
118. Color=-1
119. StartPosition=0
120. EndPosition=0
121. Panel=4
122. Continuous=0
123. Transparent=0
124. End Component #1
125. Begin Component #2
126. Type=Sound
127. Cors=(69,572,1155,359)
128. DisplayAt=215
129. PlayAt=208
130. Hyperlink=0
131. SoundName=::itreration of the last sound name, it should be
K:\supermemo\ma1\snd\0004.mp3::
132. SoundFile=::the same as SoundName K:\supermemo\ma1\snd\0004.mp3::
133. Text=
134. Center=0
135. Color=-1
136. StartPosition=0
137. EndPosition=0
138. Panel=4
139. Continuous=0
140. Transparent=0
141. End Component #2
142. Begin RepHist #2295::equals number from line 74
143. Rep=1 Date=05.05.05 Int=0 Grade=4 Laps=0 ElNo=2295 AFactor=3
UFactor=0 FI=0
144. End RepHist #2295::equals number from line 74
145. End Element #2295::equals number from line 74

I hope that my description is understandable. I'd be very grateful if
someone helped me.

















































































































































 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PLEASE HELP! MACRO NEEDED K Microsoft Excel Programming 1 20th Jun 2009 06:53 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort =?Utf-8?B?R2F2aW4=?= Microsoft Excel Worksheet Functions 0 17th May 2007 02:20 PM
Macro needed to set macro security in Excel to minimum =?Utf-8?B?Q2FybA==?= Microsoft Excel Programming 3 18th Mar 2006 04:36 PM
Macro Help needed =?Utf-8?B?dGFtYXRvNDM=?= Microsoft Excel Misc 1 19th Aug 2005 02:48 AM
Macro needed to Paste Values and prevent Macro operation thunderfoot Microsoft Excel Misc 1 11th Jun 2005 01:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:58 AM.