Topic: Plugin Creator Association Helper  (Read 10265 times)

Plugin Creator Association Helper
« on: August 24, 2011, 05:51:57 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
ila_rendered
A plugin for basic users helping to tutorial and ease making basic associations.


Put plugin to \Utils\ folder, Click 'Gooo'  to get the result
 :cheers:

Latest Version available at Yomi server
http://theoven.org/index.php?topic=175.0

More details on next posts....

Related Topic:
Plugin Creator
http://theoven.org/index.php?topic=178.0
« Last Edit: October 23, 2015, 10:09:02 AM by Lancelot »

Re: s
« Reply #1 on: August 24, 2011, 05:52:08 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Single Command Association:


Above Plugin having SumatraPDF example as default would give you following:

Quote
RegHiveLoad,Tmp_Software,%RegSoftware%
RegWrite,HKLM,0x1,Tmp_Software\Classes\.pdf,,SumatraPDF
RegWrite,HKLM,0x1,Tmp_Software\Classes\SumatraPDF\shell,,open
RegWrite,HKLM,0x2,Tmp_Software\Classes\SumatraPDF\DefaultIcon,,#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q
RegWrite,HKLM,0x2,Tmp_Software\Classes\SumatraPDF\shell\open\command,,"#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q #$q#$p1#$q"
RegHiveUnLoad,Tmp_Software

***
here first line
Quote
RegWrite,HKLM,0x1,Tmp_Software\Classes\.pdf,,SumatraPDF
gets .pdf associated with "SumatraPDF Command" (\Classes\SumatraPDF)
so adding more lines for extension
Quote
RegWrite,HKLM,0x1,Tmp_Software\Classes\.pdf,,SumatraPDF
RegWrite,HKLM,0x1,Tmp_Software\Classes\.tdf,,SumatraPDF
RegWrite,HKLM,0x1,Tmp_Software\Classes\.xdf,,SumatraPDF
RegWrite,HKLM,0x1,Tmp_Software\Classes\.etc,,SumatraPDF

would lead "SumatraPDF Command" associate with these extensions.

***
Default icon above is

Quote
RegWrite,HKLM,0x2,Tmp_Software\Classes\SumatraPDF\DefaultIcon,,#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q

if you decide to put icon index number, inside box write
Quote
"%PE_Programs%\%ProgramFolder%\%ProgramEXE%",1

Result will be
Quote
RegWrite,HKLM,0x2,Tmp_Software\Classes\SumatraPDF\DefaultIcon,,"#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q#$c1"

***
"Add Extension to OpenWidth List" checkbox
would give you SumatraPDF at "OpenWidth" when you right click on a .pdf file,
I currently do not know how to add to main "OpenWidth" menu, if you figure out let me know.

***
Above Example demonstrates how to make "Single Commanded" "Multiple Associations", a good begining for new users.  :thumbsup: Would help to get your basic associations  :great:


Lots of words to say about associations, you will learn in time when you practice  :thumbsup:


On next post there is a good "Multiple Commanded" "Multiple Association" code sample. Such association also popular with many applications like xnview, 7zip etc. where many associations made with "Multiple Commands".
« Last Edit: October 23, 2015, 10:09:24 AM by Lancelot »

Re: Script Creator Association Helper
« Reply #2 on: August 24, 2011, 06:14:06 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Multiple Command Association:

Mostly, used by applications to register different icons. Ex: 7zip, Xnview etc.

A General way is (Giving Example with 7zip):


