Top.Mail.Ru
The C++ Community's Journal -- Day
? ?
The C++ Community's Journal -- Day [entries|friends|calendar]
The C++ Community

[ userinfo | livejournal userinfo ]
[ calendar | livejournal calendar ]

[04 Feb 2005|10:32am]
Sorry for being a bother, but here's my algorithm. Any help is most awesome.

The idea is to take the numbers 0-9, put them in a 5 digit number
sequence (abcde), multiply abcde by 2 and then test each
digit so that it only occurs one time.

so for example:

09327  = 18654 (twice the number)
20679  = 41358 " "
48651  = 97302 " "

those are the only 3 that work out which are 5 digits long and each
number occurs exactly once.

i'm going to use a boolean array to test each of the digits, but
I can't find any references on how to do so. that's also
the only option i have. i know i have to set all the items
in the array all to false...

for all practical purposes i know my code has errors and
might not make much sense, but here's what i have so far...

please try to be specific and patient.

hereCollapse )
3 comments|post comment

Writing a bot and don't know how to start [04 Feb 2005|07:52pm]
This is for Windows.

The issue I have is that I've never used a spy utility before so I really don't know how to pull information like text strings and such from another program. This is especially problematic (I think) because the program in question doesn't use ANY standard ActiveX/Microsoft controls.

To be as specific as possible, the target program has lots of visible text that you can read off the screen. I, however, need the bot to be able to differentiate between different strings so I need to retrieve this text programmatically. I don't know how to do this.

I can write the bot in C or VB, doesn't really make a difference what the language is, I just need to know how to get the information.

Any kind of help is appreciated, even point me to a tutorial if you know of one. I tried googling but couldn't find anything.
3 comments|post comment

navigation
[ viewing | February 4th, 2005 ]
[ go | previous day|next day ]
Image