![]() I respect your position here thank you for the work you put in here. I don't really care about my thread here any more since another forum solved it for me, but the moderation displayed here is bugging me, and I would like to have a conversation about it. I would like for other mods/admins to get involved. I understand this moderator is your own, and other moderators/admins are likely to side with him based on his position. I am quite serious that I would like this issue resolved. But another thing I love is open communication. Rules are rules, and if you point to a rule that says "usernames that start with an 'a' may not post new threads, then so be it. You replied here saying that you would not take another reply from me, and still not offering an explanation. ![]() I made my concerns known on this thread, including that you gave no reason for closure of the latter thread. You closed that thread, told me it was 'sad' (or something to that effect), and told me to not PM you this time. I then created another thread about solving the same issue, except by a different means (first thread via image search, new one via ADB and shell). You allowed me to post a thread still on android emulation, but this time not a game. I later specified it would be to automate a game. I opened a thread about a general question. Since you will not accept those from me, and since I must have my voice heard, I am forced to reply here. I feel like PM would be a more appropriate place for this conversation. _GDIPlus _Startup ( ) $hBitmap = _ScreenCapture _Capture ( "" ) grabs screenshot $hImage = _GDIPlus _BitmapCreateFromHBITMAP ( $hBitmap ) converts from bitmap to hBitmap $iX = _GDIPlus _ImageGetWidth ( $hImage ) just gets the size $iY = _GDIPlus _ImageGetHeight ( $hImage ) $hClone = _GDIPlus _BitmapCloneArea ( $hImage, 0, 0, $iX, $iY, $GDIP_PXF08INDEXED ) makes a copy and converts it, dumbs it down, i find this makes it easier for searching functions to find specific things this step may not be necessary but the $GDIP_ect has a few different settings that can be around with obviously the settings here would have to be the same as whatever bitmap your comparing it to in the image search function this is where youd use _ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance,$HBMP=0) Save bitmap to file ~ _GDIPlus_ImageSaveToFile($hClone, & "\GDIPlus_Image.bmp") Clean up resources _GDIPlus _ImageDispose ( $hClone ) _GDIPlus _ImageDispose ( $hImage ) _WinAPI _DeleteObject ( $hBitmap ) Shut down GDI+ library ~ & "\GDIPlus_Image.bmp") _GDIPlus _Shutdown ( ) Heres a quick example of how i have been using screen captures and how it works in general I'm not currently using the image search library but the updated version allows this. I would highly suggest using a screenshot and converting it to a hBitmap then searching the hBitmap in memory. Perhaps it's because I'm using two monitors? However, I don't believe that's really why. #include #include $AndroidPID = Run ( "C:\ProgramData\BlueStacksGameManager\BlueStacks.exe" ) Sleep ( 250 ) $AndroidHWND = WinGetHandle ( "" ) $AndroidPos = WinGetPos ( $AndroidHWND ) -> = X pos, = Y pos = Width = Height $x = 0 $y = 0 $found = _ImageSearchArea ( "FindMe.bmp", 1, $AndroidPos, $AndroidPos, $AndroidPos, $AndroidPos, $x, $y, 100 ) If $found = 1 Then MouseMove ( $x, $y, 10 ) EndIf MsgBox ( 0, '', $found ) -> Returns 0 MsgBox ( 0, '', $AndroidPos & & $AndroidPos & & $AndroidPos & & $AndroidPos ) -> Returns 0, 0, 1602, 950 My friends and I use it to keep track of our board games, who wins, what score, how their economy vs. The android application I am using is a 7 Wonders Scoring Card. To do that I'm trying to use ImageSearch from here: So, I need to find the image of the application within the bluestacks program then to click that image. This is my current problem, and I believe it will require an image search.Ĭlick on various tabs 'Players, military, money, wonder, etc.' This will also require an image search. Launch the 7 Wonders Scoring Sheet application from within bluestacks. ![]() I am trying to learn how to launch an application inside of Bluestacks, and android emulator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |