@mgpai:
Many thanks ! , as always the scripts are great.
by copying a part of it and integrating it with packaging rules and an au3 to send commands to the notepad I was able to automate the capture of the right links.
(to many it may seem nonsense but for me it is already a great success

...)
if it could be useful to others I indicate what I did:
1)set of packaging rules with which:
- I uniquely identify the php file I need based on name and site
- I rename the php I am interested in with a specific name, [DwLinkphp.tmp]
(I also change the extension)
- set a particular directory for download ( ../tmp )
- validate : automatic confirmation, automatic start download , start automatic forced dl .
[1 rule for every site where I have php]
2)with the script I open the file just downloaded in notepad, through the au3 I send
the commands "Ctrl A + Ctrl C + Alt F + E" to notepad to copy everything and close it.
now JD finds the right "links" for me, and they appear in the linkgrabber window.
and finally, I delete the temporary file.
script
Code:
/*
Auto Open file DwLinkphp.tmp in text editor
Trigger : A download stopped
DwLinkphp.tmp ----> ex file **.php renamed via packaging rules
*/
disablePermissionChecks(); /*disable permission checks*/
if (link.finished) {
var file = getPath(link.downloadPath);
if (file.name == "DwLinkphp.tmp") {
var editor = "notepad.exe";
callAsync(null, editor, file);
}
}
sleep(250);
var autoitDir = 'C:\\####\\######\\AutoIt3' //''C:\\Program Files (x86)\\AutoIt3';
var autoitExe = 'AutoIt3.exe';
var autoitPath = getPath(autoitDir + "\\" + autoitExe);
var CtrlACtrlCAlltFExTxT = (JD_HOME + "/_bin/CtrlACtrlCAlltFExTxT.au3");
callAsync(null, autoitPath, CtrlACtrlCAlltFExTxT);
sleep(500);
var tmpFile = getPath(JD_HOME + "/tmp/DwLinkphp.tmp");
if (tmpFile.exists()) tmpFile.delete();
au3 code
Quote:
Global $titleJd = '[CLASS:Notepad; TITLE:DwLinkphp.tmp - Windows Notepad]'
WinActivate("[TITLE:DwLinkphp.tmp - Windows Notepad]")
WinActive("[CLASS:Notepad]")
If WinActive($titleJd) Then Send('{CTRLDOWN}a{CTRLUP}{CTRLDOWN}c{CTRLUP}{ALTDOWN}f{ALTUP}e')
Exit
|
there will certainly be parts that can be improved, in case suggestions are accepted
(but at least it works for what I need

)