Code: [Select]
[Process]
.....
Set,%s%,%ScriptFile%
Set,%FVicon%,%PE_Programs%\%ProgramFolder%\7z.dll
Set,%CA%,%PE_Programs%\%ProgramFolder%\%ProgramEXE%
Set,%CP%,"#$q#$p1#$q"
//--
//Run,%s%,A,Extension,RegKeyName,Description,IconFile,IconIndex,CommandApp,CommandAppParameter,CommandName
RegHiveLoad,Tmp_Software,%RegSoftware%
Run,%s%,A,.001,7-Zip.001,"001 Archive",%FVicon%,9,%CA%,%CP%,open
Run,%s%,A,.7z,7-Zip.7z,"7z Archive",%FVicon%,0,%CA%,%CP%,open
Run,%s%,A,.arj,7-Zip.arj,"arj Archive",%FVicon%,4,%CA%,%CP%,open
Run,%s%,A,.bz2,7-Zip.bz2,"bz2 Archive",%FVicon%,2,%CA%,%CP%,open
Run,%s%,A,.bzip2,7-Zip.bzip2,"bzip2 Archive",%FVicon%,2,%CA%,%CP%,open
Run,%s%,A,.cpio,7-Zip.cpio,"cpio Archive",%FVicon%,12,%CA%,%CP%,open
Run,%s%,A,.deb,7-Zip.deb,"deb Archive",%FVicon%,11,%CA%,%CP%,open
Run,%s%,A,.dmg,7-Zip.dmg,"dmg Archive",%FVicon%,17,%CA%,%CP%,open
Run,%s%,A,.fat,7-Zip.fat,"fat Archive",%FVicon%,21,%CA%,%CP%,open
Run,%s%,A,.gz,7-Zip.gz,"gz Archive",%FVicon%,14,%CA%,%CP%,open
Run,%s%,A,.gzip,7-Zip.gzip,"gzip Archive",%FVicon%,14,%CA%,%CP%,open
RegHiveUnLoad,Tmp_Software

[A]
RegWrite,HKLM,0x1,Tmp_Software\Classes\#1,,#2
RegWrite,HKLM,0x1,Tmp_Software\Classes\#2,,"#3"
RegWrite,HKLM,0x1,Tmp_Software\Classes\#2\shell,,#8
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\DefaultIcon,,"#$q#4#$q,#5"
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\shell\#8\command,,"#$q#6#$q #7"

Which is fully enough for 7zip, and other similar utilities  :thumbsup:




For special cases, if required, here are additional sets:

Code: [Select]
[ANF]
//No Default
RegWrite,HKLM,0x1,Tmp_Software\Classes\#1,,#2
RegWrite,HKLM,0x1,Tmp_Software\Classes\#2,,"#3"
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\DefaultIcon,,"#$q#4#$q"
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\shell\#8\command,,"#$q#6#$q #7"

[ANII]
//No icon index
RegWrite,HKLM,0x1,Tmp_Software\Classes\#1,,#2
RegWrite,HKLM,0x1,Tmp_Software\Classes\#2,,"#3"
RegWrite,HKLM,0x1,Tmp_Software\Classes\#2\shell,,#8
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\DefaultIcon,,"#$q#4#$q"
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\shell\#8\command,,"#$q#6#$q #7"

[ANI]
//No icon
RegWrite,HKLM,0x1,Tmp_Software\Classes\#1,,#2
RegWrite,HKLM,0x1,Tmp_Software\Classes\#2,,"#3"
RegWrite,HKLM,0x1,Tmp_Software\Classes\#2\shell,,#8
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\shell\#8\command,,"#$q#6#$q #7"

[AND]
//No Description
RegWrite,HKLM,0x1,Tmp_Software\Classes\#1,,#2
RegWrite,HKLM,0x1,Tmp_Software\Classes\#2\shell,,#8
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\DefaultIcon,,"#$q#4#$q,#5"
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\shell\#8\command,,"#$q#6#$q #7"

[ANDNINF]
//No Description No Icon No Default
RegWrite,HKLM,0x1,Tmp_Software\Classes\#1,,#2
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\shell\#8\command,,"#$q#6#$q #7"

[ANDNII]
//No Description No Icon Index
RegWrite,HKLM,0x1,Tmp_Software\Classes\#1,,#2
RegWrite,HKLM,0x1,Tmp_Software\Classes\#2\shell,,#8
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\DefaultIcon,,"#$q#4#$q"
RegWrite,HKLM,0x2,Tmp_Software\Classes\#2\shell\#8\command,,"#$q#6#$q #7"
etc.....




All things about "Multiple Command Association" varies heavly, above is a "General Method" that would work for all cases and practice easly. (Adding all possibilities makes things seem a bit complex  :whistling:)

As long as you know what you do, you can easly change above syntax by cutting down, or up, or use other ways of script writing .....

 :cheers:
« Last Edit: August 25, 2011, 12:44:30 AM by Lancelot »

Re: Script Creator Association Helper
« Reply #3 on: August 24, 2011, 09:42:39 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
 :whistling: minor but vital fix from 0x1 to 0x2 ... :turtle:

