Jump to content

Recommended Posts

Is the bot crashing? Do you get a "Bot has stopped working" message?

First, do this:

 

UNINSTALL ALL VERSIONS OF C++ and .NET from Control Panel!  Reboot!

 

Then download and install fresh copies of C++ 2010 and .NET 4.5+ AND OpenCV library. (ONLY install these 3, all required by MBR) 

 

My advice:  Let other people be software testers for Microsoft!

It is a known bug that Windows update often corrupts installation information pointing to these libraries when more than one version is installed.

NEVER use windows update for .NET or C++ library updates!  Always remove existing version, and use stand alone installer found on MS site to update your PC.

AND - Never, Never -- rush to install newest/latest .NET or C++ library unless a program you use tells you to update the library.  Way too often MS programmers make incorrect assumptions that a new version can replace the old version; but the new library breaks existing programs.  It takes several months before world outside convinces MS of these mistakes, and several more for MS to fix it.

 

If this doesn't help, then:

Run the Bot from AutoIT Editor :

How?

1 - Download and install AutoIt. When installing, be sure to select the x86 option if available.

1.1 - SciTe needs Admin access. Navigate to the location you installed AutoIt in (usually C:\Program Files (x86)\AutoIt3), then navigate to the SciTe folder. Right click the file named SciTE.exe and click Properties. Navigate to the Compatibility tab and select "Run this program as an administrator". Select OK.

Xubb6zP.png

2 - Go to your bot folder. Right click MyBot.run.au3 and click Edit Script. The file will be opened in the editor.

3- Go to the editor window.

4 - Press the  F5 key to run the Bot.

5 - Don't close editor (th console will give us some information)

Run the bot normally until the error occurs again. While running the bot, the editor window should look like this.

mpo1bus.png

When the bot crashes again, find the white part of the editor window. The error message is displayed there.

Copy/paste the entire error message into your thread.

example :

20jPsOg.png

Edited by zengzeng
  • Upvote 1
Link to post
Share on other sites
  • Replies 69
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Is the bot crashing? Do you get a "Bot has stopped working" message? First, do this:   UNINSTALL ALL VERSIONS OF C++ a

  humm, think i found-it      Scite Las Log: bitmapName motar_8_a bitmapName mo

Most hard bot crash with DLL related errors in console are caused by failing to follow guidelines in this thread:    

Posted Images

 

humm, think i found-it 

 

 

Scite Las Log:
bitmapName motar_8_a
bitmapName motar_7_a
bitmapName motar_8
bitmapName motar_7

Unhandled Exception: OutOfMemoryException.

 

 

 

humm coud it be this

Func CaptureObjectswithInfo($POSARR, $ImageInfo)
    local $EditedImage
    ;$EditedImage = $hBitmap
    $EditedImage =  _GDIPlus_BitmapCreateFromHBITMAP($hHBitmap)

    Local $hGraphic = _GDIPlus_ImageGetGraphicsContext($EditedImage)
    Local $hPen = _GDIPlus_PenCreate(0xFFFF0000, 2) ;create a pencil Color FF0000/RED
    _GDIPlus_GraphicsDrawString($hGraphic, $ImageInfo, 200, 63,"Arial",15)

    $expRet = StringSplit($POSARR, "|", 2)
    for $p=1 to ubound($expRet) -2 step 2
        $INFx = Int($expRet[$p])
        $INFy = Int($expRet[$p+1])
        _GDIPlus_GraphicsDrawRect($hGraphic, $INFx - 5, $INFy - 5, 10, 10, $hPen)
    Next

    Local $Date = @YEAR & "-" & @MON & "-" & @MDAY
    Local $Time = @HOUR & "." & @MIN & "." & @SEC
    Local $filename = string("OBJECTDetected_" & $Date & "_" & $Time & "_" & $ImageInfo & ".png")

    If $debugBuildingPos = 1 and $debugsetlog = 1 Then Setlog(" _GDIPlus_ImageSaveToFile", $COLOR_PURPLE)
    _GDIPlus_ImageSaveToFile($EditedImage, $dirTemp & $filename)
    _GDIPlus_PenDispose($hPen)
    _GDIPlus_GraphicsDispose($hGraphic)
    _GDIPlus_BitmapDispose($EditedImage)   <<<< I WAS MISSING THIS LAST LINE

 

WILL IT ALSO NEED _WinAPI_DeleteObject($EditedImage) ?????


EndFunc   ;==>CaptureTHwithInfo

 

 

 

 

  • Upvote 1
Link to post
Share on other sites

_GDIPlus_GraphicsDispose($hGraphic)

_GDIPlus_BitmapDispose($EditedImage)

 

_WinAPI_DeleteObject($XXXXXX)  is not necessary it is inside the  _CaptureRegion() If you use this , Attention if you use the :CaptureRegion2() it is necessary

EXACTLY  ;)

Link to post
Share on other sites

$hHBitmap ?? this is from Capture 2? or from Load image ?

 

_WinAPI_DeleteObject($hHBitmap)

 

example :

 

Func _GUICtrlPic_Create($sFilename, $iLeft, $iTop, $iWidth = -1, $iHeight = -1, $iStyle = -1, $iExStyle = -1)
    _GDIPlus_Startup()
    Local $idPic = GUICtrlCreatePic("", $iLeft, $iTop, $iWidth, $iHeight, $iStyle, $iExStyle)
    Local $hBitmap = _GDIPlus_BitmapCreateFromFile($sFilename)
    If $iWidth = -1 Then $iWidth = _GDIPlus_ImageGetWidth($hBitmap)
    If $iHeight = -1 Then $iHeight = _GDIPlus_ImageGetHeight($hBitmap)
    Local $hBitmap_Resized = _GDIPlus_BitmapCreateFromScan0($iWidth, $iHeight)
    Local $hBMP_Ctxt = _GDIPlus_ImageGetGraphicsContext($hBitmap_Resized)
    _GDIPlus_GraphicsSetInterpolationMode($hBMP_Ctxt, $GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC)
    _GDIPlus_GraphicsDrawImageRect($hBMP_Ctxt, $hBitmap, 0, 0, $iWidth, $iHeight)
    Local $hHBitmap = _GDIPlus_BitmapCreateDIBFromBitmap($hBitmap_Resized)
    Local $hPrevImage = GUICtrlSendMsg($idPic, $STM_SETIMAGE, 0, $hHBitmap) ; $STM_SETIMAGE = 0x0172
    _WinAPI_DeleteObject($hPrevImage); Delete Prev image if any
    _GDIPlus_BitmapDispose($hBitmap)
    _GDIPlus_BitmapDispose($hBitmap_Resized)
    _GDIPlus_GraphicsDispose($hBMP_Ctxt)
    _WinAPI_DeleteObject($hHBitmap)
    _GDIPlus_Shutdown()

    Return $idPic
EndFunc   ;==>_GUICtrlPic_Create

 

Link to post
Share on other sites

well, I tried my best. Reinstalling my .net framework / microsoft visuals c++ 2010, reinstalling bluestacks (I tried bluestacks 2 and BlueStacks Rooted 0.10.7.5601), tried different version of MyBot-5.0.2 / MyBot-5.1.2 / MyBot-5.1.3 / MyBot-5.1.4
Still my Bot is Not Responding.. ;(

Edited by denis0826
Link to post
Share on other sites
  • rbrt locked this topic
Guest
This topic is now closed to further replies.

×
×
  • Create New...