Sending the most number of comments on instagram contest ! Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
soheill0098
Posts: 69
Joined: 01 Sep 2020, 12:28

Sending the most number of comments on instagram contest !

24 Jun 2021, 16:39

Hello, There is a contest in an instagram page that I'm trying to win, the person who sends the most number of comments is the winner and get a prize ( A video lecture course).

I thought using Autohotkey to automatically send comments is a good idea so I logged in on instagram by PC. The following script send numbers from 0000 to 9999 in each five seconds:

Code: Select all

thing1=10
thing2=100
thing3=1000
y=9999
x=0000
loop{
x :=x+1
sleep, 5000
click,944,740
if (thing1>x)
send, 000%x%{enter}
else if (thing2>x)
send, 00%x%{enter}
else if (thing3>x)
send, 0%x%{enter}
else if (x>1000)
send, %x%{enter}
else if (x>y)
exitapp
}

esc::exitapp 
But there is a problem. after it sends about six or 7 comments on instagram, it gives the error
couldn’t post comment
. So I should wait for a short time to be able to start sending the comments again.

I haven't enough experience about how instagram works. Is writing a script that counts from 0000 to 9999 and stops for example 30 seconds after counting 6 numbers works? can you please help me to win this contest? There are just 10 hours left to the end of the contest.
Thanks a lot
User avatar
Hellbent
Posts: 2109
Joined: 23 Sep 2017, 13:34

Re: Sending the most number of comments on instagram contest !  Topic is solved

24 Jun 2021, 17:55

Code: Select all

thing1=10
thing2=100
thing3=1000
y=9999
x=0000


;**************************************************************
;**************************************************************
	;Toggle on or off.
Numpad1::SetTimer, Timer, % (Tog:=!Tog)?(500):("Off") ;<<<<------change the 500 to 5000
;**************************************************************
;**************************************************************

Timer:
	x += 1
	;**************************************************
		;Remove the ";~" from each to activate the send function.
		
	;~ if (thing1>x)
		;~ send, 000%x%{enter}
	;~ else if (thing2>x)
		;~ send, 00%x%{enter}
	;~ else if (thing3>x)
		;~ send, 0%x%{enter}
	;~ else if (x>1000)
		;~ send, %x%{enter}
	;~ else if (x>y)	
		;~ ExitApp
	;**************************************************	
	if(Delay&&!Delay:=!Delay)
		SetTimer, Timer, 500   ;<<<<------change to 5000
	else if(!Mod(x,6)&&Delay:=1)
		SetTimer, Timer, 3000	;<<<<------change to 30000
	
	ToolTip, % x "`n" delay   ;Remove this.
	return

esc::exitapp 
soheill0098
Posts: 69
Joined: 01 Sep 2020, 12:28

Re: Sending the most number of comments on instagram contest !

24 Jun 2021, 18:37

Hellbent wrote:
24 Jun 2021, 17:55

Code: Select all

thing1=10
thing2=100
thing3=1000
y=9999
x=0000


;**************************************************************
;**************************************************************
	;Toggle on or off.
Numpad1::SetTimer, Timer, % (Tog:=!Tog)?(500):("Off") ;<<<<------change the 500 to 5000
;**************************************************************
;**************************************************************

Timer:
	x += 1
	;**************************************************
		;Remove the ";~" from each to activate the send function.
		
	;~ if (thing1>x)
		;~ send, 000%x%{enter}
	;~ else if (thing2>x)
		;~ send, 00%x%{enter}
	;~ else if (thing3>x)
		;~ send, 0%x%{enter}
	;~ else if (x>1000)
		;~ send, %x%{enter}
	;~ else if (x>y)	
		;~ ExitApp
	;**************************************************	
	if(Delay&&!Delay:=!Delay)
		SetTimer, Timer, 500   ;<<<<------change to 5000
	else if(!Mod(x,6)&&Delay:=1)
		SetTimer, Timer, 3000	;<<<<------change to 30000
	
	ToolTip, % x "`n" delay   ;Remove this.
	return

esc::exitapp 
Thanks a lot! It is amazing!!!
soheill0098
Posts: 69
Joined: 01 Sep 2020, 12:28

Re: Sending the most number of comments on instagram contest !

27 Jul 2021, 17:52

@Hellbent I just want to say thank you again! A day after I used your script the admin of that channel said persons who added more than 440 comments will win. And number of mine was 485 and I got the prize! I could add more if instagram didn't ban me! :)
User avatar
boiler
Posts: 16903
Joined: 21 Dec 2014, 02:44

Re: Sending the most number of comments on instagram contest !

03 May 2022, 06:29

I would recommend against it. Note that OP mentioned he was banned. This kind of script is on the edge of those not being allowed on the forum. It seems to fall into the nuisance category, although in this case, the admin invited hundreds of comments, though apparently not from a bot.
User avatar
FanaticGuru
Posts: 1906
Joined: 30 Sep 2013, 22:25

Re: Sending the most number of comments on instagram contest !

03 May 2022, 14:03

boiler wrote:
03 May 2022, 06:29
I would recommend against it. Note that OP mentioned he was banned. This kind of script is on the edge of those not being allowed on the forum. It seems to fall into the nuisance category, although in this case, the admin invited hundreds of comments, though apparently not from a bot.

Unless the video lecture prize is about the proliferation of bots on social media, that was a very poorly designed contest.

FG
Hotkey Help - Help Dialog for Currently Running AHK Scripts
AHK Startup - Consolidate Multiply AHK Scripts with one Tray Icon
Hotstring Manager - Create and Manage Hotstrings
[Class] WinHook - Create Window Shell Hooks and Window Event Hooks

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: haomingchen1998, mikeyww, mmflume, OrangeCat, roysubs, scriptor2016, ShatterCoder and 98 guests