Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 16:00

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

Advertisement



controlsend with {a down}

Discussion on controlsend with {a down} within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
unknown661's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 314
Received Thanks: 160
controlsend with {a down}

hi i want du create a backgroundmode for my aion bot. but i cannot send a {a down} to my aion window.


Code:
ControlSend("AION Client", "", "", "{a down}")
did not work. can somebody help me pls?
unknown661 is offline  
Old 10/20/2009, 00:38   #2
 
N.E.O.'s Avatar
 
elite*gold: 45
Join Date: Nov 2008
Posts: 4,308
Received Thanks: 991
I think the ControlSend() orders, don't support up, down calls.
N.E.O. is offline  
Old 10/20/2009, 09:55   #3


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Quote:
Originally Posted by N.E.O. View Post
I think the ControlSend() orders, don't support up, down calls.
You're talking a lot of s***

AION has GameGuard or uses DirectInput. Think about it
buFFy! is offline  
Old 10/20/2009, 11:57   #4
 
unknown661's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 314
Received Thanks: 160
yes but gameguard is not on atm. a simple Send works und you can also send normal character with controlsend.
unknown661 is offline  
Old 10/20/2009, 14:31   #5


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Then AION is using DirectInput and is Covering SendMessage/Post Message.
That mean's for you, there is actually no way to control your Character via those Functions.

You could use Intern Function's or try editing Memories..

All i'm writing is guessed, cuz i don't have AION.
buFFy! is offline  
Old 10/20/2009, 15:38   #6
 
N.E.O.'s Avatar
 
elite*gold: 45
Join Date: Nov 2008
Posts: 4,308
Received Thanks: 991
Quote:
Originally Posted by u-coRe View Post
You're talking a lot of s***

AION has GameGuard or uses DirectInput. Think about it
Wieso geht das dann bei: Mozilla Firefox, Internet Explorer, Guild Wars, WoW, ICQ.. auch nicht?
N.E.O. is offline  
Old 10/20/2009, 16:01   #7


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Wenn du nen Unterschied siehst dann bist du besser als ich
Code:
Run("notepad.exe")
WinWaitActive("Unbenannt - Editor")
Sleep(500)

;//Send
MsgBox(0x40, "Send Test", "Send!")
Send("{a down}")
Sleep(5000)

;//
MsgBox(0x40, "Send Test", "ControlSend!")
ControlSend("Unbenannt - Editor", "", "", "{a down}")
Sleep(5000)
buFFy! is offline  
Old 10/20/2009, 17:14   #8
 
unknown661's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 314
Received Thanks: 160
Quote:
Originally Posted by u-coRe View Post
Wenn du nen Unterschied siehst dann bist du besser als ich
Code:
Run("notepad.exe")
WinWaitActive("Unbenannt - Editor")
Sleep(500)

;//Send
MsgBox(0x40, "Send Test", "Send!")
Send("{a down}")
Sleep(5000)

;//
MsgBox(0x40, "Send Test", "ControlSend!")
ControlSend("Unbenannt - Editor", "", "", "{a down}")
Sleep(5000)
ja
Code:
Run("notepad.exe")
WinWaitActive("Unbenannt - Editor")
Sleep(500)

