getting information from another application

Hi,

There's an application that users logon too. (isx)
they press numlock key twice on the keyboard and a window login asking for an ID.
ID is numerical with four digits.

To logout of the application they press numlock key once.

How can VB catch the ID?

-presently I used sendkeys, so they login to the vb program then it logs then into the isx application.
there's alot of possible bugs.
-any new idea or approach, I want to catch the ID without the users loging on to the vb program.

Thanks,
Lynnton
LVL 1
lynntonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DrWarezzCommented:
Keylogging is illegal activity.. We're not allowed to help with such activity..

[r.D]
0
lynntonAuthor Commented:
DrWarezz,

Ironic isn't it? your name..  :-)

hmm I think it does sound like a key logger, but in this case it's not an illegal activity, because it's a project, I wanted to make it more efficient.  

It's realtime adherence program I wrote and now users are by passing the system. If I could let them login to the actual application itself (isx) then get the information from that, then it will eradicate all the present bugs I have now.

It DOESN'T need to be a key logger, do I have any alternative?

Thanks,
Lynnton
0
DrWarezzCommented:
>"Ironic isn't it? your name..  :-)"
hehe.. :P

>"It DOESN'T need to be a key logger, do I have any alternative?"
Hmm.. Probably not..

Personally, I don't program in VB.. So; is VB a low-enough level language to be able to add a Hook on the keyboard? (Like you can in C++) ?

gL,
[r.D]
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

tomvergoteCommented:
to make it clean you would have to modify the isx app (or dig through it's api or non documented dll functions) to get to a method which returns what you are after
0
lynntonAuthor Commented:
tomvergote,

Yes, that is the correct approach, can you give deeper guidance on what I i
m looking for? and how to successfull apply this approach?

Thanks,
Lynnton

0
tomvergoteCommented:
we don't know what the isx app is, if you can modify it, what it's written in etc
but you would have to look into interprocess communications in the languages you are working in (for example if both are in c# you could look into remoting or entrepreise services), if it's in vb you would have to go through DCOM (iirc)
http://www.mvps.org/vb/hardcore/html/interprocesscommunication.htm
http://support.microsoft.com/kb/q95900/
etc
0
lynntonAuthor Commented:
tomvergote,

how to determine if the isx application is written on what language?
so that I could tell you and from that we could arrive at a clean conclusion.

Thanks,
Lynnton
0
tomvergoteCommented:
you can't really if the isx app is 3rd party and you don't have the source
0
tomvergoteCommented:
you could try to contact the 3'rd party's support, but i don't think they will want to help you
0
lynntonAuthor Commented:
tomvergote,

Can I use DDE or DCOM to test if it's compatible with those two?
How can we accomplish this? ( I have a gut feeling it's capable of DDE)


Thanks,
Lynnton
0
tomvergoteCommented:
You could try programming them and see what and if they give errors.
I don't really know, i would try to search the whitepapers or try to contact support (or a dev on their newsgroups if you are lucky)
0
lynntonAuthor Commented:
tomvergote,

This means there's no universal language for DDE and DCOM?
like okay, isx app is compatible with DDE, connect to DDE and use the properties to gain information???

Thanks,
Lynnton
0
DrWarezzCommented:
Author, what does this isx app actually do? Perhaps you could code a duplicate in VB (for example), but so that there are no ways to bypass it.. (well, when dealing with security, ALWAYS remember this: 'There is not such thing as a secure system. All systems can be hacked, and there are no exceptions to this rule ... What you as a programmer can do is make it harder for an attacker to break into your systems, and easier for you to restore them if they have been compromised.').

Good luck with it,
[r.D]
0
sapbucketCommented:
What is wrong with your current solution?

If you cannot muck around with the isx program (ie someone else wrote it and you don't have the source) then using VB front-end is not bad.

Using send-keys works great too.

Where do the bugs come from? Also (little joke here) why do you care about security if all you are using is a 4 digit password? LOL I could break into that in 5 minutes.

Maybe this will help:
http://groups.yahoo.com/group/perlguitest/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.