M
M
mIka012021-11-27 03:15:05
C++ / C#
mIka01, 2021-11-27 03:15:05

How to make a sequence of form button clicks in c++?

Wrote a term paper in form in c++ game sea battle. The teacher said that you need to add a bot that will play with the player if someone does not connect to him in the session. I'm thinking of using a standard bot client program.

Question: How to programmatically implement button sequence clicks in the form itself in the constructor?

p.s. I don't write in c++, but the teacher said it was tough. I implemented the bot algorithm for the first time in the form of hints to the player where it is better to go based on statistics. I do not want to rewrite the program from scratch, the more it would be interesting to get acquainted with such technology, of course, if it exists.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mIka01, 2021-12-07
@mIka01

private: System::Void Connection_Load(System::Object^ sender, System::EventArgs^ e) {
    Insert_Click(sender, e);
    button1_Click(sender, e);
  }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question