Search found 18 matches
- Sun May 13, 2018 7:51 pm
- Forum: Beginners
- Topic: a=b vs %a%=%b% vs {%a%=%b%}
- Replies: 1
- Views: 2720
a=b vs %a%=%b% vs {%a%=%b%}
What is the difference between these in logical operations? Which one should I use comparing the numbers or in calculations?
- Wed May 09, 2018 7:56 pm
- Forum: Technical / Scripting
- Topic: Second script, restarting main script
- Replies: 1
- Views: 1894
Second script, restarting main script
How can I run a second script, which restarts my main program if got a critical error and stops working? Or just restarting the program every n seconds regardless if it is running or stopped responding? As I understood, I cant do it in one program, because if it stops, it will not be able to restart...
- Mon Apr 30, 2018 7:21 pm
- Forum: Technical / Scripting
- Topic: Array length (size) with JSONParse
- Replies: 1
- Views: 2146
Array length (size) with JSONParse
Imagine, I have an array: "result": { "orders": Array[54][ { "limit_speed": "0.02", "alive": true, "price": "0.0152", "id": 1762041, "type": 0, "workers": 13, "algo": 21, "accepted_speed": "17.99093735" }, { "limit_speed": "0.02", "alive": true, "price": "0.0151", "id": 1757084, "type": 0, "workers"...
- Sun Apr 22, 2018 6:48 am
- Forum: Technical / Scripting
- Topic: Interface not supported
- Replies: 2
- Views: 2467
Re: Interface not supported
Thank you for editing the post! It happens very rarely, after a long run of a script, and I just cant cause the error by debugging, because the error is not happening during it. The problem is it stops running my script, and I need to restart not only it, but Macro Scheduler. I noticed, this never h...
- Fri Apr 13, 2018 8:00 pm
- Forum: Technical / Scripting
- Topic: Interface not supported
- Replies: 2
- Views: 2467
Interface not supported
What does this error mean? Even if I set ignoreerrors=1 in my script, this error stops my script and I need not only to restart it, but also to restart Macro Scheduler. https://image.ibb.co/k6kFBn/Untitled_2.jpg PS. I dont know why the image is not shown. Please, mods, correct the post, so the image...
- Tue Apr 10, 2018 2:49 pm
- Forum: General Discussion
- Topic: Variable_1, variable_2, variable_3, how to show them in message?
- Replies: 1
- Views: 3711
Variable_1, variable_2, variable_3, how to show them in message?
This is a short fragment from my script trading cryptocurrency: HTTPRequest>https://api.nicehash.com/api?method=orders.get&my&id=%APIid%&key=%APIReadOnlyKey%&location=0&algo=%Algorithm%,,GET,,NicehashAPI Let>r=0 While>r<%NumberOfMYOrdersToCheck% JSONParse>NicehashAPI,result.orders[%r%].limit_speed,S...
- Sat Apr 07, 2018 9:51 pm
- Forum: Technical / Scripting
- Topic: Goto vs Gosub
- Replies: 3
- Views: 3426
Re: Goto vs Gosub
It looks I can do all with Goto>Label without Gosub. When Gosub is preferred to Goto? Just never even tried to use Gosub, always used Goto>Label, and it always worked. Maybe with Gosub I can make my program shorter or easier to remember if I am back at its code after a year or so? Can something be d...
- Fri Apr 06, 2018 10:17 pm
- Forum: Technical / Scripting
- Topic: Goto vs Gosub
- Replies: 3
- Views: 3426
Goto vs Gosub
Explain me in simple terms, what are the difference between these?
Never used Gosub, always only Goto. Maybe I lose some abilities not using Gosub?
Never used Gosub, always only Goto. Maybe I lose some abilities not using Gosub?
- Thu Mar 08, 2018 2:05 pm
- Forum: Technical / Scripting
- Topic: Strange symbols appearing in script
- Replies: 1
- Views: 1867
Strange symbols appearing in script
After some time my script is working I notice very strange symbols appearing randomly inside a code of my program. If any of these appear inside an important line of program code, my program stops to work properly. What is it? Attached the image with them. https://image.ibb.co/d6syL7/Untitled_2.jpg
- Wed Jan 31, 2018 10:47 pm
- Forum: Technical / Scripting
- Topic: Restarting script
- Replies: 3
- Views: 4292
Re: Restarting script
Thank you for your input. I just solved it this way: Timer>ScriptRunTime If>ScriptRunTime>3600000 Message>Restarting script Wait>2 ExecuteFile>E:\Documents\Macro Scheduler 14\Decred18.scp, Wait>1 Exit Endif I just didnt know i can exit the script by simple Exit command. Also, I didnt know how to res...
- Tue Jan 16, 2018 7:54 am
- Forum: Technical / Scripting
- Topic: Restarting script
- Replies: 3
- Views: 4292
Restarting script
How can I stop and restart my script every n minutes/hours?
- Sun Sep 17, 2017 6:54 pm
- Forum: Technical / Scripting
- Topic: Checking if variable is number
- Replies: 5
- Views: 5280
Re: Checking if variable is number
Still unable to resolve this. Maybe there are functions that force the script to restart is such an message or error appeared? It looks, by pressing OK it continues to run even if there is wrong data or no data, and on second iteration it surely get the right data. So, can I force my script to resta...
- Wed Sep 06, 2017 9:17 pm
- Forum: Technical / Scripting
- Topic: Calculations inside IF statement
- Replies: 2
- Views: 2643
Re: Calculations inside IF statement
Thank you, tried If>{%a%+%b%}>0 and If>(%a%+%b%)>0 with no luck. Now will now the problem was syntax.Marcus Tettmar wrote:The syntax you want is:
If>{%a%+%b%>0}
...
Endif
- Tue Sep 05, 2017 10:38 pm
- Forum: Technical / Scripting
- Topic: Calculations inside IF statement
- Replies: 2
- Views: 2643
Calculations inside IF statement
Some extremely simple idea seems not to work, or I dont understand the proper syntax here. Imagine we have two simple programs. The first one see the statement as true, what is really wrong (0+0 is not > 0). The second one see the statement as false, what is true. Where is my problem? We are not abl...
- Tue Aug 15, 2017 3:14 pm
- Forum: Technical / Scripting
- Topic: Checking if variable is number
- Replies: 5
- Views: 5280
Checking if variable is number
I am taking my data from a website by mouseclicking in the predefined region and copying the number to clipboard. Usually this works perfect, but sometimes during the site refresh doubleclicking and copying to clipboard either take no data, or take non numeral data (some kind of text near my needed ...