MasonMill Posted October 16, 2009 Posted October 16, 2009 Hi Guys, I play a game online that has chat boxes with tabs on top. So when someone sends you a message a red tab pops up and you click on it to see the message. I am trying to write a script that will click on that red tab when it pops up. I use pixelsearch all the time, but I'm not familiar with a command that will click on a certain color. Here is what I have, any suggestions? WinWaitActive("Darkfall Online") While 1 PrivateMessage() sleep(10) WEnd Func PrivateMessage() $GM = PixelSearch(517, 829, 1038, 851, 0xB61D1D, 250); searches tab area If $GM = 1 Then sleep(500) send("{ESCAPE}");opens menu sleep(1000) MouseClick("left", 530, 990, 1,1);clicks on field to type response sleep(1000) send("Im here") EndIf EndFunc But this doesnt click on the tab that just popped up =(
FuryCell Posted October 16, 2009 Posted October 16, 2009 Pipe the cordinates from the search into mouseclick. HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now