Help with Browser game window detection

Ask gaming related questions (AHK v1.1 and older)
RalleDK
Posts: 2
Joined: 06 Dec 2015, 20:31

Help with Browser game window detection

06 Dec 2015, 20:57

Heeeeey guys
I have been toying with AHK for about a month now. First to make a simpel script for timeclicker. it works like a charm.
I then tried to make a script to an online browser game. That game have a bot check, a simpel popup that ask
"are you a bot?" (No i am not!)
but i can't get AHK to detect it, and i think its because im a noob.!

i have tried looking for commands in help and on the forum, but i cant seem to find something that match my problem.
i trought the ifWinActivate would work, but the popup seems to mess with the coordinates. so i cant even just make my mouse click there once. or detect the popup window
I know the window will pop when i press the first ATTACK, or not at all.

so can anyone point me in the right direction or something like that. Any help at all would be greatly appreciated.
Ps, sry for bad gramma and spelling.

The only commands i know of is:
WinActivate
Sleep
Click
send
and ()

Ps.

Code: Select all

loop
{	
	{
		WinActivate, xxx - Internet Explorer
		Click 1010, 328 ;Attack!!!
		Sleep 1200
	}
	
	{
		ifwinactive Meddelelse fra webside
			click 250, 113 ;Bot 
		else
			WinActivate, xxx - Internet Explorer
		
		click 853, 367 ;Continue
		Click 852, 383 ;Continue
		click 851, 418 ;Continue
		click 856, 435 ;continue
		Click 851, 451 ;continue
		click 866, 474 ;continue
		Click 853, 501 ;continue 
		Sleep 2300
	}
}

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 46 guests