Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 09:13

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

Advertisement



delphi sendmessage

Discussion on delphi sendmessage within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
bladerofdarknes's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
delphi sendmessage

hallo leute ich hab mal eine frage ob mir jemand kurz erläutern könnte wie ich mit sendmessage eine mausbewegung in einem minimierten fenster ausgebe
ich habe embarcadero rad studio 2010
hier ist der bisherige "source":

Code:
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Label2: TLabel;
    Button1: TButton;
    Button2: TButton;
    Label3: TLabel;
  TForm1.Button1Click(Sender:Tobject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

  var
  Form1: TForm1;
  start, stop: String;
  hWnd: HWND; windowhandle(nil, 'METIN2');

  implementation

{$R *.dfm}

  Procedure TForm1.Button1Click(Sender:Tobject);
  var c : hWnd;
  begin
    c:= FindWindow(nil,'METIN2 (Window 800x600)');
  if c<> 0 then
    begin
            sendmessage //hier soll ein sendmessage hinkommen


   end;
end.
dann wäre es noch super (wenn ihr noch geduldt habt) wenn mir jemand sagen könnte wie ich das ganze noch pausiere, ich bin jetzt wirklich schon lange auf der suche nach dem richtigen befehel und weiß auch schon länger das sendmessage richtig sein muss, komm damit aber nicht klar :S
wenn ihr fehler seht bzw verbesserungsvorschläge für meine struktur immer nur her damit
bladerofdarknes is offline  
Old 07/27/2010, 13:14   #2
 
elite*gold: LOCKED
Join Date: Aug 2006
Posts: 3,292
Received Thanks: 866



Sollte dir helfen, 10 sec google.
scenebase is offline  
Thanks
1 User
Old 07/27/2010, 13:17   #3
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
Quote:
hWnd: HWND; windowhandle(nil, 'METIN2');
Du warst mal C++ Nutzer? Groß und klein schreibung gibts bei Delphi nicht. Folglich ist hWnd und HWND gleich.
2) Die Funktion WindowHandle habe ich so noch nie gesehen. Solche Deklarationen müssen in einer Funktion/Prozedur bzw. einem Konstruktor erledigt werden.
HardCore.1337 is offline  
Thanks
1 User
Old 07/27/2010, 13:30   #4
 
bladerofdarknes's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 1,524
Received Thanks: 285
Rhilor auf diesen seiten war ich schon, ich steig aber nicht durch wie ich das mit der mausbewegung anstell :x
bladerofdarknes is offline  
Reply


Similar Threads Similar Threads
DELPHI - Who make Exploits, Hacks and Tools with DELPHI?
05/15/2013 - CO2 Programming - 13 Replies
Hi all. Iwith DELPHI, but a dont now. hello, I use Delphi to program and i like someone put here source code of make Exploits, Hacks and Tools bot here, or part of the code. ty to all
C++ SendMEssage Problem
12/11/2010 - C/C++ - 53 Replies
Hey Comunity, bin C++ Anfänger und hab da ein Problem. Und zwar möchte ich Tastendrücke mithilfe meines Programms simulieren, da hab ich mir gedacht, dass ich SendMessage benutze. Mein Problem ist jetzt, dass ich nicht weiß, wo ich das Parameter für die "zu drückende" Taste hinschreiben soll bzw. in welcher Form; als Hex oder VK_KEY_? . Der Bot soll einfach nur ununterbrochen "w" drücken, jedoch krig ich es einfach nicht hin. Bei Google hab ich nix gefunden, MSDN hab ich nicht...
[Help] C# SendMessage()
05/11/2010 - CO2 Programming - 19 Replies
I'm currenty trying to use the SendMessage Function with CO. According to msdn I need to use this: static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam); My question is: How do I find the hWnd? What are the wParam and lParam? And what can I use as wParam and lParam? Any help will be greatly appreciated.
[DELPHI&METIN]Wie sind die Delphi Befehle für einen Bot?
03/07/2010 - General Coding - 3 Replies
Hallo liebe com, ich habe mal eine Frage: Ich möchte einen Metin Bot in Delphi schreiben aber ich weiß nicht die Befehle für eine bestimmte Taste senden etc. könnt ihr mir die pls sagen oder per pn geben MfGGGGGG
sendmessage?
12/26/2008 - CO2 Programming - 0 Replies
just wondering how it works in C# tried few tutorials with notepad in it and it doesnt send the letters/close it even it finds the window this is how i got it so far (pretty much copypasted, just to see how it works...) private static extern IntPtr FindWindow(string winClass, string WinName); private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam); private static extern IntPtr PostMessage(IntPtr hWnd,...



All times are GMT +1. The time now is 09:14.


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.