Hallo liebe epvp com
Brauche dringend hilfe will ein BoT mache wie jeder andere
aber was ich will :
Wenn ich starte soll er z.B 4,y,{SPACE},q,e
an das fenster senden obwohl das fenster nicht sichtbar oder minimiert
ist habe es mit dem Code :
Du kannst keine Tasten an minimierte Fenster senden da diese nicht gerendert werden. Du könntest aber versuchen sie außerhalb des Bildbereiches zu schieben und dann etwas dorthin zu senden.
mit visual basic (2010 und neuer) kannst du ganz einfach mit SendMessage Key´s an ein minimiertes Fenster schicken!
C++ geht natürlich auch.. autoit weis ich ned ob SendMessage unterstützt
vb.net:
Code:
Imports System.Runtime.InteropServices
Code:
<Runtime.InteropServices.DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal msg As UInteger, ByVal wParam As Integer, ByVal lParam As Integer) As IntPtr
End Function
Code:
Dim p As Process = Process.GetProcessesByName("deinegameexe")(0) 'ohne .exe
SendMessage(p.MainWindowHandle, &H102, Asc("W"c), 0)
SendMessage(p.MainWindowHandle, &H102, Asc("A"c), 0)
SendMessage(p.MainWindowHandle, &H102, Asc("S"c), 0)
SendMessage(p.MainWindowHandle, &H102, Asc("D"c), 0)
mit visual basic (2010 und neuer) kannst du ganz einfach mit SendMessage Key´s an ein minimiertes Fenster schicken!
C++ geht natürlich auch.. autoit weis ich ned ob SendMessage unterstützt
vb.net:
Code:
Imports System.Runtime.InteropServices
Code:
<Runtime.InteropServices.DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal msg As UInteger, ByVal wParam As Integer, ByVal lParam As Integer) As IntPtr
End Function
Code:
Dim p As Process = Process.GetProcessesByName("deinegameexe")(0) 'ohne .exe
SendMessage(p.MainWindowHandle, &H102, Asc("W"c), 0)
SendMessage(p.MainWindowHandle, &H102, Asc("A"c), 0)
SendMessage(p.MainWindowHandle, &H102, Asc("S"c), 0)
SendMessage(p.MainWindowHandle, &H102, Asc("D"c), 0)
Spiele arbeiten oftmals nicht mit der Windows Message Queue um Tastatureingaben zu verarbeiten, sondern nutzen meist z.B. DirectX, SDL, glut oder ähnliche Frameworks, welche direkt den Tastatur Puffer auslesen, da wird man mit SendMessage nicht weit kommen
Spiele arbeiten oftmals nicht mit der Windows Message Queue um Tastatureingaben zu verarbeiten, sondern nutzen meist z.B. DirectX, SDL, glut oder ähnliche Frameworks, welche direkt den Tastatur Puffer auslesen, da wird man mit SendMessage nicht weit kommen
Autoit Send Second Window 03/01/2013 - Planetside - 2 Replies Hey guys,
I have written a little script that switches between two PS2 game windows. Each window is a different faction. The two players are standing around a generator, and it goes back and fourth, one overloading a generator, and the other player stabilising the generator. In theory. The script just activates a window, sends the E key for 10 seconds, then switches to the other window and does it again. Over and over. However, only the one window registers the E press. So what happens, is...
How to send key on background window 09/26/2011 - General Coding - 3 Replies Do you know how send key in a background window with autoit ?
I try WinActivate("4Story") but I can't do enything else...
Send and UseSkill to the not active window 07/04/2011 - PW Hacks, Bots, Cheats, Exploits - 3 Replies how do it?
I can send to active window only.
I try to use autoit, but that did not work
Dim Au3 As New AutoItX3Lib.AutoItX3
Dim hWnd As Integer= FindWindow("ElementClient Window", Nothing)
Au3.ControlSend("", "", "", "{F1}")
I also tried using PostMessage,it does not work
Dim hWnd As Integer= FindWindow("ElementClient Window", Nothing)
Send Keys to minimized PW-Window 07/21/2010 - Perfect World - 3 Replies I want to learn how to send keys to a PW-Window, but it is minimized (because of the other functions my prog has)..
i am programming in vb.net (i know.. not the best language but i am getting along with it quite good) so if anyone knows a simple function or can help me with this.. pls tell me :)
greetz