|
You last visited: Today at 13:50
Advertisement
how do i sendmessage a password box
Discussion on how do i sendmessage a password box within the Conquer Online 2 forum part of the MMORPGs category.
04/21/2007, 17:55
|
#1
|
elite*gold: 0
Join Date: Oct 2006
Posts: 3
Received Thanks: 0
|
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
|
|
|
04/25/2007, 05:48
|
#2
|
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,067
|
is it the right password. Send the script files script. Ill take a look. Cancel out the password by the way. Just give some random password like "huyusu".
Wat prog u using?? VB
I use Autoit so commands are simple.
Hiyoal
Autoit can make background files and macros just the same as VB. Its much easier though.
<hr> Append on Apr 25 2007, 06:14<hr> Sry I posted link wrong:
|
|
|
04/25/2007, 07:12
|
#3
|
elite*gold: 0
Join Date: Mar 2006
Posts: 1,252
Received Thanks: 476
|
Wot is he talking about O_o
|
|
|
04/25/2007, 07:43
|
#4
|
elite*gold: 0
Join Date: Oct 2005
Posts: 243
Received Thanks: 57
|
Quote:
Originally posted by GrimReaper91@Apr 25 2007, 07:12
Wot is he talking about O_o
|
He is making a script that will autologin.
So he clicks the script, and it will log him on without him having to type user and pass all the time..
Thats what i got out of his post
From what i know of VB, it should be like C/C++, where there might be a trailing 0 or something to stop the string. But yea.. if the code isnt too secret or too long, post it.. and we will have a look..
|
|
|
04/25/2007, 13:07
|
#5
|
elite*gold: 0
Join Date: Oct 2006
Posts: 305
Received Thanks: 3
|
Quote:
Originally posted by GrimReaper91@Apr 25 2007, 07:12
Wot is he talking about O_o
|
lol i dunno wat he talkin about to XD
|
|
|
04/25/2007, 13:59
|
#6
|
elite*gold: 0
Join Date: Oct 2006
Posts: 619
Received Thanks: 40
|
just type in ur pass copy and paste dont work no more
|
|
|
04/25/2007, 18:25
|
#7
|
elite*gold: 0
Join Date: Dec 2005
Posts: 170
Received Thanks: 52
|
show us the code and we might help
|
|
|
04/27/2007, 18:50
|
#8
|
elite*gold: 0
Join Date: Oct 2006
Posts: 3
Received Thanks: 0
|
sorry for the delay, im offshore and the internet is rare. i am writing this code in VB6 and the problem is in the one line.
Code:
*
* *Call SetForegroundWindow(ConquerWindow)
* *Call SendMessage(AccountBox, WM_SETTEXT, 0, Text1.Text)
* *'=============================================================================
the following line is where the problem is. there is an additional step to setting text to a password box. if you know what it is, or a different way please tell.
Code:
* *Call SendMessage(PasswordBox, WM_SETTEXT, 0, "" & Text2.Text)
Code:
* *Dim passwordboxlayer As Long
* *passwordboxlayer = FindWindowEx(ConquerLogonWindow, ByVal 0&, "Button", "")
* *Call SendMessage(passwordboxlayer, BM_CLICK, 0, vbNullString)
* *Sleep (200)
* *'=============================================================================
* *Call SendMessage(Enterbutton, BM_CLICK, 0, vbNullString)
When I finally get this code working properly, I will release it in a bas file fully commented so everyone can understand it and hopefully learn from it. All that is left is this one piece.
|
|
|
04/30/2007, 15:11
|
#9
|
elite*gold: 0
Join Date: Oct 2005
Posts: 243
Received Thanks: 57
|
Quote:
Call SetForegroundWindow(ConquerWindow)
Code:
Call SendMessage(AccountBox, WM_SETTEXT, 0, Text1.Text)
Call SendMessage(PasswordBox, WM_SETTEXT, 0, "" & Text2.Text)
|
Why aren't those 2 lines almost alike?, except for where they are suppost to put the text?
Whats with the "" & in front of the password?
Have you tried without???
Like this:
Code:
Call SendMessage(AccountBox, WM_SETTEXT, 0, Text1.Text)
Call SendMessage(PasswordBox, WM_SETTEXT, 0, Text2.Text)
|
|
|
04/30/2007, 19:30
|
#10
|
elite*gold: 20
Join Date: Oct 2006
Posts: 2,707
Received Thanks: 2,525
|
didnt co change it a while ago so that ur copy and paste pw doesnt work?
what i meant is for example:
when u type in ABCDEFG
in the system, they might replace it with A1B1C1D1E1F1G1 and send to the server
thats why when u copy and paste ABCDEFG will give u the wrong pw command.
therefore if u use VB to send ABCDEFG to the pw box, it denies.
|
|
|
05/10/2007, 19:31
|
#11
|
elite*gold: 0
Join Date: Oct 2006
Posts: 3
Received Thanks: 0
|
teh_noob
in the end it will be the same, i was playing with the password. i was adding some text to the front of the password. the text is going in right, it just not going in
after the program puts the pw in i can delete the last character, retype it and it will work. the text going into the box is correct. its just not "setting" the text to the password box.
what tq did was put an invisible button on top of the password box to hide it. thats what im calling the passwordboxlayer in my code. as far as i can tell its not affecting putting the text in the password box.
the code i have works, i just need another line to finish it. thats the line that "sets" the text. i just cant remember how to do it. last time i did something like this was over 10 years ago, and i dont have that code anymore.
|
|
|
05/11/2007, 02:46
|
#12
|
elite*gold: 0
Join Date: Mar 2005
Posts: 251
Received Thanks: 115
|
Try sending the password by keydown/keyup letter by letter, not using the WM_SETTEXT.
I also have a question...
How do you find the hWnd's of the Username/Password box and the OK button?
|
|
|
 |
Similar Threads
|
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...
|
C++ SendMessage Problem
08/02/2010 - C/C++ - 1 Replies
Also ich versuche gerade in C++ einen kleinen Spammer zu programmieren habe aber leider ein Problem.
Mein Code:
#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
|
delphi sendmessage
07/27/2010 - General Coding - 3 Replies
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":
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
|
[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,...
|
All times are GMT +1. The time now is 13:52.
|
|