UEAsLibrary mouse input not working as app is never active

this is other applications , i build ue as a dll file , but i dont know how to use api UELibrary_Init open the ue project , can you give me a demo?