Programmation questions
-
- Posts: 744
- Joined: 2007-04-28 05:46:43
- Location: Italy
Folders
In my home network I have three computers and I liked to have only 1 AMC.
To do this, every PC used the same program in a network folder placed on the server but it often happened that the program crashed ('out of memory').
As I couldn't find the reason why, I decided to have 1 AMC in every PC but.... when I update scripts or templates I need to update them on every PC.
I Would like to have 1 only folder to contain scripts and 1 only folder for templates (on the server, obviousely).
Should it be possible? It could be very useful to me.....
Thanks for your help.
To do this, every PC used the same program in a network folder placed on the server but it often happened that the program crashed ('out of memory').
As I couldn't find the reason why, I decided to have 1 AMC in every PC but.... when I update scripts or templates I need to update them on every PC.
I Would like to have 1 only folder to contain scripts and 1 only folder for templates (on the server, obviousely).
Should it be possible? It could be very useful to me.....
Thanks for your help.
-
- Posts: 744
- Joined: 2007-04-28 05:46:43
- Location: Italy
Too easy!bad4u wrote:In Menu>Tools>Preferences>Folders you will find a drop-down box to choose which folders you want to change. Choose "Load/Save templates" and "Load/Save scripts" and change the folder on the field below ("Use this folder"). Don't forget to hit save button then.
Thanks.
--- a little later...
Oh no.... I was too fast to give an answer!
There must be something wrong as I tried but solution given is not OK...
-
- Posts: 744
- Joined: 2007-04-28 05:46:43
- Location: Italy
Scripts and templates are non loaded after changes, both in current session (after my OK, obviousely) and after closing/opening AMC .bad4u wrote:I never used this feature, so I just took a guess it would work this way (at least that's what I thought it would be for, though not really for sharing network access). But what exactly does not work ?
Thanks.
-
- Posts: 744
- Joined: 2007-04-28 05:46:43
- Location: Italy
For local folders on NTFS drive it is still possible to change the real location of the files using junction points / hardlinks, but for a network drive I do not have an idea (as I think these hardlinks won't work on that)
It is a feature planned for the next release (as for Vista/Seven I have to change the scripts folder anyway, to place it outside Program Files). The only "problem" is ... when will I do that
It is a feature planned for the next release (as for Vista/Seven I have to change the scripts folder anyway, to place it outside Program Files). The only "problem" is ... when will I do that
-
- Posts: 21
- Joined: 2010-01-21 00:54:05
Google Translator in variable
I'm using more of the script for IMDB course, always have everything.
But I would like to translate the comments by google.
How to get variable fieldComments and translate its contents via google translator?
Could you post the code so I know how it looks
But I would like to translate the comments by google.
How to get variable fieldComments and translate its contents via google translator?
Could you post the code so I know how it looks
-
- Posts: 863
- Joined: 2006-08-31 23:58:18
cluis_henrique wrote:How to get variable fieldComments and translate its contents via google translator?
Answer here
List all films from Site
[english]
Hello and thanks again for your soft.
Some pages show a structure like this: a home page and a list of subsequent pages in which only changes the number.
I created a script that lists all the movies on a page like this.
Due to the limitations of the script (or mine) I cannot add new records, so I perform the following procedure.
create a file with 5000 CRLF
import AMC (text)
run the script for all records
In first question -> save All
I use Global variables which remember values during script execution.
This script work fine, even with thousands of records and hundreds of pages.
I need a way to simplify their use.
Can I add new records at runtime?
Can you tell how many records have you selected before starting the execution?
Any additional ideas to simplify its use?
Does violates any site's rules?
Thanks in advance.
[spanish]
Hola y gracias de nuevo por tu programa.
Algunas páginas muestran una estructura como esta: una página inicial y un listado de páginas subsiguientes en las que sólo cambia el número.
He creado un script que lista todas las películas de una página de estas características.
Debido a las limitaciones del guión (o a las mías) no puedo añadir nuevos registros, por lo que realizo el siguiente procedimiento.
crear un archivo con 5000 CRLF
importo en AMC (texto)
ejecuto el guión para todas los registros
En la primera pregunta -> guardar todos
Utilizo variables globales que recuerdan su valor durante el tiempo de ejecución del programa
El script funciona muy bien, incluso trabajando con miles de registros y cientos de páginas.
Necesito alguna forma de simplificar su uso.
¿Se pueden añadir nuevos registros en tiempo de ejecución?
¿Se puede saber cuántos registros se han seleccionado antes de iniciar la ejecución?
¿Alguna idea adicional para simplificar su uso?
¿Se infringe alguna norma del site?
Gracias de antemano
Ant Movie Catalog script SeaPorn (ListAll) v1.00
Hello and thanks again for your soft.
Some pages show a structure like this: a home page and a list of subsequent pages in which only changes the number.
I created a script that lists all the movies on a page like this.
Due to the limitations of the script (or mine) I cannot add new records, so I perform the following procedure.
create a file with 5000 CRLF
import AMC (text)
run the script for all records
In first question -> save All
I use Global variables which remember values during script execution.
This script work fine, even with thousands of records and hundreds of pages.
I need a way to simplify their use.
Can I add new records at runtime?
Can you tell how many records have you selected before starting the execution?
Any additional ideas to simplify its use?
Does violates any site's rules?
Thanks in advance.
[spanish]
Hola y gracias de nuevo por tu programa.
Algunas páginas muestran una estructura como esta: una página inicial y un listado de páginas subsiguientes en las que sólo cambia el número.
He creado un script que lista todas las películas de una página de estas características.
Debido a las limitaciones del guión (o a las mías) no puedo añadir nuevos registros, por lo que realizo el siguiente procedimiento.
crear un archivo con 5000 CRLF
importo en AMC (texto)
ejecuto el guión para todas los registros
En la primera pregunta -> guardar todos
Utilizo variables globales que recuerdan su valor durante el tiempo de ejecución del programa
El script funciona muy bien, incluso trabajando con miles de registros y cientos de páginas.
Necesito alguna forma de simplificar su uso.
¿Se pueden añadir nuevos registros en tiempo de ejecución?
¿Se puede saber cuántos registros se han seleccionado antes de iniciar la ejecución?
¿Alguna idea adicional para simplificar su uso?
¿Se infringe alguna norma del site?
Gracias de antemano
Ant Movie Catalog script SeaPorn (ListAll) v1.00
I do not know if adding new records is already possible or just planned in a future version, but knowing the number of movies and which one is the current one is possible since version 4.1 (or will be added in the next update of that version if not yet in the current beta)
About site rules, you mean the site from which you take the info?
About site rules, you mean the site from which you take the info?
It is planned.I do not know if adding new records is already possible or just planned
I will add function: AddNewMovieToQueue: Integer
Edit: It will be added in next update.
The new movie will be added to the end of the queue.
The function will return a unique movie number.
It is already added in the current release.knowing the number of movies and which one is the current one is possible since version 4.1 (or will be added in the next update of that version if not yet in the current beta)
Soulsnake.Add GetIteration and GetIterationCount functions for scripts. [23/11/11 - 1:00 pm]
Last edited by soulsnake on 2011-12-01 00:33:10, edited 1 time in total.
thanks soulsnake and antp
Is difficult to use this script for someone without a high handling of AMC or without programming knowledge. I think.
Thanks again.
Yes. This is a really robot. I don't know too much about the web rules. For me, renew IP its the solution, but its necessary advise other people which use this script.antp wrote: About site rules, you mean the site from which you take the info?
Is difficult to use this script for someone without a high handling of AMC or without programming knowledge. I think.
Thanks again.
-
- Posts: 9
- Joined: 2010-01-15 18:46:58
Please tell me
How to use the function GetPage3 (address: string; referer: string; cookies: string): string;
made the request:
But, do not correctly transferred cookie
How to use the function GetPage3 (address: string; referer: string; cookies: string): string;
In PHP:Same as GetPage2, but allows to specify cookies as a string: 'uid = 120; pwd = FHNHESW' for example.
Code: Select all
$out="GET $file HTTP/1.1\r\n";
$out.="Host: kinopoisk.ru\r\n";
$out.="Referer: kinopoisk.ru\r\n";
$out.="User-Agent: Mozilla/5.0 (compatible; Ant Movie Catalog)\r\n";
$out.="Accept: */*\r\n";
$out.="Cookie: forum_data[login]=Tutankhamon; forum_data[reg_key]=**********\r\n";
$out.="Connection: close\r\n";
$out.="\r\n";
while (!$fp=@fsockopen("www.kinopoisk.ru", 80, $errno, $errstr, 30));
fwrite($fp, $out);
fclose($fp);
Code: Select all
Page.Text := GetPage3(Address, 'kinopoisk.ru', 'forum_data[login]=Tutankhamon; forum_data[reg_key]=**********');
-
- Posts: 9
- Joined: 2010-01-15 18:46:58
Modify IMDB script to search using IMDB ID instead of name
Hi,
I didn't want to start a new thread for this query.
The current IMDB script forces me to select the relevant movie almost every time since it searches by name and there are chances of movies with similar names around.
Can anyone guide me with necessary changes required to be made to IMDB script so that I can make it search on batch mode using the IMDB ID?
I shall save the relevant IMDB id in a custom field before hand, for e.g. tt0020629
Thanks a lot.
I didn't want to start a new thread for this query.
The current IMDB script forces me to select the relevant movie almost every time since it searches by name and there are chances of movies with similar names around.
Can anyone guide me with necessary changes required to be made to IMDB script so that I can make it search on batch mode using the IMDB ID?
I shall save the relevant IMDB id in a custom field before hand, for e.g. tt0020629
Thanks a lot.