Jump to content
Tuts 4 You

Keyboard Input Or Just Call Certain Dialog


Guest jedenuser

Recommended Posts

Guest jedenuser
Posted (edited)

Hi I'm a noob and this is my first post. I have a question. I'm writing a little program to automatize use of my messenger (Gadu-Gadu). My problem is below:

gggn0.jpg

I have used this: SendMessage(hDlg, WM_COMMAND, 1012,0) to send message to "Niedostepny" button and it works ok and opens the menu. But now how do I simulate move of the cursor over "Opis.. " menu item and press "Enter" button? Or could I send a message to that menu to execute that menu item? How to do that?

Alternatively, is there any way to call a program's certain dialog box from outside the program? So I could call my desired window directly, without doing the things above? Can this be done somehow?

I appreciate any help. Thanks. Sorry for my bad english.

Edited by jedenuser
Posted

I see your on the ARteam forum too mate ^^ but uhm... could you state your problem more clearly.. is it just me or is this a bit vage O.O

Posted

Use SetCursorPos & mouse_event or SendInput functions. Look it up on msdn.

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
×
×
  • Create New...