Still getting an error. This is my current opening code
Getting the following error:
Code:
Imports System.Runtime.InteropServices
Public Class Form1
Public Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy _
As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Const MOUSELEFTDOWN = &H2 ' left button down
Private Const MOUSELEFTUP = &H4 ' left button up
Code:
Error 1 'Declare Ansi Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (vKey As Long) As Integer' has multiple definitions with identical signatures.