v2 of Plugin at first post, info on post2 fixed.

 :cheers:

edit:
v3 of Plugin at first post  :thumbsup:
« Last Edit: October 23, 2015, 10:10:16 AM by Lancelot »

Re: Script Creator Association Helper
« Reply #4 on: August 27, 2011, 11:56:33 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Lancelot,

No luck with associations, yet. I may not be filling in the information correctly.  Can you tell me what should I fill in for these three fields?

Associate RegKey
Open RegKey Name
open command

I've attempted simple associations several times, but no success.

sLiM,

After you get familiar, association is no big deal, it seems you'd never made custom associations on your hostos pc registry before. ;).

To get Default values of your application with association .blabla, with regedit.exe just check
HKEY_CLASSES_ROOT\.blabla
Read {Default} value there (let's say zilazila) and check
HKEY_CLASSES_ROOT\zilazila


Associate RegKey--> any value reminding application would be enough ex: for SumatraPDF ==> SumatraPDF :>
Open RegKey Name -->  default value (open) would do the trick, Leave it as it is.
open command --> script have top most common value, %98 would work.


%99 cases,
Only changing "Associate Extension" + "Associate RegKey" and cleaning (Optional) boxes would make your association work.
After Goooo, Copy values under [Associate] to your custom script (under //Registry if "Script Creator" used) should mostly do things work...

If you still fail, send your script under construction (mediafire + 7z)  and Script_Creator_y50_Associate.script you used (changed values before Goo) for the task ;).

Re: Script Creator Association Helper
« Reply #5 on: August 28, 2011, 01:51:28 PM »

sLiM

  • Diner
  • Jr. Chef
  • *
  • Date Registered: Jun 2011
  • Posts: 41
Lancelot,

Quote
After you get familiar, association is no big deal, it seems you'd never made custom associations on your hostos pc registry before. ;).
With programs like openwithadd.exe, etc..  I usually find a tool or .reg tweak. 

Quote
Associate RegKey--> any value reminding application would be enough ex: for SumatraPDF ==> SumatraPDF :>
Open RegKey Name -->  default value (open) would do the trick, Leave it as it is.
open command --> script have top most common value, %98 would work.
Done correctly here.

Quote
%99 cases, Copy values under [Associate] to your custom script (under //Registry if "Script Creator" used) should mostly do things work...
Done correctly here. I'm adding all the lines below [associate] and also adding [associate] directly above them.   



I'll check out your association examples and try manually adding experiments to a test script. It's probably something small that I'm missing.

Quote
If you still fail, send your script under construction (mediafire + 7z)  and Script_Creator_y50_Associate.script you used (changed values before Goo) for the task ;).
Thanks.



:book:


Re: Script Creator Association Helper
« Reply #6 on: August 30, 2011, 02:01:01 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Script Creator Association Helper updated,

Following sLiM's feedback, better default options, Tip button and warning at info.

 :thumbsup:

Re: Script Creator Association Helper
« Reply #7 on: August 30, 2011, 02:30:26 PM »

sLiM

  • Diner
  • Jr. Chef
  • *
  • Date Registered: Jun 2011
  • Posts: 41
Lancelot,

Sounds great.  I've be working with associations.  Hope to have some results tonight.
 
Edit:   I've followed your guidelines but still no luck with associations. I have disabled any other custom scripts that I know to use associations.   The script I've been working on is mpc.hc_SC.7z, and also the association script I used, are both located here:  http://www.mediafire.com/?59sdt2043bb3d

Thanks,
:book:
« Last Edit: August 31, 2011, 02:12:55 AM by sLiM »

Re: Script Creator Association Helper
« Reply #8 on: August 31, 2011, 02:48:19 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Script Creator Association Helper updated,

+auto remove space from RegKey

note: space on RegKey do not cause trouble on my tests so far, but I notice RegKeys do not have space on my registry with associations, hence i feel better to autoremove with resulting template.




sLiM

your mpc (Media Player Classic) .mp3 association works here, mpc not.....
mpc itself seems to me the trouble, when trying to play .mp3 .....
does mpc can play .mp3 there ?


Also, try VLC portable script at Yomi, which would make .mp3 files play easly, hence association you do with VLC would also work.

Re: Script Creator Association Helper
« Reply #9 on: August 31, 2011, 05:03:01 PM »

sLiM

  • Diner
  • Jr. Chef
  • *
  • Date Registered: Jun 2011
  • Posts: 41
Hi Lancelot,

Thanks for looking at the script.  I'll update.

Quote
your mpc (Media Player Classic) .mp3 association works here, mpc not.....
mpc itself seems to me the trouble, when trying to play .mp3 .....
does mpc can play .mp3 there ?
 
mpc always works but I have to use drvimpe to add Realtek (AC97) sound drivers first.  If I forget the drivers mpc errors with a message about pins cannot render the graph -  if I remember correctly.  Other than that, I have no problems playing mp3 but I do have to manually add them to the playlist by using the mpc file menu.

I think if I use the VLC script to associate mp3's, it will work.  I have other scripts (disabled right now) that associate files correctly.
 
Thanks for  your help.

:book:
« Last Edit: August 31, 2011, 05:14:02 PM by sLiM »

Re: Script Creator Association Helper
« Reply #10 on: August 31, 2011, 06:05:05 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi sLiM,

I can not make real tests, since I am not at home for a long while now....... ;)
Rechecked to be sure.. All seem ok to me.

