Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 06:58

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Sending virtual keys

Discussion on Sending virtual keys within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #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.
fear-x is offline  
Old 07/17/2012, 03:10   #2
 
genesisVI's Avatar
 
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?
genesisVI is offline  
Old 07/17/2012, 12:55   #3
 
lolkop's Avatar
 
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.
lolkop is offline  
Old 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 ?
fear-x is offline  
Old 07/17/2012, 13:45   #5
 
lolkop's Avatar
 
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.
lolkop is offline  
Old 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
fear-x is offline  
Old 07/17/2012, 15:57   #7
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
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
there's nothing to translate o0

as allready said, all you have to do is use the DLLCall function, to call the dll function.
lolkop is offline  
Thanks
1 User
Old 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 ://
fear-x is offline  
Old 07/17/2012, 17:39   #9
 
Netzgeist's Avatar
 
elite*gold: 72
Join Date: Mar 2009
Posts: 265
Received Thanks: 72
Thats what controlsend already does for you. Add a
Code:
#RequireAdmin
and run the code. If it doesnt work, post more details.
Netzgeist is offline  
Old 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
fear-x is offline  
Reply


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.