|
You last visited: Today at 16:00
Advertisement
controlsend with {a down}
Discussion on controlsend with {a down} within the AutoIt forum part of the Coders Den category.
10/19/2009, 17:51
|
#1
|
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?
|
|
|
10/20/2009, 00:38
|
#2
|
elite*gold: 45
Join Date: Nov 2008
Posts: 4,308
Received Thanks: 991
|
I think the ControlSend() orders, don't support up, down calls.
|
|
|
10/20/2009, 09:55
|
#3
|
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
|
Quote:
Originally Posted by N.E.O.
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
|
|
|
10/20/2009, 11:57
|
#4
|
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.
|
|
|
10/20/2009, 14:31
|
#5
|
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.
|
|
|
10/20/2009, 15:38
|
#6
|
elite*gold: 45
Join Date: Nov 2008
Posts: 4,308
Received Thanks: 991
|
Quote:
Originally Posted by u-coRe
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?
|
|
|
10/20/2009, 16:01
|
#7
|
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)
|
|
|
10/20/2009, 17:14
|
#8
|
elite*gold: 0
Join Date: Oct 2008
Posts: 314
Received Thanks: 160
|
Quote:
Originally Posted by u-coRe
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
|
|
|
10/21/2009, 08:38
|
#9
|
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
|
|
|
10/21/2009, 10:07
|
#10
|
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
|
|
|
10/21/2009, 14:11
|
#11
|
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
|
Quote:
Originally Posted by unknown661
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)
|
|
|
10/21/2009, 15:11
|
#12
|
elite*gold: 0
Join Date: Aug 2009
Posts: 308
Received Thanks: 184
|
Vesuchs so:
Code:
$handle = WinGetHandle("Editor")
ControlSend($handle,"","","ROFLMAOW")
|
|
|
10/21/2009, 19:48
|
#13
|
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)
|
|
|
10/21/2009, 20:23
|
#14
|
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,287
|
Quote:
Originally Posted by u-coRe
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.
|
|
|
10/21/2009, 20:47
|
#15
|
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.
|
|
|
 |
|
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.
|
|