NS5 Posted November 13, 2008 Posted November 13, 2008 Hi I'm having problems whenever I include ScreenCapture.au3 on my code, AutoIT is saying there is an error on _SendMessage "SendMessage() already defined." what is the problem on it? Anyone wanna help me out to figure this out? Thanks looking forward on everyones help.
rasim Posted November 13, 2008 Posted November 13, 2008 NS5Welcome!Please post a small example, which represent your problem
NS5 Posted November 13, 2008 Author Posted November 13, 2008 I'm using OCR so I needed the ScreenCapture.au3 include, but it has problem after I added this #include file. Func _SendMessage($X, $Y, $MSG) If $MSG <> $LASTMESSAGE Then $MSG = StringReplace($MSG, "@clickNCall", $V) ClipPut($MSG) MouseClick("left", $X, $Y, 1, 1) Send("^v{enter}") $LASTMESSAGE = $MSG EndIf EndFunc
Malkey Posted November 13, 2008 Posted November 13, 2008 I'm using OCR so I needed the ScreenCapture.au3 include, but it has problem after I added this #include file.Func _SendMessage($X, $Y, $MSG) If $MSG <> $LASTMESSAGE Then $MSG = StringReplace($MSG, "@clickNCall", $V) ClipPut($MSG) MouseClick("left", $X, $Y, 1, 1) Send("^v{enter}") $LASTMESSAGE = $MSG EndIf EndFuncThe function _SendMessage() is already a defined function in AutoIt. Removing the preceding underscore in your function will give your function a different non-conflicting name. See if that makes a difference.
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