02 March 2022, 15:28 | #81 | |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Quote:
Thank you all guys for the immediate help |
|
02 March 2022, 19:32 | #82 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Just to update everyone on the situation. I wrote 7-8 scripts using AskMore and also requestfile or requeststring which all work perfect. They work as buttons on docks or menu items in ToolsDaemon. The scripts are made for Aminetsearch, Aminetextract, Aminetget, Aminetrecent and unpack. I also wrote scripts to combine Aminetsearch or Aminetrecent with Aminetget or Aminetextract. So with one script you search Aminet for you file and then just fill in the number and it downloads it and extracts in in ram straight away. Very fast and very convenient.
Thanks a lot for pointing me to the right direction. Now i will try the GUI to see what else we can do Perfect set of tools !!! Well done |
04 March 2022, 15:39 | #83 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Hello again
Wrote a few scripts like the attached photo which work perfect. What would I add at the end of this script in order to loop back when reaching the end so I can download more files? I tried the LAB & SKIP commands but don't work as they do in other scripts. Thanks in advance |
04 March 2022, 17:47 | #84 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 926
|
You need to add the BACK argument to skip if you want it to search backwards for labels.
Btw, if AskMore is in your path, you do not need to supply the complete path to it for each line. |
04 March 2022, 20:03 | #85 | |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Quote:
"LAB LOOP" without quotes at the second line And at the end "SKIP LOOP BACK" ? Wouldn't that put the script in an endless loop? It would be better with a question and Yes or No. If yes then loop, if no end cli. What would you suggest for that? |
|
04 March 2022, 20:38 | #86 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 926
|
You could treat an empty answer as that the user wants to exit and make it skip to a label at the end in that case.
Code:
Lab loop AskMore “number: “ If ”$ANSWER” EQ ”” Skip end EndIf aminetextract $ANSWER Skip loop BACK Lab end |
04 March 2022, 21:14 | #87 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Thanks a lot Patrik. Will try that!!!
|
05 March 2022, 17:53 | #88 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Hello there
Could you please have a look at this error on 3.1 Amiga OS? UHC tools work fine in all other OS such as 3.2.1, 3.1.4 and 3.9 but in 3.1 i get this error and none of the scripts work |
05 March 2022, 18:39 | #89 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 926
|
As a general remark on this issue, UHC Tools has no compatibility issue with 3.1 which we are aware of, it was actually developed mainly under 3.1.
Which command are you executing when this happens? Can you create files and write to them in T:? Does the following work: Code:
echo test >T:testfile Code:
echo version >ram:testscript execute ram:testscript Last edited by patrik; 05 March 2022 at 19:20. Reason: Mention T: |
05 March 2022, 21:14 | #90 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Patrik thanks for your reply. Will test your suggestions later tonight to see if I can write anything in t:
Just for your information, i can't run any of the UHC scripts in the S folder coming with the installation. Even uchupdate doesn't work and i get the same error in all of them. I installed uhc the same way i did in all my other OS. So most probably there is something wrong with my 3.1 installation and folder t: which seems in use by something!! Will come back to you later tonight when i try what you said |
05 March 2022, 21:16 | #91 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Is the file in t: command-00-t002 a file used by UHC?
|
05 March 2022, 21:59 | #92 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 926
|
It is temporary files created by execute. Not 100% sure when they are created, but I think it is when a script calls another script.
|
06 March 2022, 00:48 | #93 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 926
|
Now I know - execute creates those when scripts with arguments are used. It creates a temporary script with the argument(s) resolved/expanded and I am positive that the temporary file is what is actually executed.
Look at this example: Code:
9.Ram Disk:> type argscript .KEY SOMEARG echo "<SOMEARG>" wait 10 echo "done!" 9.Ram Disk:> run execute argscript testing [CLI 1] 9.Ram Disk:> testing 9.Ram Disk:> list t: Directory "t:" on Söndag 06-Mar-22 Command-0-T1 37 ----rwed Idag 00:35:26 1 file - 37 bytes - 2 blocks used 9.Ram Disk:> type t:Command-0-T1 echo "testing" wait 10 echo "done!" 9.Ram Disk:> done! 9.Ram Disk:> list t: Directory "t:" is empty |
06 March 2022, 01:08 | #94 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Hello again Patrik
Thanks a lot for looking into it. As you can see in snoopdos log, it fails to write on this file even though it has written and read the 2 first times. That is strange!! Any ideas on how to solve that? |
06 March 2022, 01:32 | #95 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Hi there again
Found the issue!!! I replaced the very old execute command from 3.1 with execute from 3.1.4 and it all works fine now. Patrik thanks a lot for helping me solve this issue. You pointed me to the right direction!!! Good night |
06 March 2022, 09:19 | #96 |
Registered User
Join Date: Jun 2015
Location: Umeå / Sweden
Posts: 266
|
It's great that you got this solved, but this sounds strange because just like Patrik said - 3.1 is what we have used for most of the development of UHCTools and definitely should work. Do you still have the old Execute command and can do a version on it using "Version FILE C:Execute.old" or where the file is right now.
Maybe your Execute command had been replaced with an even older version or something at some point? |
06 March 2022, 09:38 | #97 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Hello jayminer
I will try to find the version I replaced. I checked the version on the old execute before i replaced it and it was from back in 1991 (don't remember the version number). Do you want me to send it to you? |
06 March 2022, 09:40 | #98 |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
|
06 March 2022, 09:58 | #99 |
Registered User
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 926
|
The 3.1 execute is "execute 37.11 (1991-05-14)".
Is your T: non-standard in any way, or is it the normal RAM:T? |
06 March 2022, 10:40 | #100 | |
Registered User
Join Date: Sep 2019
Location: Corfu / Greece
Posts: 410
|
Quote:
My RAM:T folder is a standard one. It is normal 3.1 installation with Better WB, internet, whdload etc. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Looking for some basic IP tools en SDK tools | Roland007 | support.WinUAE | 0 | 28 November 2012 22:34 |
Tools | alexh | support.Hardware | 15 | 05 August 2010 23:27 |
What tools to use? | Zetr0 | GCA.Usefull Programs | 10 | 03 February 2009 23:52 |
Need a few tools | Phantomz | request.Apps | 6 | 22 November 2008 03:15 |
Tools? | Kada | project.Amiga Game Factory | 1 | 05 February 2008 09:58 |
|
|