Register for your free account! | Forgot your password?

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

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

Advertisement



Not Sending

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2008
Posts: 16
Received Thanks: 0
Not Sending

Hi there, I am trying to Send or ControlSend to a program but it appears to be 'blocked'. Is there a way round this in Autoit?

The logic and syntax are fine as it works OK sending to Notepad.

Tearing my hair out
BlowFish is offline  
Old 11/25/2010, 15:28   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 542
Received Thanks: 112
#RequireAdmin ??
maxi39 is offline  
Old 11/25/2010, 15:48   #3
 
elite*gold: 0
Join Date: Apr 2008
Posts: 16
Received Thanks: 0
Quote:
Originally Posted by maxi39 View Post
#RequireAdmin ??
Good point! I can now send keys and they are arriving at the control in the game but it seems to lock everything up except the keys being sent. I wonder if it has some sort of protection built in. Any other ideas gratefully received.
BlowFish is offline  
Old 11/25/2010, 16:54   #4
 
elite*gold: 0
Join Date: Apr 2008
Posts: 16
Received Thanks: 0
It's strange if you run as admin and do pretty much anything with the window (including WinActivate it) it seems to stop updating the screen.
BlowFish is offline  
Old 11/25/2010, 17:09   #5
 
elite*gold: 0
Join Date: May 2010
Posts: 149
Received Thanks: 45
AIT is not good for Bots/Sending to Game Windows.
Write your Progg in C++
The most Games are protect for this and AIT isnt powerful enough
}{exer is offline  
Old 11/25/2010, 17:20   #6
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
Quote:
Originally Posted by }{exer View Post
AIT is not good for Bots/Sending to Game Windows.
Write your Progg in C++
The most Games are protect for this and AIT isnt powerful enough
so how do you do it in c++?
guess u've found a secred, unknown, ultimate function to send keys?

normally send should be the most secure method to send keys...
if autoit's send fails, sendmessage, postmessage, etc will fail even more. in that case it have to be realized with codecaves in the target process.

and btw its autoit not ait!
lolkop is offline  
Old 11/25/2010, 17:31   #7
 
elite*gold: 0
Join Date: May 2010
Posts: 149
Received Thanks: 45
ahhhhhh autoit not ait *laugh
heavy mistake ^^ LoL
now iam cursed

... and ait will be blocked at certain Windows cause using a Shield.
Cpp got free way at all !!!
}{exer is offline  
Old 11/25/2010, 17:34   #8
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
Quote:
Originally Posted by }{exer View Post
ahhhhhh autoit not ait *laugh
heavy mistake ^^ LoL
now iam cursed

... and ait will be blocked at certain Windows cause using a Shield.
Cpp got free way at all !!!
...
if you don't know what u're talking about, you should just ****...
lolkop is offline  
Old 11/26/2010, 09:27   #9
 
elite*gold: 0
Join Date: Apr 2008
Posts: 16
Received Thanks: 0
I managed to get things working sort of. If I start the AIT executable (as admin) before running the game it works. It's odd as it doesn't seem to be explicitly trying to block stuff.

The attraction of AIT over 'real programming' is that it is really quick and easy to knock up something basic.

As a side question how does logitech's stuff compare? Is that executed at the keyboard driver level?
BlowFish is offline  
Old 11/26/2010, 13:15   #10
 
PenGuin :O's Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
Quote:
Originally Posted by BlowFish View Post
IAs a side question how does logitech's stuff compare? Is that executed at the keyboard driver level?
I guess, yes cause there's no other solution..
PenGuin :O is offline  
Old 11/27/2010, 09:48   #11
 
elite*gold: 0
Join Date: Nov 2010
Posts: 120
Received Thanks: 89
hmmm you can try KeySend as well
PHP Code:
send single keyboard event to non active window
event presseddownup
kdown key down delay
notesupports only lower case keys NUMxFxsome special keys and @
Func KeySend($inkey$evt ="pressed"$kdown 50)
    
$user32 DllOpen("user32.dll")
    if 
$user32 = -1 Then
        ConsoleWrite
("KeySend: cannot open user32.dll")
        Exit
    EndIf
        
    ; 
handling for special keys
    
Switch StringUpper($inkey)
    Case 
"@"
        
$skey 0x40
        $lparam 
0x00100001
        DllCall
($user32"int""PostMessage""hwnd"$hwnd"int"$WM_KEYDOWN"int"0x71"int"$lparam)
        
DllCall($user32"int""PostMessage""hwnd"$hwnd"int"$WM_CHAR"int"$skey"int"$lparam)
        
Sleep(20)
        
DllCall($user32"int""PostMessage""hwnd"$hwnd"int"$WM_KEYUP"int"0x71"int"BitOR($lparam0xC0000000))        
    Case 
"F1""F2""F3""F4""F5""F6""F7""F8""F9""F10""F11""F12"
        
$skey 0x6f Int(StringMid($inkey2)) 
        
ContinueCase
    
Case "NUM0""NUM1""NUM2""NUM3""NUM4""NUM5""NUM6""NUM7""NUM8" "NUM9"
        
if StringUpper(StringLeft($inkey3)) = "NUM" Then
            $skey 
0x60 Int(StringMid($inkey4)) 
        EndIf
        
ContinueCase
    
Case "RETURN""SPACE""TAB""BACK""END""HOME""SNAPSHOT""INSERT""DELETE""LEFT""RIGHT""UP""DOWN"
        
Switch StringUpper($inkey)
        Case 
"RETURN"
            
$skey 0x0D
        
Case "SPACE"
            
$skey 0x20
        
Case "TAB"
            
$skey 0x09
        
Case "BACK"
            
$skey 0x08
        
Case "END"
            
$skey 0x23
        
Case "HOME"
            
$skey 0x24
        
Case "SNAPSHOT"
            
$skey 0x2c
        
Case "INSERT"
            
$skey 0x2d
        
Case "DELETE"
            
$skey 0x2e
        
Case "LEFT"
            
$skey 0x25
        
Case "RIGHT"
            
$skey 0x27
        
Case "UP"
            
$skey 0x26
        
Case "DOWN"
            
$skey 0x28
        
EndSwitch
        
$ret DllCall($user32"int""MapVirtualKey""int"$skey"int"0)
        
$lparam BitShift($ret[0], -16)
        
$lparam BitOr($lparam1)
        
DllCall($user32"int""PostMessage""hwnd"$hwnd"int"$WM_KEYDOWN"int"$skey"int"$lparam)
        
Sleep($kdown)
        
DllCall($user32"int""PostMessage""hwnd"$hwnd"int"$WM_KEYUP"int"$skey"int",   BitOR($lparam0xC0000000))
    Case Else ; default 
lower case key handling
        $key 
DllCall($user32"int""VkKeyScan""int"Asc(StringLower($inkey)))
        
$skey $key[0]        
        
$ret DllCall($user32"int""MapVirtualKey""int"$skey"int"0)
        
$lparam BitShift($ret[0], -16)
        
$lparam BitOr($lparam1)
        
Select
        
Case $evt "pressed"
            
DllCall($user32"int""PostMessage""hwnd"$hwnd"int"$WM_KEYDOWN"int"$skey"int"$lparam)
            
Sleep($kdown)
            
DllCall($user32"int""PostMessage""hwnd"$hwnd"int"$WM_KEYUP"int"$skey"int",   BitOR($lparam0xC0000000))
        Case 
$evt "down"
            
DllCall($user32"int""PostMessage""hwnd"$hwnd"int"$WM_KEYDOWN"int"$skey"int"$lparam)
        Case 
$evt "up"
            
DllCall($user32"int""PostMessage""hwnd"$hwnd"int"$WM_KEYUP"int"$skey"int",   BitOR($lparam0xC0000000))
        
EndSelect        
    
EndSwitch

    
DllClose($user32)
EndFunc 
Kamyshin is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Sending to client
04/20/2009 - RO Guides & Templates - 2 Replies
So i'v been trying to figure this out on my own, but i can't find any information about this. What i want to do is hook RPE into a process but instead of sending a packet to the server this process is connected to i want to send a packet to the client. So i can trick the client into activating a certain something which is actually doesn't have. And seeing how there is ZERO (function reference) documentation on howto write custom filters i just posted this :P All i need to do is send...
sending packet at WPe
07/18/2008 - Dekaron - 10 Replies
after sending some packet at WPE my connection to 2moons always got disconnect the moment I send the packet can someone help me regargding this
Sending a key to Sro_client
07/17/2008 - Silkroad Online - 0 Replies
Hello i'm gona make another weapon switcher/buffer does anyone know how to send a key (F1-4; 0-9) to minimized or hidden sro_client? i just need the apicallsa nd params...i just cant get it i think it has to be postmessage/sendmessage but the client doesnt react thx in advance
sending
02/17/2008 - Say Hello - 1 Replies
Hello!
sending a packet
11/26/2007 - Conquer Online 2 - 3 Replies
I've captured a packet that I'd like to re-send to do a specific function, but I don't know how to do that. I know it involves 4 encryption keys and a packet id number. My best guess is to send the packet to a proxy that hopefully will forward it to the server properly. Anyone want to offer some tips on what to use?



All times are GMT +1. The time now is 03:58.


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.