From example it speeds almost 9x Whats going up? My computer is slow so don't be shock times D I dont know why, but this UDF dont speed up taking pixel colours I make tests on area about 280x220. I'm working on correcting the accuracy right now, but I do have a perfectly functional proof of concept that on any given day. I'm just waiting on a video camera so I can record this thing in action.
I'm going to try this with DJ Max Fever and DJ Max Clazziquai Edition and see if I can get better results with those.ĮDIT: Actually I found out where my bottleneck was, and I've since corrected it. It's just a proof of concept, but I still wanted to also ask OP, is there any way we could make this capture method faster? It only seems to miss the notes because of the small small section I have to target in order to not get false-hits because of flashy stuff.
It's getting a lot of C grades on the game by itself, Bs when it's lucky, gotten an A once or twice, and a lot of Ds. It requires I have the game run the notes down the screen at 3x normal speed, but it's working. I'm capturing a small region where there's less clutter from flashing stuff in the display, so I can spot the notes and hit them.
#REMOTEJOYLITE VER0.19 PSP#
I'm running RemoteJoyLite v0.19 on my PSP and computer, so I can pull a live view of the screen to the PC.
#REMOTEJOYLITE VER0.19 PORTABLE#
I wrote something like that for DJ Max Portable 2 on the PSP. =]]] I could write it pretty easily but my computer can't run the game If somebody were to get me the pixel coords and hex colors of the note however, I could write the routines petty easily/quickly.Įdit: I would also need what keys to send to for the frets and strum, etc. Somebody needs to make a Guitar Hero bot with this. #include #include #include Local $hDll, $vDC, $vRegion, $aPos, $sColor, $colRGB $hDll = DllOpen ( "gdi32.dll" ) $vDC = _WinAPI_CreateCompatibleDC ( 0 ) $vRegion = _ScreenCapture_Capture ( "", 0, 0, ,, False ) _WinAPI_SelectObject ( $vDC, $vRegion ) click left mouse button to exit While Not _IsPressed ( 0x01 ) $aPos = _PixelGetColor _MouseGetPos ( ) $sColor = DllCall ( $hDll, "int", "GetPixel", "int", $vDC, "int", $aPos, "int", $aPos ) Added next line for RGB display $colRGB = "0x" & StringRegExpReplace ( Hex ( $sColor, 6 ), "(.)", "\3\2\1" ) ToolTip ( "The color under your mouse is: " & $colRGB, $aPos + 3, $aPos + 3, "_PixelGetColor_GetPixel return", $hDll ) WEnd _WinAPI_DeleteObject ( $vRegion ) _WinAPI_ReleaseDC ( $vDC, $hDll ) DllClose ( $hDll ) Func _PixelGetColor _MouseGetPos ( ) Return MouseGetPos ( ) EndFunc =>_PixelGetColor_MouseGetPos Here is a working version of the example first post.