MsgBox(0x40, "Send Test", "ControlSend!")
ControlSend("Unbenannt - Editor", "", "", "{a down}")
Sleep(5000)
geht nicht
unknown661 is offline  
Old 10/21/2009, 08:38   #9


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Oh gott..dann nimm halt ne andre Funktion digger.
Code:
; #FUNCTION# ====================================================================================================================
; Name...........: SimulKey
; Description ...: Simulate a Key-Send to a specified handle in the Background
; Author ........: Felix Lehmann alias u-coRe (elitepvpers)
; Modified.......: If you modify this Script, please enter your name here
; Remarks .......: None
; Related .......: -
; Parameters ....: $hwnd = Specified Window to Send to
; ...............: $key = Key or String to Send (If String $string have to be enabled [see $string])
; ...............: $string = Set this to 1 If your "$key" is a string
; ...............: $state = Set this to 'up' or 'down' if u want a special event | Default is press the Key 1 Time
; ...............: $delay = The delay to hold the key down
; Return Values .: 1 = Done | -1 = Couldn't load user32.dll
; Link ..........; http://www.elitepvpers.com/forum/guild-wars/
; ===============================================================================================================================
Func SimulKey($hWnd, $key, $string = 0, $state = 'skip', $delay = 10)
	;//Open DLL (user32)
	$user32 = DllOpen('user32.dll')
	If $user32 = -1 Then
		SetError(-1, 1, -1)
	EndIf

	;//Handle Special Keys
	Switch StringLower($key)
		Case 'enter'
			$WM_ENTER = 0x0d
			$dCall = DllCall($user32, 'int', "MapVirtualKey", 'int', $WM_ENTER, 'int', 0)
			$lParam = BitOR(BitShift($dCall[0], -16), 1)
		Case 'space'
			$WM_SPACE = 0x20
			$dCall = DllCall($user32, 'int', "MapVirtualKey", 'int', $WM_SPACE, 'int', 0)
			$lParam = BitOR(BitShift($dCall[0], -16), 1)
		Case 'tab'
			$WM_TAB = 0x09
			$dCall = DllCall($user32, 'int', "MapVirtualKey", 'int', $WM_TAB, 'int', 0)
			$lParam = BitOR(BitShift($dCall[0], -16), 1)
			;//Handle Standard Keys
		Case Else
			;//Stringmode 1
			If $string = 1 Then
				$split = StringSplit($key, "")
				For $ctn = 1 To $split[0]
					$split[$ctn] = Asc(StringLower($split[$ctn]))
				Next
				For $ctn = 1 To $split[0]
					$dCall = DllCall($user32, 'int', "VkKeyScan", 'int', $split[$ctn])
					$lParamAsc = DllCall($user32, 'int', "MapVirtualKey", 'int', $dCall[0], 'int', 0)
					$lParam = BitOR(BitShift($lParamAsc[0], -16), 1)
					$lUpParam = BitOR($lParam, 0xC0000000)
					DllCall($user32, 'int', "PostMessage", 'hwnd', $hWnd, 'int', $WM_KEYDOWN, 'int', $dCall[0], 'int', $lParam)
					Sleep($delay)
					DllCall($user32, 'int', "PostMessage", 'hwnd', $hWnd, 'int', $WM_KEYUP, 'int', $dCall[0], 'int', $lUpParam)
					Sleep(100)
				Next
				;//Stringmode 0
			ElseIf $string = 0 Then
				$key = Asc(StringLower($key))
				$dCall = DllCall($user32, 'int', "VkKeyScan", 'int', $key)
				$lParamAsc = DllCall($user32, 'int', "MapVirtualKey", 'int', $dCall[0], 'int', 0)
				$lParam = BitOR(BitShift($lParamAsc[0], -16), 1)
			EndIf
	EndSwitch
	$lUpParam = BitOR($lParam, 0xC0000000)
	If $string = 0 Then
		Switch StringLower($state)
			Case 'skip'
				DllCall($user32, 'int', "PostMessage", 'hwnd', $hWnd, 'int', $WM_KEYDOWN, 'int', $dCall[0], 'int', $lParam)
				Sleep($delay)
				DllCall($user32, 'int', "PostMessage", 'hwnd', $hWnd, 'int', $WM_KEYUP, 'int', $dCall[0], 'int', $lUpParam)
			Case 'down'
				DllCall($user32, "int", "PostMessage", "hwnd", $hWnd, "int", $WM_KEYDOWN, "int", $dCall[0], "int", $lParam)
			Case 'up'
				DllCall($user32, "int", "PostMessage", "hwnd", $hWnd, "int", $WM_KEYUP, "int", $dCall[0], "int", $lParam)
		EndSwitch
	EndIf
	DllClose($user32)
	Return 1
EndFunc   ;==>SimulKey
buFFy! is offline  
Thanks
2 Users
Old 10/21/2009, 10:07   #10
 
