© J.C. Kessels 2009
MyDefrag Forum
May 21, 2013, 09:45:50 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
MyDefrag Forum
>
MyDefrag v4 Forum
>
Scripts, and other contributions
>
[Tool] MyDefrag Tray Tools
Pages:
1
[
2
]
3
« previous
next »
Print
Author
Topic: [Tool] MyDefrag Tray Tools (Read 23360 times)
yo612
JkDefrag Junior
Posts: 5
Re: [Tool] MyDefrag Tray Tools
«
Reply #15 on:
September 08, 2009, 08:36:13 pm »
Yes it works perfectly with other script. But I have edited the script and found nothing incorrect.
This is the script :
# MyDefrag v4.0 default script: Force Together
#
# This is an example script.
Title('Force Together')
Description('
Move all the files and directories to the beginning of the disk, on all
the fixed, mounted, writable disks on the computer. Files will be
fragmented to perfectly fill all the gaps.
')
RunScript('Settings.MyD')
VolumeSelect
// Select the volumes that you want to process here. By default no volumes are
// processed. There are many functions that you can use to select volumes, see
// the "VolumeBoolean" chapter in the manual.
// For example:
// Name("d:")
VolumeActions
FileSelect
All
FileActions
ForcedFill()
FileEnd
VolumeEnd
I think FileSelect is good and FileActions too cause ForcedFill() is an item descripted in mydefrag.
You can see this at :
http://www.mydefrag.com/FileActions-ForcedFill.html
«
Last Edit: September 08, 2009, 08:39:32 pm by yo612
»
Logged
jonib
JkDefrag Hero
Posts: 810
Re: [Tool] MyDefrag Tray Tools
«
Reply #16 on:
September 08, 2009, 08:45:22 pm »
You need to edit this section:
Code:
VolumeSelect
// Select the volumes that you want to process here. By default no volumes are
// processed. There are many functions that you can use to select volumes, see
// the "VolumeBoolean" chapter in the manual.
// For example:
// Name("d:")
VolumeActions
Check
here
for details, and this has nothing to do with my tool.
jonib
Logged
MyDefrag script syntax highlighting generator
.
yo612
JkDefrag Junior
Posts: 5
Re: [Tool] MyDefrag Tray Tools
«
Reply #17 on:
September 08, 2009, 08:54:04 pm »
Sorry.
You 're right cause this script has nothing to do with your tool but I was sure of you was able to help me in this script.
I appreciate very much your tool and your knowledge.
Thanks to watched me where was the problem in the script.
Logged
jonib
JkDefrag Hero
Posts: 810
Re: [Tool] MyDefrag Tray Tools
«
Reply #18 on:
September 08, 2009, 09:02:47 pm »
Quote from: yo612 on September 08, 2009, 08:54:04 pm
Sorry.
You 're right cause this script has nothing to do with your tool but I was sure of you was able to help me in this script.
No need to be sorry, I just meant that this thread is not optimal for non Tray Tools (generic) MyDefrag questions.
Did you get the script working?
jonib
Logged
MyDefrag script syntax highlighting generator
.
yo612
JkDefrag Junior
Posts: 5
Re: [Tool] MyDefrag Tray Tools
«
Reply #19 on:
September 08, 2009, 09:22:51 pm »
Yes it's fine
I have just add this :
VolumeSelect
CommandlineVolumes()
and Removable(no)
and Writable(yes)
and Mounted(yes)
and it works very well with your tool.
So to come bakc to your tool, is it possible to launch it at the startup of windows by a key in the registry in HKLM:Run due to the restriction of the UAC ? May be yes, but I've not tried yet.
Logged
jonib
JkDefrag Hero
Posts: 810
Re: [Tool] MyDefrag Tray Tools
«
Reply #20 on:
September 08, 2009, 09:30:59 pm »
Quote from: yo612 on September 08, 2009, 09:22:51 pm
So to come bakc to your tool, is it possible to launch it at the startup of windows by a key in the registry in HKLM:Run due to the restriction of the UAC ? May be yes, but I've not tried yet.
I haven't done any testing on Vista or Windows 7 as I'm still using XP, I'll do some testing on Windows 7 tomorrow.
jonib
Logged
MyDefrag script syntax highlighting generator
.
jonib
JkDefrag Hero
Posts: 810
Re: [Tool] MyDefrag Tray Tools
«
Reply #21 on:
September 13, 2009, 07:39:37 pm »
I have updated to work with the new MyDefrag 4.2.0 beta.
Small change to find MyDefrag.
Edit: I have updated again to ver 0.63, I had to change one more thing to detect the new MyDefrag.
jonib
«
Last Edit: September 13, 2009, 07:53:26 pm by jonib
»
Logged
MyDefrag script syntax highlighting generator
.
jonib
JkDefrag Hero
Posts: 810
Re: [Tool] MyDefrag Tray Tools
«
Reply #22 on:
October 04, 2009, 02:21:06 pm »
I have updated to 0.64, now it should detect the new 4.2.1 version of MyDefrag.
jonib
Logged
MyDefrag script syntax highlighting generator
.
abwarts
JkDefrag Junior
Posts: 8
Re: [Tool] MyDefrag Tray Tools
«
Reply #23 on:
October 29, 2009, 02:06:11 pm »
hello
this add-on is great but since i've updated to version 4.2.4, i cant get it to work. worse i cant reinstall it anymore as i now get everytime this error:
error can't load icon. the current thread will exit
specifically: mydefrag.exe
line#
-> 009: menu, tray,icon, %mydefragpath%mydefrag
i do get an incon in the taskbar but all i can choose from the menu is
suspend hotkeys
pause script
exit
what i can do to have it run again?? i've tried uninstalling mydefrag and the tools, going back to ver 4.2.3 but no change at all i now always get that message
Logged
jonib
JkDefrag Hero
Posts: 810
Re: [Tool] MyDefrag Tray Tools
«
Reply #24 on:
October 29, 2009, 02:23:44 pm »
Quote from: abwarts on October 29, 2009, 02:06:11 pm
this add-on is great but since i've updated to version 4.2.4, i cant get it to work. worse i cant reinstall it anymore as i now get everytime this error:
error can't load icon. the current thread will exit
specifically: mydefrag.exe
line#
-> 009: menu, tray,icon, %mydefragpath%mydefrag
i do get an incon in the taskbar but all i can choose from the menu is
suspend hotkeys
pause script
exit
That's not a nice error, I'll add some error checking. The error basically complains that it can't find MyDefrag as it is using its icon.
Quote
what i can do to have it run again?? i've tried uninstalling mydefrag and the tools, going back to ver 4.2.3 but no change at all i now always get that message
Do you have the latest version of the Tray tools from the first post in this thread? as I just tried it with MyDefrag 4.2.4 and it works fine.
jonib
Logged
MyDefrag script syntax highlighting generator
.
abwarts
JkDefrag Junior
Posts: 8
Re: [Tool] MyDefrag Tray Tools
«
Reply #25 on:
October 29, 2009, 03:25:47 pm »
looks like i got it to work, so maybe i was doing the wrong thing....
i put both file from the zip in the mydefrag folder and it worked perfectly!!
i might have done that the 1st time i install your great tool but i don't remember doing that.....
anyway thanks for the reply and the tool (again)
Logged
jonib
JkDefrag Hero
Posts: 810
Re: [Tool] MyDefrag Tray Tools
«
Reply #26 on:
October 29, 2009, 08:48:39 pm »
Quote from: abwarts on October 29, 2009, 03:25:47 pm
looks like i got it to work, so maybe i was doing the wrong thing....
Great you got it working. There should not be a way to do the wrong thing, hopyfully you are up to finding out what went wrong?
Quote
i put both file from the zip in the mydefrag folder and it worked perfectly!!
You only need the
.exe
as the .ahk file is the script source code. And it should work from any directory.
Quote
anyway thanks for the reply and the tool (again)
You are welcome for both
Would you mind running this
Test.exe
tool and posting the Test.log? Hopefully it can show why it didn't work for you.
jonib
Logged
MyDefrag script syntax highlighting generator
.
abwarts
JkDefrag Junior
Posts: 8
Re: [Tool] MyDefrag Tray Tools
«
Reply #27 on:
October 30, 2009, 12:47:06 am »
here it is:
shell: "C:\Program Files\MyDefrag v4.2.3\MyDefrag.exe" -r "%1" %*
shell split: C:\Program Files\MyDefrag v4.2.3\MyDefrag.exe
shell path: C:\Program Files\MyDefrag v4.2.3
MyDefrag path: MyDefrag.exe
the surprising thing is that this is the old directory from my defrag!! i've since delete that folder and now it is located in a mydefrag folder, since with every new version it create by default a new one stating the ver. number)
Logged
jonib
JkDefrag Hero
Posts: 810
Re: [Tool] MyDefrag Tray Tools
«
Reply #28 on:
October 30, 2009, 06:46:28 am »
Quote from: abwarts on October 30, 2009, 12:47:06 am
here it is:
Thanks
Quote
shell: "C:\Program Files\MyDefrag v4.2.3\MyDefrag.exe" -r "%1" %*
shell split: C:\Program Files\MyDefrag v4.2.3\MyDefrag.exe
shell path: C:\Program Files\MyDefrag v4.2.3
MyDefrag path: MyDefrag.exe
I see that my tool assumes that a path it finds for MyDefrag is the right one without checking that the MyDefrag.exe is actually there. I'll add some more checks.
Quote
the surprising thing is that this is the old directory from my defrag!! i've since delete that folder and now it is located in a mydefrag folder, since with every new version it create by default a new one stating the ver. number)
If you doubleclick a .MyD script, does it work?
The log shows that your old MyDefrag path is still in the registry here:
HKLM\SOFTWARE\Classes\Applications\MyDefrag.exe\shell\open\command
that is used as default action for MyDefrag scripts.
jonib
Logged
MyDefrag script syntax highlighting generator
.
abwarts
JkDefrag Junior
Posts: 8
Re: [Tool] MyDefrag Tray Tools
«
Reply #29 on:
October 31, 2009, 07:35:23 pm »
after deleting the registry key, the test returned nothing for the shell lines, add 3 icon lines with the correct path to the mydefrag folder, and the last line is the same
double cliking a script execute it
Logged
Pages:
1
[
2
]
3
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
MyDefrag v4 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Scripts, and other contributions
-----------------------------
JkDefrag v3 Forum
-----------------------------
=> Announcements
=> Questions and help
=> Bugs and problems
=> Requests for new features
=> Programming with the library
Loading...