Jump to content

Read strings

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
noxrawr

noxrawr

    Newbie

  • Members
  • PipPip
  • 23 posts
Hello guys,

I am trying to make a program that is operating as a kind of bot in a chat room, so what I need is this:
What I would like it to do, is read strings from an external textbox, and by external I mean from within a third party program. Also I do not want it to loop because then the program would reply multiple times to the same strings that it read.

Anyhow, if anyone could illuminate me on how to achieve this (reading those strings) then I would be grateful.

Regards, over and out.

#2
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
hey that was easy let me see if you can figure it out yourself ,else will post the code here :D

#3
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
That's complicated, and if I think about it, probably unachievable in C#. Other applications don't use .NET, so they don't have the same textBox as you have. I think you might have to crack the application you are trying to make a bot for, and find out on how you can connect your application to that one. It's not easy though, and you would have to learn Win32 API to do that. So... good luck!
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

#4
noxrawr

noxrawr

    Newbie

  • Members
  • PipPip
  • 23 posts
myeah in that case i dont think its going to happen for a new programmer like me. Pity though, i thought there would be a fairly simple way to do it :(

#5
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
Well, there might be other ways, don't think limited :). For what chat do you want to create a bot? Maybe you connect to that service in another way.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

#6
noxrawr

noxrawr

    Newbie

  • Members
  • PipPip
  • 23 posts
Its for a gaming platform called garena.

#7
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
No idea :).
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics