L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 30 Dec 2012 10:51 PM |
I want to make some automation programs for small tasks (If I make a program, I usually need to test a lot with it; it would be easier to just automate that). However, I'm not sure which would be better for this, in terms of having more features (That is, being able to do more without having to make large programs to do it).
Which would be better for this? I know C# only works on Windows whereas C++ works on all of them, but I only use Windows for the automation so this won't affect it. Can C# do more than C++, or can C++ do more than C#? Or are they basically the same (Given the Windows library for C++)?
Thanks, ~L2 |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 30 Dec 2012 10:54 PM |
| What sort of 'small tasks' do you want them to do? |
|
|
| Report Abuse |
|
|
DannyCore
|
  |
| Joined: 25 Apr 2012 |
| Total Posts: 990 |
|
|
| 30 Dec 2012 10:54 PM |
they're basically the same
except for some things c# has that are more efficient than what c++ has, and the other way around |
|
|
| Report Abuse |
|
|
k9rosie
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 14339 |
|
|
| 30 Dec 2012 10:54 PM |
| What exactly are you planning to do? |
|
|
| Report Abuse |
|
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 30 Dec 2012 10:56 PM |
@K9 and myrkros I mostly want to send keys to a window (So, keyboard automation), check the result to see if it's correct, and do the same with mouse clicking. I'd probably need a way to take a screenshot -- is that possible in C# or C++? |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 30 Dec 2012 10:58 PM |
| Yeah, it's possible, though perhaps a bit hard to do. I guess C# would have a nicer API for this. |
|
|
| Report Abuse |
|
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
| |
|
|
| 30 Dec 2012 11:01 PM |
Use Assembly. :3
○ Existence does not define reality. |
|
|
| Report Abuse |
|
|
k9rosie
|
  |
| Joined: 05 Jul 2008 |
| Total Posts: 14339 |
|
|
| 30 Dec 2012 11:03 PM |
| Why can't you use AutoHotKey? You think you're too cool for that or something? |
|
|
| Report Abuse |
|
|
L2000
|
  |
| Joined: 03 Apr 2008 |
| Total Posts: 77448 |
|
|
| 30 Dec 2012 11:26 PM |
@K9 I tried that before, but I found that it couldn't do some of the things I wanted in it.. I could probably use that for most of it, though. |
|
|
| Report Abuse |
|
|
Aerideyn
|
  |
| Joined: 16 Jan 2010 |
| Total Posts: 1882 |
|
|
| 30 Dec 2012 11:28 PM |
| c# (XNA) will get it done far far faster. You don't need then ~20% performance benefit for something like that by using c++ |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 30 Dec 2012 11:58 PM |
It would be stupid to not use C#.
That is not the task for C++. |
|
|
| Report Abuse |
|
|