topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 3:14 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: which programming language is most powerful in automating/interacting with MS Wi  (Read 5393 times)

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,820
    • View Profile
    • Donate to Member
hello!

which programming language is most powerful in automating/interacting with MS Windows applications' GUI?

I mean to get info from third-party GUI controls, edit them, etc

thanks!

barney

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,294
    • View Profile
    • Donate to Member
That question may be unanswerable as stated.

Most any answer you get is going to be highly subjective, methinks.  And I suspect you're looking for versatility, rather than power. 

When I was using VB, it was the most versatile. 

Then when I used Turbo Pascal or Delphi, they were, in turn, the most versatile.

As far as raw power, C/C++ will likely take the lead, but there will be differences of opinion even there.

Power/versatility, other than really hard core programming, are mostly going to depend upon what you are trying to do at the moment.  Each language has degrees of weakness and strength, and each has differing ways of dealing with GUIs.

I'd suggest that you pick a language, then really learn it.  That's the only way you're going to discover whether it will perform according to your needs.  If it doesn't try another one (1).  Sooner or later, you'll find the one (1) that truly suits your needs and purposes.  Yes, it's an arduous process, but the only one (1) that works in the long run, at least in my experience.  There really aren't any shortcuts  :(.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Kalos is asking a specific question, about interacting and manipulating the gui controls of other applications.

I'm guessing your answer is going to be something like: AHK/AutoIt, or Microsoft Powershell, or C#.

People who are more familiar with Powershell may be able to chime in on how it compares to AHK/AutoIt for such purposes, as I'm really not sure.

kalos

  • Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 1,820
    • View Profile
    • Donate to Member
okay, I am between powershell or vb or c#

which would be best? definately for this task described in the first post, but also for other tasks as well (eg create a GUI)

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,610
    • View Profile
    • Donate to Member
I'd go for AutoIt (my personal preference) or AHK (select the AHK_L variant), PowerShell is more a "cmd.exe on steroids" kinda tool, not so easy in interacting with 'foreign' UI controls, while AutoIt and AHK are actually specialized in that.
VB and C# do offer ways to interact with 'foreign' controls, but not quite as easy and seamless as AutoIt or AHK.

JoTo

  • Super Honorary
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 236
    • View Profile
    • Donate to Member
Hi there,

+1 from me for AutoIt. You can get your hands on windows and controls of every standard GUI app. You can modify it or send messages to interact. You can simulate keypresses and mouseclicks. You can also use ever WINAPI function or 3rd party DLL functions too.

AHK can do the same too.

Why i prefer AutoIt? Because AutoIt is a "real programming language" and not a syntax mess like AHK. Sorry, AHK lovers. But maintainability of AHK scripts are a real pain with that cryptic syntax, while AutoIt looks more like a standard programming language.

Where AHK shows its strength is, when it comes to do really geeky things. I saw a few things done in AHK i was not able to reproduce very easily (without using WinAPI or whatever) in AutoIt. But still i prefer readabilty and easy syntax over geekiness.

Just my 2ct.
JoTo

Shades

  • Member
  • Joined in 2006
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Don't go for PowerShell. it is indeed awesome to stuff with in the background without (too much) user interaction. That is where PS really shines. If you still want to go the PS way you can download an IDE for PowerShell from DevFarm software (both a free and a pay version).

I used the free version for a pet project of mine and it made my life quite a lot easier. Having said that, the PS environment is not the most user friendly i.e. you have to get used to it.

Hence I would concur with previous posters, think about AutoIt and AHK first before considering PowerShell.

robinsiebler

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 83
    • View Profile
    • Donate to Member
AutoIt has a Graphical Debugger, which is awesome!  :)
Happiness is laced with shards of pain