Jump to content

Lasaqus

Members
  • Posts

    8
  • Joined

  • Last visited

Lasaqus's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I don't want to get into any arguement here. I have read the terms of use and also the code of conduct and unable to find the link or information you provided. My case is http://www.wizards.com/Magic/TCG/Article.aspx?x=magic/magiconline/coc (Code of Conduct) http://wizards.custhelp.com/cgi-bin/wizards.cfg/php/enduser/std_adp.php?p_faqid=1358 (Terms of Service) Unless i haven't noticed there isn't anything stated with either ToC or CoC stating the non-use of bots These topics also discuss MTGO Bots and none where closed http://www.autoitscript.com/forum/index.php?showtopic=35496 http://www.autoitscript.com/forum/index.php?showtopic=75303 http://www.autoitscript.com/forum/index.php?showtopic=87084 (this is the post i got my code from to try and fix)
  2. Becuase i play MTGO alot and there are umpteen bots running for automated trades, also the various posts within MTGO's own forums for bot programs and such
  3. I did read that, since bots are allowed to run in MTGO i assumed that it would be ok to post this here. I also have read alot of post on MTGO bots and it was also from the Autoit forum i came across the code. Am i allowed to have the post or shall i delete it. ?
  4. I am working through a code for a MTGO Bot bit by bit to get it to work ( The code itself was initialy posted on here, saying people could use it so I hope its ok) I am currently at this part in the code Func GetPlayer() ;Get the player's Name Dim $miDoc, $Doc Dim $str Dim $oWord Dim $sArray[500] Dim $count Dim $miLayout ;take screenshot $sTargetImage = @DesktopDir & "\New Smartbot\Player_tgt.jpg" _ScreenCapture_Capture($sTargetImage, 37, 260, 291, 289, $fCursor = False);233 $miDoc = ObjCreate("MODI.Document") $miDocView = ObjCreate("MiDocViewer.MiDocView") $Viewer = GUICreate ( "Embedded MODI Viewer", 640, 580,(@DesktopWidth-640)/2, (@DesktopHeight-580)/2) GUICtrlCreatePic ( $sTargetImage, 320, 290, 0, 0) GUICtrlSetResizing ($Viewer, $GUI_DOCKAUTO) GUISetBkColor(0xFFFFFF) GUISetState () $MiDocView.Document = $miDoc $MiDocView.SetScale (1, 1) _ScreenCapture_Capture($sTargetImage, 250, 250, 750, 600, $fCursor = False) GUISetState (@SW_HIDE) $miDoc.Create(@DesktopDir & "\New Smartbot\Player_tgt.jpg") $miDoc.Ocr($miLANG_ENGLISH, True, False) $i = 0 For $oWord in $miDoc.Images(0).Layout.Words $str = $str & $oWord.text & @CrLf ConsoleWrite("FROM GETPLAYER: " & $oWord.text & @CrLf) $sArray [$i] = $oWord.text $i += 1 Next return $sArray [0] EndFunc Currently the bot is failing at GUISetBkColor(0xFFFFFF) GUISetState () $MiDocView.Document = $miDoc <--------------HERE $MiDocView.SetScale (1, 1) _ScreenCapture_Capture($sTargetImage, 250, 250, 750, 600, $fCursor = False) With this error C:\XXXX\XXXXX\XXXXX\ (New).au3 (296) : ==> Variable must be of type "Object".: $MiDocView.Document = $miDoc $MiDocView^ ERROR I am no expert at Autoit and i am just learning as i go but currently this problem has me stumped Hope i provided enough info, if not i can provide more
  5. Thanks for that i'll try it
  6. Hi I have seen lots of code been posted into a smaller box with scrolling within forum messages How do I do this so i dont fill up the whole screen with code ? I tried clicking the buttong which looks like <> (Insert Code Snippet) when creating a new message but nothing happened Cheers
  7. Wow so i am guessing no-one knows any solution to this or any workaround, that sorta puts me in a quandry
  8. Hi there I new here and I have tried searching the forums and the net for answer to this but have yet to find one. Im currently writing a script and need to use OCR and MODI. I am using Windows 7 64bit but i dont not have Microsoft Office (I also do not want Office since i dont need it for anything) I know Windows 7 has OCR built in and i have enabled that but I now need something that will work in place of MODI. I have read into Tesseract but this seems just to be another OCR program. The only other thing i have found was that it maybe possible to use the inbuilt OCR and Windows Picture and Fax Viewer if this is useable would haveone know what would replace the commands $miDoc = ObjCreate("MODI.Document") $miDocView = ObjCreate("MiDocViewer.MiDocView") Many thanks in advance for any assistance on this matter
×
×
  • Create New...