Quantcast

Maximum PC

It is currently Thu Dec 18, 2014 11:26 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: What language is best?
PostPosted: Sat Nov 17, 2007 2:26 pm 
Team Member
Team Member
User avatar

Joined: Sun Jun 12, 2005 5:52 pm
Posts: 1319
Location: Infront of my Computer.
What programming language is best to do something that would automatet mouse movements and do color detections on screens.


Top
  Profile  
 
 Post subject:
PostPosted: Sun Nov 18, 2007 1:17 pm 
8086
8086

Joined: Sun Nov 18, 2007 10:33 am
Posts: 4
C++ and Java are the two main languages you'll come across. But if you just want to make a macro, which I assume is what you want, then there are companies that already have macro programs available that can automate mouse movements. I don't know about color detection, though. What do you need this to do, specifically?


Top
  Profile  
 
 Post subject:
PostPosted: Mon Nov 19, 2007 3:58 am 
Team Member Top 100
Team Member Top 100

Joined: Fri Sep 17, 2004 5:35 pm
Posts: 1176
C or C++ allow easy access to the Windows API which has provisions for doing what you want.


Top
  Profile  
 
 Post subject: Test?
PostPosted: Tue Nov 20, 2007 1:19 pm 
8086
8086

Joined: Wed Mar 07, 2007 11:28 am
Posts: 93
Some testing packages can do this kind of tasks without programming. In the old days I used "Visual Test" an add-on to Visual Studio, but Bill Gates Is My Daddy discontinued that product.

If programming is a must, I would go with C# for a quick test, C++ for special need into the Win32 API.

As stated by another: What is it for?


Top
  Profile  
 
 Post subject:
PostPosted: Sun Nov 25, 2007 3:13 pm 
8086
8086

Joined: Tue Mar 13, 2007 2:54 pm
Posts: 29
Each language has its plus and minuses. Some are better for different tasks.

Currently there are 2 major types of programming languages

Native: C, C++ (and others)
Managed: Java, C#, VB.Net, anything written for the .Net Framework

and of course there are scripting languages, vbscript, javascript, perl, batch

if you are just beginning i suggest you start with C#, and learn the basics such as loops and conditionals. Once you are comfortable move to a native language.


Top
  Profile  
 
 Post subject:
PostPosted: Sun Nov 25, 2007 4:14 pm 
8086
8086

Joined: Fri Oct 12, 2007 8:17 am
Posts: 4
I know it's not a REAL programming language, but rather a scripting language, but AutoHotKey works quite well for any automated tasks.

http://www.autohotkey.com/


Top
  Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 2:30 pm 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Thu Jul 22, 2004 11:11 am
Posts: 5108
Location: RFC 1149 - Pidgeon Network
autohotkey and autoit would the be easiest ways to go about it


e.g.
autoit

http://www.autoitscript.com/autoit3/downloads.shtml

MouseClick("left",100,150)
will left click at that location. Location is relative to a window or screen depending on setting.

This can also tell you the name of the window control the cursor is over, and it can press the controls without using the cursor.

$var = PixelGetColor( 100 , 150 )

$var now stores the color of that pixel (decimal)


Powerful language that will let you manipulate processes, files, COM, manipulate windows etc. Awesome help file too.


Top
  Profile  
 
 Post subject: Re: What language is best?
PostPosted: Fri Feb 08, 2008 10:08 am 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Mon Jun 14, 2004 4:04 pm
Posts: 987
Location: Earth
Digital-Storm wrote:
What programming language is best to do something that would automatet mouse movements and do color detections on screens.


I agree with Kybo, C/C++ would do you well. You can access the Windows API which will do majority of want you want. With Java or C#, you still need to implement unmanaged code that will make calls to the Windows API. So just program it directly.


Top
  Profile  
 
 Post subject:
PostPosted: Sat Feb 09, 2008 1:09 pm 
Bitchin' Fast 3D Z8000*
Bitchin' Fast 3D Z8000*
User avatar

Joined: Tue Jun 29, 2004 11:32 pm
Posts: 2555
Location: Somewhere between compilation and linking
You realize that this was dead for a couple of months, right? Normally I wouldn't care, but I'm so sick of these stupid programming language threads that I wanted to scream when I saw your post. =)


Top
  Profile  
 
 Post subject:
PostPosted: Sat Feb 09, 2008 2:23 pm 
Team Member Top 100
Team Member Top 100

Joined: Fri Sep 17, 2004 5:35 pm
Posts: 1176
Hahaha true that.
I think that all languages have their applications; I just think C or C++ would probably be the best way to do this (or if someone has written a scripting language for a macro, like suggested)


Top
  Profile  
 
 Post subject:
PostPosted: Sun Feb 10, 2008 2:20 am 
Bitchin' Fast 3D Z8000*
Bitchin' Fast 3D Z8000*
User avatar

Joined: Tue Jun 29, 2004 11:32 pm
Posts: 2555
Location: Somewhere between compilation and linking
Sigh. Since someone else had to go and respond... :P

For automating mouse movements, I would say good old LOGO would be a bit hard to beat. =)

I'm not exactly sure what is meant by 'do color detections on screens'.

If this is a Windows project, my hunch is that C# is probably going to be the easiest solution.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.