Author |
Message |
Terror Byte
|
Posted: Fri Apr 07, 2006 6:43 pm Post subject: Just curious about Windows and keyboard input.... |
|
|
How can I keep a window out of focus and still record the number of keystrokes?
I know a keylogger is impossible ..aw...
But even if you have a window, and you click out of it, you can't record any keystrokes, let alone make the Window hidden...
Right? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
jamonathin
|
Posted: Fri Apr 07, 2006 7:00 pm Post subject: (No subject) |
|
|
Right.
You cannot use the keyboard on a hidden window.
code: | var window : int := Window.Open ("graphics:200;150,nobuttonbar")
Window.Hide (window)
var key : array char of boolean
var c : string (1)
getch (c)
loop
Input.KeyDown (key)
end loop |
|
|
|
|
|
|
Terror Byte
|
Posted: Fri Apr 07, 2006 7:02 pm Post subject: (No subject) |
|
|
Yeah I understood that.
But if you have an open window that's not in focus, is it still possible for it to recieve input?
Because mouse.where works even when the window is not in focus.
Is there any way I can do something similar for inputting text in a non-focused window? |
|
|
|
|
|
[Gandalf]
|
Posted: Fri Apr 07, 2006 7:08 pm Post subject: (No subject) |
|
|
No. If the window is not selected (ie. grayed out) Turing cannot detect keystrokes or do much else. If you really want to create a keylogger (for windows) you'll have to use something like VB or C++ which have access to the Windows API. |
|
|
|
|
|
Terror Byte
|
Posted: Fri Apr 07, 2006 7:19 pm Post subject: (No subject) |
|
|
Then speaking of which...
What do I need to download to start using VB?
I read in a post somewhere that I should do VB after Turing. I'll still continue to do Turing, but I also want to start VB.
|
|
|
|
|
|
Tony
|
Posted: Fri Apr 07, 2006 8:26 pm Post subject: (No subject) |
|
|
Terror Byte wrote: I read in a post somewhere that I should do VB after Turing.
could you point to the said post? I want to have it removed
VB is not the best choice... not even close |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Terror Byte
|
Posted: Fri Apr 07, 2006 8:30 pm Post subject: (No subject) |
|
|
Wow really?
What should I try to learn then? |
|
|
|
|
|
Tony
|
Posted: Fri Apr 07, 2006 8:33 pm Post subject: (No subject) |
|
|
we have a stickied post right above - where to go next?
information / opinions might be a bit old (thread made in 2004), though reading the discussion should give you a better idea of the options available |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
|
Sponsor Sponsor
|
|
|
MysticVegeta
|
Posted: Sun Apr 09, 2006 11:15 am Post subject: (No subject) |
|
|
Why not use the Search button before posting new topics?
I already have posted this topic before when I was a complete noobie (I still am but thats besides the point) http://compsci.ca/v2/viewtopic.php?t=8285&highlight=keyloggers
Also, as Gandalf said learning C++/Java would be more efficient for keyloggers, also if it is possible in the future to hide windows and take input, stil Turing would be useless because it takes a lot of memory (obvious to the victim) And its exe size is > 500KB still obvious to the victim, no? And if you want to make a more faster keylogger VC++ would be good, also efficient.
But why not just use premade keylogger softwares? not gonna name here because of legal blabble |
|
|
|
|
|
md
|
Posted: Sun Apr 09, 2006 11:51 am Post subject: (No subject) |
|
|
Java is not good for writing system software, which is exactly what a key logger is. Because of the low level interaction with the operating system required to write a key logger you are much better off using languages designed for system level work; or those that are reasonably close.
C++/C are your best bets; pascal can be made to do it with some work (using FPC) and I'm sure some of the more functional languages could also be made to work with some effort.
[edit...] Gandalf certainly never said anything about Java. If your gonna quote someone be sure not to insert your own words. |
|
|
|
|
|
Imm0rtal
|
Posted: Sun Apr 09, 2006 3:06 pm Post subject: (No subject) |
|
|
C++ will be the most useful language you can use.. Next to ASM of course. |
|
|
|
|
|
MysticVegeta
|
Posted: Sun Apr 09, 2006 7:11 pm Post subject: (No subject) |
|
|
Oh, I mistook it for VB, i's sorry.
I wouldnt say C++ after ASM, ASM is lot of work and confusing for someone learning Turing, ofcourse C++ will be confusing too but certainly less than ASM. |
|
|
|
|
|
codemage
|
Posted: Mon Apr 10, 2006 8:25 am Post subject: (No subject) |
|
|
That all said, VB is an excellent language to have in your inventory. It's not a great programming language, but it's an amazing tool to produce windows-quality GUI'd apps in record time - and it's quite easy to learn. |
|
|
|
|
|
Terror Byte
|
Posted: Wed Apr 12, 2006 3:06 pm Post subject: Thanks. |
|
|
Thank you for the input guys.
I don't really care much about keylogging anyone, it was just a thought.
Thanks once again. |
|
|
|
|
|
|