unknown661's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 314
Received Thanks: 160
vielen dank, nur leider funktionierts bei mir nicht =(
Code:
#include <WindowsConstants.au3>

$hWnd = WinGetHandle("Neues Textdokument (3).txt - Editor")
WinSetState($hwnd, "", @SW_HIDE)
SimulKey($hwnd, 'enter')
WinSetState($hwnd, "", @SW_SHOW)
die funktion hab ich natürlich auch drinnen
unknown661 is offline  
Old 10/21/2009, 14:11   #11


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Quote:
Originally Posted by unknown661 View Post
vielen dank, nur leider funktionierts bei mir nicht =(
Code:
#include <WindowsConstants.au3>

$hWnd = WinGetHandle("Neues Textdokument (3).txt - Editor")
WinSetState($hwnd, "", @SW_HIDE)
SimulKey($hwnd, 'enter')
WinSetState($hwnd, "", @SW_SHOW)
die funktion hab ich natürlich auch drinnen
#include <WindowsConstants.au3>

$hWnd = WinGetHandle("Neues Textdokument (3).txt - Editor")
WinSetState($hwnd, "", @SW_HIDE)
SimulKey($hwnd, 'enter', 0, 'down')
WinSetState($hwnd, "", @SW_SHOW)
buFFy! is offline  
Old 10/21/2009, 15:11   #12
 
Xeranor's Avatar
 
elite*gold: 0
Join Date: Aug 2009
Posts: 308
Received Thanks: 184
Vesuchs so:
Code:
$handle = WinGetHandle("Editor")
ControlSend($handle,"","","ROFLMAOW")
Xeranor is offline  
Thanks
1 User
Old 10/21/2009, 19:48   #13
 
unknown661's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 314
Received Thanks: 160
i do not know whats wrong but it works with no window...

Code:
#include <WindowsConstants.au3>

$hwnd = WinGetHandle("AION Client")
MsgBox(0,"",$hwnd)
WinSetState($hwnd, "", @SW_HIDE)
SimulKey($hwnd, 'w',0,'down',1000)
WinSetState($hwnd, "", @SW_SHOW)
unknown661 is offline  
Old 10/21/2009, 20:23   #14


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
Quote:
Originally Posted by u-coRe View Post
Then AION is using DirectInput and is Covering SendMessage/Post Message.
That mean's for you, there is actually no way to control your Character via those Functions.

You could use Intern Function's or try editing Memories..

All i'm writing is guessed, cuz i don't have AION.
^this.
buFFy! is offline  
Old 10/21/2009, 20:47   #15
 
unknown661's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 314
Received Thanks: 160
ein Send geht aber bei Aion auch und ein Controlsend nur unterstützt halt controlsend kein up und down.
unknown661 is offline  
Reply


Similar Threads Similar Threads
ControlSend
02/05/2010 - AutoIt - 10 Replies
Ich schreibe in Autohotkey (is ja fast das gleiche wie autoit) und möchte nun einen kleinen Bot für Metin schreiben bloß da es in Metin2 keine Controls gibt funktioniert der befehl ControlSend nicht. habe es schon so versucht: (die taste w soll gesendet werden) 1. Controlsend,,w,METIN2 2. Controlsend,ahk_parent,w,METIN2 3. Controlsend,METIN2,w,METIN2
controlsend
10/09/2009 - AutoIt - 21 Replies
hey leute ich wollt eigentlich nur wissen wie ich die controlid rauskirege.. ControlSend( "titel", "text", controlID<----dass will ich wissen, "string")
ControlSend
09/28/2009 - AutoIt - 4 Replies
HotKeySet ("E","test") Func test() ControlSend("World of Warcraft", "", 0, "{ENTER}") Sleep (100) ControlSend("World of Warcraft", "Text", 0, "{ENTER}") EndFunc While 1 Sleep (100)
Controlsend
01/01/2009 - GW Exploits, Hacks, Bots, Tools & Macros - 4 Replies
Hiho, ich würde gerne wissen, ob es eine Möglichkeit gibt den Slash bzw "^" als String und nicht als Strg-Druck an ein Fenster via Controlsend zu schicken. In meinem Script lass ich mir den String einer Inputbox in ne Variable schreiben und schick den dann an die GW-Fenster. Das geht Fehlerfrei, nur leider gehen Ausrufezeichen etc nicht mit Controlsend -.- Pls help me^^ ty im Voraus!
Controlsend ^ / !
12/30/2008 - Guild Wars - 9 Replies
Hiho, ich hatte im Botbereich schon gefragt,aber da war iwas mit No Questions. Hier fragen jedenfalls auch Leute und deshalb stell ich die Frage hier: Ich habe mir ein Tool gebaut, was einen String, der von einem GUIinput in einer Variable geschrieben wurde, an x-beliebig viele GW-Fenster über Controlsend sendet. -soweit funktionierts- Nur leider geht dabei weder Capslock, noch die Zeichen ^ / ! (da sie in Autoit ja andere Funktionen haben). Ist es möglich, diese trotzdem per Controlsend...



All times are GMT +1. The time now is 16:01.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.