Maybe using Media Player Classic's own mp3 registration helps:
(I doubt, but better give a chance)

Associate extension:
.mp3
Associate RegKey:
mplayerc.mp3
Description:
MP3
Open RegKeyName:
open
Default Icon:
"%PE_Programs%\%ProgramFolder%\mpciconlib.dll",24
Open Command:
"%PE_Programs%\%ProgramFolder%\%ProgramEXE%" "%1"


As you wrote, since your associations works with other files, this should be easy too,
probably something missing or overlooked.... , let us know when you figure out.  :thumbsup:

edit: "Default Icon" line fixed
« Last Edit: August 31, 2011, 06:06:23 PM by Lancelot »

Re: Script Creator Association Helper
« Reply #11 on: September 01, 2011, 12:38:10 AM »

sLiM

  • Diner
  • Jr. Chef
  • *
  • Date Registered: Jun 2011
  • Posts: 41
Lancelot,

OK, thanks.

:book:

Re: Script Creator Association Helper
« Reply #12 on: September 03, 2011, 03:22:20 AM »

sLiM

  • Diner
  • Jr. Chef
  • *
  • Date Registered: Jun 2011
  • Posts: 41
Lancelot,

I seem to have made a little progress adding associations to my "TextMaker" script.  I've succeeded in associating file types with the program that opens them. Also succeeded in adding the program to the open with menu - although since the association is already made I don't need to use it. Finally added the default icon to the file type. Screenshot here --> http://imageshack.us/photo/my-images/202/associatetmv.png/  I hope this may shed some light on my problem using the "Script Create Association Helper" script.

These are the "TextMaker" reg entries that worked, captured with RegShot from from my working Gena.  I had to alter the path slightly and remove some stuff.  Sorry, some lines won't copy correctly (Cryptography\RNG)

Code: [Select]
RegHiveLoad,Tmp_Software,%RegSoftware%
RegWrite,HKLM,0x1,Tmp_Software\Classes\.doc,,TMV
If,%version%,Smaller,80,RegWrite,HKLM,0x1,Tmp_Software\Classes\.doc\OpenWithList\WordPad.Document.1
Else,RegWrite,HKLM,0x0,Tmp_Software\Classes\.doc\OpenWithList\WordPad.Document.1
RegWrite,HKLM,0x3,Tmp_Software\Classes\.doc\OpenWithProgIds,WordPad.Document.1,
RegWrite,HKLM,0x1,Tmp_Software\Classes\.docm,,TMV
RegWrite,HKLM,0x1,Tmp_Software\Classes\.docx,,TMV
RegWrite,HKLM,0x1,Tmp_Software\Classes\.dot,,TMV
RegWrite,HKLM,0x1,Tmp_Software\Classes\.dotm,,TMV
RegWrite,HKLM,0x1,Tmp_Software\Classes\.dotx,,TMV
RegWrite,HKLM,0x3,Tmp_Software\Classes\.tmv\OpenWithProgIds,TMV,
RegWrite,HKLM,0x1,Tmp_Software\Classes\TMV,,"TextMaker Document"
RegWrite,HKLM,0x1,Tmp_Software\Classes\TMV\DefaultIcon,,"X:\Gena's Programs\TMViewer_Prg\TMViewer.exe,1"
RegWrite,HKLM,0x1,Tmp_Software\Classes\TMV\shell\open\command,,"#$qX:\Gena's Programs\TMViewer_Prg\TMViewer.exe#$q /Shell"
RegWrite,HKLM,0x3,Tmp_Software\Microsoft\Cryptography\RNG,Seed,0c,a2,08,1e,6e,9e,d9,85,5a,7c,e4,27,75,6b,db,14,5c,2b,8e,91,fd,f3,fe,5f,74,80,8f,97,77,b7,89,ae,39,78,88,f5,6c,f7,89,94,a3,a1,c7,9b,57,da,5c,4c,71,1b,52,5d,02,03,2e,8a,80,ec,30,f3,22,c8,f8,5b,e9,15,66,7e,c4,ab,d7,32,0e,02,f8,13,81,74,c4,7b
RegHiveUnLoad,Tmp_Software

