McDonalds Posted August 24, 2007 Share Posted August 24, 2007 (edited) Im trying to launch a wave file when the text, "Input this number:" appear in the window of a game, as the follow img:This is my source but .. im a bit lost :While 1 Sleep(10000) WEnd Func Start() While 1 If WinActive("gamewindow") = 0 then Do WinActivate("gamewindow") Until WinActive("gamewindow") EndIf If Not @error Then ;source EndIf WEnd EndFuncWhat can i do? thanks Edited August 24, 2007 by McDonalds Link to comment Share on other sites More sharing options...
Term!nX Posted August 24, 2007 Share Posted August 24, 2007 First I think it must be Do WinActivate("GameWindow") until WinActivate("GameWindow") == 1 ;you must check the returnvalue. You could make pixelsearches every 5 seconds. When the police windows appears always at the same position, you could check if a pixel in this area has white colour. Then you could answer the police random messages like "stupid?" "fu im playing" ... Link to comment Share on other sites More sharing options...
Gif Posted August 24, 2007 Share Posted August 24, 2007 First I think it must be Do WinActivate("GameWindow") until WinActivate("GameWindow") == 1 ;you must check the returnvalue.You could make pixelsearches every 5 seconds. When the police windows appears always at the same position, you could check if a pixel in this area has white colour. Then you could answer the police random messages like "stupid?" "fu im playing" ...yes and also check with Au3Info.exe if the text you want is visible Link to comment Share on other sites More sharing options...
McDonalds Posted August 24, 2007 Author Share Posted August 24, 2007 yes, the text is not visible, so, cant i do it true? so , how can be the pixel method? can you write me the lines? thanks ! I think the windows is always in the same place. 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