|
You last visited: Today at 06:58
Advertisement
Sending virtual keys
Discussion on Sending virtual keys within the AutoIt forum part of the Coders Den category.
07/16/2012, 20:46
|
#1
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
|
Sending virtual keys
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
|
#2
|
elite*gold: 0
Join Date: Jul 2011
Posts: 796
Received Thanks: 434
|
yeah i got that problem too.. is it possible to hook or inject autoit script in a specified program?
|
|
|
07/17/2012, 12:55
|
#3
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
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
|
#4
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
|
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
|
#5
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
CreateRemoteThread is a part of the winapis...
check msdn for details, and use it with DllCall.
|
|
|
07/17/2012, 13:48
|
#6
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
|
im afraid i dont have that in my help file ;O
ah gocha ! but um how do i translate it to autoit now
|
|
|
07/17/2012, 15:57
|
#7
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by fear-x
im afraid i dont have that in my help file ;O
ah gocha ! but um how do i translate it to autoit now 
|
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
|
#8
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
|
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
|
#9
|
elite*gold: 72
Join Date: Mar 2009
Posts: 265
Received Thanks: 72
|
Thats what controlsend already does for you. Add a and run the code. If it doesnt work, post more details.
|
|
|
07/17/2012, 19:15
|
#10
|
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
|
ContorlSend wont work as stated in the first post. unless you know a weird way of using it
|
|
|
Similar Threads
|
Sending Keys To Grand Chase
05/22/2011 - Grand Chase - 2 Replies
I'm playing around with creating scripts, bots, etc with simple commands for GC. All i've been trying to do is send simple clicks, keys and other stuff to Grand Chase window, but although the script is working, Grand Chase does not seem to respond or accept the keys. For example, the bot will make Grand Chase the active window, enter several clicks and keys, and nothing happens. Anyone explain this to me please? Thanks.
|
swsro2 question regarding srokey sending keys
06/07/2010 - SRO Private Server - 10 Replies
ok i bought 2 keys from srokey, and i haven't recieved any keys in the mail i dont know what to do i want to play..
|
All times are GMT +1. The time now is 06:59.
|
|