These are the "TextMaker" reg entries from the "Script Create Association Helper" script. that I could not get to associate the file type with the progrram.

RegHiveLoad,Tmp_Software,%RegSoftware%
RegWrite,HKLM,0x1,Tmp_Software\Classes\.doc,,"TextMaker Viewer"
RegWrite,HKLM,0x1,"Tmp_Software\Classes\TextMaker Viewer\shell",,open
RegWrite,HKLM,0x2,"Tmp_Software\Classes\TextMaker Viewer\DefaultIcon",,#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q
RegWrite,HKLM,0x2,"Tmp_Software\Classes\TextMaker Viewer\shell\open\command",,"#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q #$q#$p1#$q"
RegHiveUnLoad,Tmp_Software
//--
RegHiveLoad,Tmp_Default,%RegDefault%
RegWrite,HKLM,0x1,Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc\OpenWithList
If,Not,ExistRegKey,HKLM,Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc\OpenWithProgids,"TextMaker Viewer",Shellexecute,hide,reg.exe,"ADD HKLM\Tmp_Default\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.doc\OpenWithProgids /v #$qTextMaker Viewer#$q /t REG_NONE"
RegHiveUnLoad,Tmp_Default

I hope this helps.

Thanks,
:book:

« Last Edit: September 03, 2011, 02:14:43 PM by Lancelot »

Re: Script Creator Association Helper
« Reply #13 on: September 03, 2011, 02:17:05 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
sLiM,

Thanks for the info  :thumbsup:

My Guess: Your OpenWidth Menu working operational since (after) you add IE 06  ;),
 besides I will add another OpenWithList option on next version (v6) to script following your feedback.


"SC Association Helper" would not produce above codes since August 31, 2011 , v5  :wink:
Besides your above lines work here on my tests....

But I guess reasons of mis-match results:
Association with "ms" files sometimes "tricky",
"SC Association Helper" helps you to get standart lines for associations,
 and you should also notice it works at most cases since most applications either use, or support standart method....  :great:
Tricky part is,
1)
windows have a bad design on associations (I believe),
 hence even ms guys for some reasons use some tricks for associations,
  than 3rd party application authors (ex: TMViewer) use same tricks to override ms tricks...
shortly,  a "trick war"  :lol: Very Mostly at "ms office land" (.doc, .docx etc...)  :tongue:
2)
PE is a special build, unlike normal windows, to get some components work on PE sometimes boot time registration required. Ex: IE 06
This gets The component work, and End user happy using ex: IE ;)
but sometimes boottime registrations overwrites associations which you had already made at build time.....

Since I can only make very quick and small tests here with Gena via not being at home and time...,
 my mini tests result success, without getting effected from 1) or 2)  :wink:

I like TMViewer, thanks, it would be nice working on it when I get back home having free time (no promise, time....)

Ah, and I also feel you need to update Gena from server ;).

Coding Tips:
I am glad you figure out using regshot etc... After converting and AFTER getting success on your task:

*
here is important tip:
Get rid of hardcoded registry lines to get script more compatible to all available options.

Common practice with an example:

RegWrite,HKLM,0x1,Tmp_Software\Classes\TMV\shell\open\command,,"#$qX:\Gena's Programs\TMViewer_Prg\TMViewer.exe#$q /Shell"
--->
RegWrite,HKLM,0x2,Tmp_Software\Classes\TMV\shell\open\command,,"#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q /Shell"

