 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Tue Aug 28, 2007 3:59 pm Post subject: |
|
|
well in C++ this works
so, it will probs work in C#
instead of using SendKeys.send("(ENTER)")
use \r\n
Example code:
| Code: | | textbox1.text = textbox1.text+"\r\n" |
which is a carriage return then a new line.
also, i think in C++ its ("{ENTER}"), not sure if its diff from C#
i dont know C# but its very similar to C++, just using .'s instead of ->'s or ::'s _________________
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Tue Aug 28, 2007 5:10 pm Post subject: |
|
|
This doesn't really have anything to do with the problem, as it has been solved, but I suggest that you use
| Code: |
SendKeys.SendWait(...);
|
rather than
| Code: |
SendKeys.Send(...);
|
Why? SendKeys.Send is just going to send your message incredibly quickly, and will most likely not give the program/Windows/whatever a chance to respond. SendKeys.SendWait sends the key stroke, then waits for whatever to comprehend it, then continues on. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|