Jump to content

Detect Input field in game


Glyph
 Share

Recommended Posts

Heres the problem,

how to detect when you click on the login field in my game, " Diablo II " after that

i am going to have it send "0= Login" in an INI file

how to detect when you click on the password field in my game, " Diablo II "

i am going to have it send "1= Password" in an INI file

-Only thing i don'y understand is detecting the fields, I have no idea of how to come about detecting it... Anyone have any ideas?

Edited by backstabbed

tolle indicium

Link to comment
Share on other sites

Does the field change color when it is active? If so you could use the pixel funcs to detect it. You could also look for the karat , if there is one.

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

No color changes :P, And i think karat was the thing i was looking for.. not sure though...

The karat is the small line that appears in most input boxes when it is selected.

Here is an example of a karat in notepad.

Good Luck.

Posted Image

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...