looping a particular section of code (i have no idea what im doing) - imacros

I have followed too many people on Instagram up to the 7500 limit, I cant be bothered to unfollow every single one and not violate Instagram polices. I have recreated the code below with literally no knowledge of what I'm doing whatsoever. It randomly unfollows one account every 20-40 seconds which is brilliant, however again, to be sure i dont violate instagrams unfollow polices i want it to unfollow an account every 20-40 for 150 cycles, then wait for an hour, then continue and so on.
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*20 + 20); randomNumber;")
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 1
WAIT SECONDS={{!VAR1}}
TAG POS=1 TYPE=BUTTON ATTR=TXT:Following
WAIT SECONDS=5
TAG POS=1 TYPE=BUTTON ATTR=TXT:Unfollow
SET !LOOP -150
So what I'm looking for is something like this on the end I guess
WAIT SECONDS= 3600
LOOP 50
But again, I have no idea what I'm doing lol.

If you are using the extension, you can hit "Play Loop" on the main menu down near the bottom. You set how many times to loop under "Play macro repeatedly", just set the max to 50 and include WAIT SECONDS=3600 at the bottom of your script

Related

Control-M: Order date (prerequisite), two jobs with different load dates

I have two jobs with different load dates (not same day):
JobA: runs at the end of month (may be 28th, 29 th, 30th).
JobB: runs at the beginning of the month (may be 1st, 2nd).
I want to make JobA as prerequisite of JobB.
How can I proceed, in control M, since the two jobs are not in the same load date and they don't have specific date to run.
This situation can be easily handled with the use of STAT conditions.
Normally conditions are order date dependent, but if you change the condition from ODAT to STAT then the order date is not taken into consideration.
Ensure that you are removing the STAT condition on JobB after completion (on failure or success) to avoid next months JobB kicking off prematurely.
Re-elaborating Jasper answer, my suggestion is: on JobA, in the "On Do Actions" add the following action with attention to "Date" parameter which must be "No Date":
On JobB prerequisites add the condition. Again, with "No Date":
In JobB, in "On Do Actions" add the following action, to manage the condition:

Coldfusion 2018 - Best way to display progress animation during long insert query?

I have a page that can potentially do a long insert query that takes upwards of 30 seconds to 1 minute. I would like to display an animation on the page while this is happening to let people know it's processing. What is the best way to do this with CF 2018?

change the db when the time ran out

i'm writing a django app that features a timer like in a game.
lets say that the game is a basketball game and i have 4 quarters of 10 min.
i need that in the end of each of the 10 min the db will be changed.
to set a timer that will change the db won't work for me because the quarter
won't always be of 10 min, and it will be changed while the app is on
production, i.e i save the quarter time in the db so i can change it whenever
i want.
i thought to use signals but i just could't find a way to make it work.
any help will be good
thx
one way to think about it would be to say it doesn't matter what state the db is in when nobody is looking at it... in other words you don't have to update the db after exactly 10 minutes
instead: as each request comes in first check if you are past the limit of the timer, if so then update the db before continuing with the usual view code

How to use 2-3 lines command in imacro variables?

Normally we can use variable in imacro using SET tag, such as
SET myDelay 10
WAIT SECONDS={{myDelay}}
I need to know, is there any way to use 5-10 lines in a variable. Such as:
WAIT SECONDS=25
URL GOTO=........
WAIT SECONDS=15
SET !TIMEOUT_STEP 15
I want to use whole the above code in a variable. Cause i need to use those line many times in a macro script and i need to change also those lines. So its tough to change every line every time. If i could use a variable then it will easier for me to change only the variable and all the rest data will be working according to this variable.
OR if you have any idea how to do it?

MFC CEdit Ctrl Question

I have a CEdit control that I want to be able to take time input from. Now I want this input to come in the form hh:mm:ss. Currently I am using a separate CEdit control for hour, mins, & secs. I know I could require the user enter in colons to separate hours, mins, secs, but this I believe will get confusing for my users.
I actually want my control to show the colons, and have the different sections of the control to be tab stops, so that it is clear to the user what time exactly they are entering in. I know I have seen this elsewhere, and I just don't know how to do it myself.
Ideally these would come in as 3 separate strings, because I am not using Epoch time, or any other type of system time, but am using my own time count. (ie. how many data samples we are into the file.) Meaning each time, my clock starts at zero, and counts up from there.
Thanks
Dan
Reformatting the text is simple enough, although I would wait until a lost focus message rather than insert colons while the user is typing, it gets confusing especially if they need to edit or delete a character.
You can implement tab stops within the field by getting VK_TAB but I'm not sure I would do this - users are used to tabs jumping to the next control not to positions within a control.
Another way to do this is to have 3 separate controls but detect when the user has entered enough characters for the first, or entered a tab (or colon) and then automatically switch focus to the next one. I think this is neater, it's what the IP_ADDRESS control does.
You'll have to handle each WM_CHAR (or WM_KEYUP, as appropriate) and re-format the text in the edit box as the user types. Handle the message for VK_TAB and set the selection as appropriate.