Register for your free account! | Forgot your password?

Go Back   elitepvpers > Conquer Online 2 > CO2 Main - Discussions / Questions
You last visited: Today at 00:19

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

 

how do i sendmessage a password box

Reply
 
Old   #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



stirge is offline  
Old   #2
 
elite*gold: 20
Join Date: Mar 2007
Posts: 2,444
Received Thanks: 1,063
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:



Hiyoal is offline  
Old   #3
 
elite*gold: 0
Join Date: Mar 2006
Posts: 1,252
Received Thanks: 475
Wot is he talking about O_o
GrimReaper91 is offline  
Old   #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..


teh_n00b is offline  
Old   #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
1994clint is offline  
Old   #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
bossdude is offline  
Old   #7
 
elite*gold: 0
Join Date: Dec 2005
Posts: 170
Received Thanks: 52
show us the code and we might help
ElitePvper is offline  
Old   #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&#40;ConquerWindow&#41;
 * *Call SendMessage&#40;AccountBox, WM_SETTEXT, 0, Text1.Text&#41;
 * *&#39;=============================================================================
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&#40;PasswordBox, WM_SETTEXT, 0, &#34;&#34; & Text2.Text&#41;


Code:
 * *Dim passwordboxlayer As Long
 * *passwordboxlayer = FindWindowEx&#40;ConquerLogonWindow, ByVal 0&, &#34;Button&#34;, &#34;&#34;&#41;
 * *Call SendMessage&#40;passwordboxlayer, BM_CLICK, 0, vbNullString&#41;
 * *Sleep &#40;200&#41;
 * *&#39;=============================================================================
 * *Call SendMessage&#40;Enterbutton, BM_CLICK, 0, vbNullString&#41;
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.
stirge is offline  
Old   #9
 
elite*gold: 0
Join Date: Oct 2005
Posts: 243
Received Thanks: 57
Quote:
Call SetForegroundWindow(ConquerWindow)
Code:
 
  Call SendMessage&#40;AccountBox, WM_SETTEXT, 0, Text1.Text&#41;
  Call SendMessage&#40;PasswordBox, WM_SETTEXT, 0, &#34;&#34; & Text2.Text&#41;
Why aren&#39;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&#40;AccountBox, WM_SETTEXT, 0, Text1.Text&#41;
  Call SendMessage&#40;PasswordBox, WM_SETTEXT, 0, Text2.Text&#41;
teh_n00b is offline  
Old   #10
 
elite*gold: 20
Join Date: Oct 2006
Posts: 2,707
Received Thanks: 2,524
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.
evanxxxm is offline  
Old   #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.
stirge is offline  
Old   #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&#39;s of the Username/Password box and the OK button?


inSertCoiN is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
C++ SendMEssage Problem
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...
53 Replies - C/C++
C++ SendMessage Problem
Also ich versuche gerade in C++ einen kleinen Spammer zu programmieren habe aber leider ein Problem. Mein Code: #include <iostream> #include...
1 Replies - C/C++
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...
3 Replies - General Coding
[Help] C# SendMessage()
I'm currenty trying to use the SendMessage Function with CO. According to msdn I need to use this: static extern IntPtr...
19 Replies - CO2 Programming
sendmessage?
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...
0 Replies - CO2 Programming



All times are GMT +2. The time now is 00:19.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.