*
registry snapshots gets everything, related  unrelated.....
get rid of unrelated lines, this requires some experience, to learn follow your hunch and test  :whistling:
I guess line above
Tmp_Software\Microsoft\Cryptography\RNG,Seed,........
not necessary to get your .doc associated with TMViewer, remove it and give a try  :great:



And last tip about posting on forums:
Use codebox for your looong codes ;) I added codebox to your codes on your previous posts to demonstrate,
at post editor screen you will notice "Inster Codbox" button with # sign  :great:


Thanks for feedback, See you  :cheers:

Re: Script Creator Association Helper
« Reply #14 on: September 04, 2011, 03:14:30 AM »

sLiM

  • Diner
  • Jr. Chef
  • *
  • Date Registered: Jun 2011
  • Posts: 41
Lancelot,

Quote
"SC Association Helper" would not produce above codes since August 31, 2011 , v5
Sorry, thought I had the latest.

Quote
I like TMViewer,

Associations are working in both TextMaker and PlanMaker now.

Quote
Ah, and I also feel you need to update Gena from server ;).
  :thumbsup:

Quote
here is important tip:
Get rid of hardcoded registry lines to get script more compatible to all available options.

Common practice with an example:

RegWrite,HKLM,0x1,Tmp_Software\Classes\TMV\shell\open\command,,"#$qX:\Gena's Programs\TMViewer_Prg\TMViewer.exe#$q /Shell"
--->
RegWrite,HKLM,0x2,Tmp_Software\Classes\TMV\shell\open\command,,"#$q%PE_Programs%\%ProgramFolder%\%ProgramEXE%#$q /Shell"
Are you saying to remove the portion of text that is colored?

Quote
Use codebox for your looong codes ;) I added codebox to your codes on your previous posts to demonstrate,
   :thumbsup:

Quote
Associate extension:
.mp3
Associate RegKey:
mplayerc.mp3
Description:
MP3
Open RegKeyName:
open
Default Icon:
"%PE_Programs%\%ProgramFolder%\mpciconlib.dll",24
Open Command:
"%PE_Programs%\%ProgramFolder%\%ProgramEXE%" "%1"
MPC - Home Cinema problem fixed. After changing the icon number, all associations, context menu and "click on mp3 to play" work. Can I ask, how do you know what icons go with what numbers?

Thanks again for your help.


Things are looking up!  :thumbup:  :book:


« Last Edit: September 04, 2011, 08:41:38 AM by sLiM »

Re: Script Creator Association Helper
« Reply #15 on: September 04, 2011, 11:19:00 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Associations are working in both TextMaker and PlanMaker now.
:thumbup:

I moved your topic to "General Scripts" with Title "SLiM Script Collection .... "
http://theoven.org/index.php?topic=165.0
It would be nice to give a list at post 1 ;) so finding would be easy to others  :great:

Are you saying to remove the portion of text that is colored?
I say replace ;). (+ also bolded 0x1 -> 0x2)

MPC - Home Cinema problem fixed. After changing the icon number, all associations, context menu and "click on mp3 to play" work. Can I ask, how do you know what icons go with what numbers?
Good to know MPC working the way you like.

To find default association values of a utility, I follow footprints of that utility,
giving example with MPC:
i simply install to my hostos,
associate with .mp3 extension through MPC menus,
open regedit.exe
browse to key HKEY_CLASSES_ROOT\.mp3
read (Default) value --> mplayerc.mp3
browse to key HKEY_CLASSES_ROOT\mplayerc.mp3

there you will find all info.

Note: This method, just like "Script Creator Association Helper", covers most (%95) situations, not tricks ;), besides tricks are rare with conditions explained before  :great:

 :cheers:
« Last Edit: September 04, 2011, 11:19:49 AM by Lancelot »

Re: Script Creator Association Helper
« Reply #16 on: September 04, 2011, 01:57:03 PM »

sLiM

  • Diner
  • Jr. Chef
  • *
  • Date Registered: Jun 2011
  • Posts: 41
Lancelot,

Quote
I moved your topic   It would be nice to give a list at post 1 ;) 
:thumbsup:

Quote
Are you saying to remove the portion of text that is colored?

