Sending virtual keys

07/16/2012 20:46 fear-x#1
i know that controlSend does this but in my case ControlSend doesnt work because it gets blocked.

so i want to ask if anybody knows any other solution to this on how to send a virtual key to a game and while sending it allowing me to do other stuf like text to my friends ingame/msgrs.
07/17/2012 03:10 genesisVI#2
yeah i got that problem too.. is it possible to hook or inject autoit script in a specified program?
07/17/2012 12:55 lolkop#3
SendMessage or PostMessage might be helpfull. if non of them works, you could try to use CreateRemoteThread to run the specific function in the target process itself. if CreateRemoteThread is blocked too, you have to find a way, to turn of the blocking code.
07/17/2012 13:33 fear-x#4
the RemoteThread sounds nice im trying to find any UDF of it but can you tell me if there is or there isnt any ?
07/17/2012 13:45 lolkop#5
CreateRemoteThread is a part of the winapis...
check msdn for details, and use it with DllCall.
07/17/2012 13:48 fear-x#6
im afraid i dont have that in my help file ;O

ah gocha ! but um how do i translate it to autoit now :D
07/17/2012 15:57 lolkop#7
Quote:
Originally Posted by fear-x View Post
im afraid i dont have that in my help file ;O

ah gocha ! but um how do i translate it to autoit now :D
there's nothing to translate o0

as allready said, all you have to do is use the DLLCall function, to call the dll function.
07/17/2012 17:19 fear-x#8
hmm but how do i use that?
Code:
HANDLE WINAPI CreateRemoteThread(
  __in   HANDLE hProcess,
  __in   LPSECURITY_ATTRIBUTES lpThreadAttributes,
  __in   SIZE_T dwStackSize,
  __in   LPTHREAD_START_ROUTINE lpStartAddress,
  __in   LPVOID lpParameter,
  __in   DWORD dwCreationFlags,
  __out  LPDWORD lpThreadId
);
dllcall("user32.dll" ....


lol i dont ever use dllcall ://
07/17/2012 17:39 Netzgeist#9
Thats what controlsend already does for you. Add a
Code:
#RequireAdmin
and run the code. If it doesnt work, post more details.
07/17/2012 19:15 fear-x#10
ContorlSend wont work as stated in the first post. unless you know a weird way of using it