Medium difficulty task.
Either have to use the clipboard to transfer the data, or use window messages.
I believe window messages would be the best solution, as it will not interrupt anything of the user, and wont rely on the clipboard issues you may run into (clipboard times out every now and then).
I don't know the relevant code for Visual Basic, but in ahk its
Code:
PostMessage, 0x8888, , %MouseCoords%, , ahk_id %CurWinHwnd%
And in the ahk script you would do
Code:
OnMessage(0x8888, "UnPause")
UnPause(wParam, lParam, msg, hwnd)
{
MsgBox % "hi"
}
Lookup OnMessage() in autohotkey help files.