I say replace ;). (+ also bolded 0x1 -> 0x2)
OK, I think you suggest to alter the path to fit Gena. Sorry, but I'm not sure about bold for 0x1 and 0x2.  Do I only need to make them bold or do something with the numbers?    :confused:

Quote
To find default association values of a utility, I follow footprints of that utility,
giving example with MPC:
i simply install to my hostos,
associate with .mp3 extension through MPC menus,
open regedit.exe
browse to key HKEY_CLASSES_ROOT\.mp3
read (Default) value --> mplayerc.mp3
browse to key HKEY_CLASSES_ROOT\mplayerc.mp3
Definately good to know where to find this info.
« Last Edit: September 04, 2011, 02:03:10 PM by sLiM »

Re: Script Creator Association Helper
« Reply #17 on: September 04, 2011, 05:55:28 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
OK, I think you suggest to alter the path to fit Gena.
NOOO
I wrote at reply 13
Get rid of hardcoded registry lines to get script more compatible to all available options.
And as written on reply 13, tips are for cases where you use RegShot, RegConvert (RegCPE) etc. etc.

Sorry, but I'm not sure about bold for 0x1 and 0x2.  Do I only need to make them bold or do something with the numbers?    :confused:

Please read related posts and tips carelfully and make some personal tests etc. Trust me you now already have %95 info about finding & creating registry lines all yourself. These are very elementary stuff, Here I only tipped you to get you find right way before making lots of mistakes and hit your head saying "why nobody told me". (so I can say now was told but you did not work hard to understand that times  :whistling:).....

Well in case you have not understand, figure out yourself yet, wait untill you get in trouble, than re-read above tips which would be more meaningfull at that time. :lol:

Aside, this is very out of topic now, "Script Creator Association Helper" script have nothing to do with these at all ;).

Don't forget to update post 1 at other topic.   :thumbsup:
and It is good you now know how to find association info.  :thumbsup:

 :cheers:

Re: Script Creator Association Helper
« Reply #18 on: September 04, 2011, 07:25:21 PM »

sLiM

  • Diner
  • Jr. Chef
  • *
  • Date Registered: Jun 2011
  • Posts: 41
Hi Lancelot,

Sorry, but among other things, I'm a life long carpenter. If we want to talk carpentry, I can do that very well.  I make no claim to be a script writer but I do find it interesting, as well as beneficial. I am grateful for your freely given help and I do thank you for that. I have a hard time keeping up with many script oriented things at the same time and still have not yet begun to try to figure out shortcuts. I'm sure that if I continue to stay the course, at some point the light will come on and it will all start to make more sense, as with most things. I have noticed for a while now that you are extremely busy and I've been hoping to get out of your hair as quickly as possible. Again, thanks for all your help, tips , examples, advice, etc., many people simply would not be bothered to help.

Will update post #1 asap.  :thumbsup:

Thanks,

:book:
   
« Last Edit: September 04, 2011, 07:46:09 PM by sLiM »

Re: Script Creator Association Helper
« Reply #19 on: September 04, 2011, 10:37:14 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 10350
Hi sLiM,

No worry, I am also not a programmer ;) , all stuff at theoven created at hoby time, time is pretty valuable for us, and as reader I advice you to follow things carelfully, test, practice etc. and than ask when you stuck.

If I had full time, be sure I would prepare nice & long tutorial for things like above, but due to lack of time I can only tip on such things, and expect to be followed.  :thumbsup:

SC script series prepared to get end users like you to create scripts easly themselves, which I can see from your and maanu responses they are successfull.
successfull:
=> you now can easly create working scripts yourself :thumbsup:
==> than you are interested in associations, with infos and helper script on current topic now you can find your way easly.  :thumbsup:
===> currently you are getting interested in shortcuts ;). Check here http://theoven.org/index.php?topic=50.0 and *After making some set of trials if you stuck on creating shorcuts create a new topic for help.

You've made a very good start, I am pretty sure in some more time you will be able to do all stuff you had imagined.  :great:


Some more SC scripts are on the way (preparing a week now when I can find free time...) to help more, later other scheduled things, I am only 1 :turtle: having some personal agenda for my hoby time and It is all about time*.

After you figure out all stuff you are interested, I hope you keep around sometime for good* tutorials for new starters like you and help new comers. Good tutorials and good help do not come from trees   :wink:

Thanks for update, See you around  :cheers:

 

Powered by EzPortal