jpres Posted March 2, 2009 Share Posted March 2, 2009 (edited) Edit: Figured IT out, TY GUYS! REALLY APPRECIATE IT!Well i'm trying to get autoit to read from a window that it maximized on the screen and uses direct X.I was simply using PixelGetColor(X,Y) at the required X and Y values for me, but the problem I noticed, was that it just kept reading straight through the game that was open and went to the main desktop//any windows open on screen while game was minimized.Any way to get it to read from the game itself? Edited March 2, 2009 by jpres Link to comment Share on other sites More sharing options...
AwAke Posted March 2, 2009 Share Posted March 2, 2009 (edited) While WinActive? Edited March 2, 2009 by AwAke Link to comment Share on other sites More sharing options...
jpres Posted March 2, 2009 Author Share Posted March 2, 2009 While WinActive?Ty I'll try this, sorry, but I am very new to this, really appreciate the help though. Link to comment Share on other sites More sharing options...
muncherw Posted March 2, 2009 Share Posted March 2, 2009 Got some code we could look at? So we can see what you are trying and maybe pinpoint where it's failing? Other People's Stuff:Andy Flesner's AutoIt v3: Your Quick Guide[topic="34302"]Locodarwin's ExcelCom_UDF[/topic][topic="61090"]MrCreatorR's Opera Library[/topic] Link to comment Share on other sites More sharing options...
AwAke Posted March 2, 2009 Share Posted March 2, 2009 Dont worry =] and anytime. Link to comment Share on other sites More sharing options...
jpres Posted March 2, 2009 Author Share Posted March 2, 2009 Func GetColor() While WinActive ("World of Warcraft") $color = PixelGetColor(260,80) WEnd sleep(100) MsgBox(0,"Color","The hex color is" & $color) EndFunc That's what i'm using to try any get it, but I don't think it's working. Link to comment Share on other sites More sharing options...
muncherw Posted March 2, 2009 Share Posted March 2, 2009 Func GetColor() While WinActive ("World of Warcraft") $color = PixelGetColor(260,80) WEnd sleep(100) MsgBox(0,"Color","The hex color is" & $color) EndFunc That's what i'm using to try any get it, but I don't think it's working. You have created a function but you have never actually called it. Above everything you need to call GetColor(). GetColor() Func GetColor() While WinActive ("World of Warcraft") $color = PixelGetColor(260,80) WEnd sleep(100) MsgBox(0,"Color","The hex color is" & $color) EndFunc Other People's Stuff:Andy Flesner's AutoIt v3: Your Quick Guide[topic="34302"]Locodarwin's ExcelCom_UDF[/topic][topic="61090"]MrCreatorR's Opera Library[/topic] Link to comment Share on other sites More sharing options...
jpres Posted March 2, 2009 Author Share Posted March 2, 2009 (edited) Edit: Figured it out, ty guys! Edited March 2, 2009 by jpres Link to comment Share on other sites More sharing options...
muncherw Posted March 2, 2009 Share Posted March 2, 2009 Edit: Figured it out, ty guys!Yeah with the Hotkey then it doesn't matter. Was it a PixelCoordMode issue? Other People's Stuff:Andy Flesner's AutoIt v3: Your Quick Guide[topic="34302"]Locodarwin's ExcelCom_UDF[/topic][topic="61090"]MrCreatorR's Opera Library[/topic] Link to comment Share on other sites More sharing options...
jpres Posted March 2, 2009 Author Share Posted March 2, 2009 Yeah with the Hotkey then it doesn't matter. Was it a PixelCoordMode issue?No, I forgot to put the game in windowed mode, so it was messing everything up. Link to comment Share on other sites More sharing options...
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