Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Delphi (http://www.programmingforums.org/forum41.html)
-   -   Binding program! [EASY CODE] (http://www.programmingforums.org/showthread.php?t=12772)

fruit Mar 12th, 2007 5:12 PM

Binding program! [EASY CODE]
 
I am currently new to delphi. I have started to create a program I want to use to bind commands for steam games. So far the program looks like this
http://img477.imageshack.us/img477/9742/tyqi6.gif

What I want to do is simple. I want a person to type somthing like Hello World in the "Type Here box"

Then they go up to "bind key" and press a key on their keyboard and it will automatically come up.

Next is a drop down menu called Say commands. (This program is ment for a steam game.) So if someone wanted to shout, whisper etc they would pick.

Then all they do is press Generate and it would generate like this.

This is the full Bind.

bind "key chosen" "say shout Hello world!"

(bind will have to come up in the generater box inorder for it to work with steam.)

Im not sure how to get all of this to work like that. Any kind of help would be great.

Thank you!

DaWei Mar 12th, 2007 6:32 PM

What does [EASY CODE] mean?

physicist Mar 12th, 2007 6:43 PM

you can do this in visual basic. use KeyDown event and set e.KeyCode to equal the key in the textbox that it is binded to. make a string in the end like bind -p say"hello world" and then make a .cfg file so it puts that in console automatically when Counterstrike or other steam games load.

fruit Mar 12th, 2007 8:46 PM

Quote:

Originally Posted by physicist (Post 125130)
you can do this in visual basic. use KeyDown event and set e.KeyCode to equal the key in the textbox that it is binded to. make a string in the end like bind -p say"hello world" and then make a .cfg file so it puts that in console automatically when Counterstrike or other steam games load.

Easy code means it should be an easy code...

I have Delphi though..Any idea on how to do it with that?

physicist Mar 12th, 2007 11:03 PM

hmm...lemme read up on delphi syntax and get back to you


All times are GMT -5. The time now is 11:21 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC