|
You last visited: Today at 14:11
Advertisement
SendMessage or PostMessage ?
Discussion on SendMessage or PostMessage ? within the Perfect World forum part of the MMORPGs category.
01/25/2013, 11:49
|
#1
|
elite*gold: 0
Join Date: Jan 2013
Posts: 2
Received Thanks: 0
|
SendMessage or PostMessage ?
How do i simulate keypress in C++ Builder ?
SendMessage or PostMessage ?
A Example would be really nice, im new to this all
|
|
|
01/25/2013, 12:20
|
#2
|
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
|
Both suck, but if you want to send keys... use postmessage, since it doesn't wait for response from target handle.
|
|
|
01/25/2013, 12:43
|
#3
|
elite*gold: 0
Join Date: Jan 2013
Posts: 2
Received Thanks: 0
|
Thanks Swoosh,
PostMessage work for me even on Hiden Window
Quote:
PostMessage(hWnd, WM_KEYDOWN, VK_ESCAPE, MapVirtualKey(VK_ESCAPE, 0));
PostMessage(hWnd, WM_KEYUP, VK_ESCAPE, MapVirtualKey(VK_ESCAPE, 0));
|
What you mean with
Quote:
Originally Posted by Sᴡoosh
Both suck
|
Is there a better/safer Way to send Keys ?
|
|
|
01/25/2013, 13:12
|
#4
|
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
|
Don't send keys at all would be the better way  No unfreezing, no chat problems... etc.
|
|
|
01/26/2013, 11:40
|
#5
|
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
|
Quote:
Originally Posted by Sᴡoosh
Don't send keys at all would be the better way  No unfreezing, no chat problems... etc.
|
It is by far the quickest method to create really specialist small tools though when you haven't dug through all the code yet and don't intend on doing that
I found myself recently switching to OCR + keysending for some small things in a different game, because I couldn't be bothered to do all the other work
|
|
|
 |
Similar Threads
|
[VB.NET] SendMessage Tutorial
11/09/2015 - Coding Tutorials - 73 Replies
Hi,
da hier immer öfters gefragt wird, wie man denn einen Text aus einem externen Programm (evtl. auch einigen Spielen) ausliest oder an diesen einen Text sendet, ohne dass dieser im Vordergrund ist, habe ich mich entschloßen ein kleines Tutorial zu schreiben. Programmieren werde ich das ganze in VB.NET, achja und ich werde hier keine Grundlagen erklären à la "nun doppelklick auf den Button, um in das Button_Click-Ereignis zu kommen", sowas müsstet ihr schon selbst wissen.
Eingeteilt ist...
|
SRO SendMessage API
02/26/2012 - SRO Coding Corner - 5 Replies
Hello.
I want make simple clicker on vSRO.
but I can't do so would only click on SRO
I know I need to use SendMessage API but I do not know how to do it
Can someone show me it on this code:
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Start()
|
[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.
|
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,...
|
how do i sendmessage a password box
05/11/2007 - Conquer Online 2 - 11 Replies
HI,
I'm trying to sendmessage the password to the password box. It gives me the *** in the box but when i click the enter button it gives me the wrong password error.
any help would be appreciated
|
All times are GMT +1. The time now is 14:11.
|
|