pingpong24 Posted January 17, 2006 Share Posted January 17, 2006 if you need the full source code please click on my signature else, you can use the code below to solove my problem. i basically want it to go back to certin line in the code and redo it.. i.e. go back to func ocr() and excute it.. fun ocr ($x,$y,$bx,$by, $qfz) ............ ........ next If StringLen($result) < $qfz Or StringLen($result) > $qfz Then ;re scan the specified area call(ocr) endif NumCR Super Fast EASY NUMBER OCR, easiest and the fastest AUTOIT OCR released on this forum Link to comment Share on other sites More sharing options...
Valuater Posted January 17, 2006 Share Posted January 17, 2006 maybe this small example could help #include<GUIConstants.au3> $var = "Just Started" domyfunction() GUICreate("MY GUI") $btn = GUICtrlCreateButton("test", 150, 150, 50, 20) GUISetState() $var ="Middle of Program" While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE then $var ="Now Leaving Program" domyfunction() Exit EndIf If $msg = $btn Then domyfunction() WEnd ; --------------- Functions ------------------- Func domyfunction() MsgBox(64, "Message", $var & " ") EndFunc 8) Link to comment Share on other sites More sharing options...
pingpong24 Posted January 17, 2006 Author Share Posted January 17, 2006 thanks for that. NumCR Super Fast EASY NUMBER OCR, easiest and the fastest AUTOIT OCR released on this forum 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