Welcome Guest.   Make a donation to an author on the site April 25, 2014, 02:22:16 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2010! Download 24 custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: looking for programming language  (Read 1881 times)
kalos
Member
**
Posts: 978

View Profile Give some DonationCredits to this forum member
« on: October 09, 2011, 05:24:37 PM »

hello

Trying to start learning a programming language, I chose Javascript, since it is the most widely used one. However, the fact that it does not work independently, but only according to its environment, made me drop it. Then, I moved to VBScript, which was nice to see how easy it is, but I realized it is limited: you cannot display date using more than 3-4 formats, while Excel offers you 17-18, and to be honest, I expect a programming language to give you the option to create your own date format.

So, do you have any suggestions that would make my searching for a powerful programming language easier?

Given the fact that it must be able to identify and interact with windows and controls of other apps, with databases, with website elements, etc

thanks!
Logged
Eóin
Charter Member
***
Posts: 1,400


O'Callaghan

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: October 09, 2011, 06:03:53 PM »

Interacting with windows versus with website elements are hugely separated domains. Can you be a bit more specific?
Logged

Interviewer: Is there anything you don't like?
Bjarne Stroustrup: Marketing hype as a substitute for technical argument. Thoughtless adherence to dogma. Pride in ignorance.
Renegade
Charter Member
***
Posts: 10,366



Tell me something you don't know...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: October 09, 2011, 08:06:13 PM »

Given the fact that it must be able to identify and interact with windows and controls of other apps, with databases, with website elements, etc

Eóin makes a good point that you kind of need to figure out what you want to do... but, if that's the list... Any .NET language will let you do that. e.g.:

Interact with:

  • Windows - This is very basic, but you may need pinvoke
  • Controls of other apps - You will need pinvoke
  • Databases - ADO.NET
  • Website elements - The WebBrowser control or MozNET can help you do this (or WebClient etc.)

Goals are important there as well, e.g. What do you want to do with a web site or web site element?

Logged

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker
Ath
Supporting Member
**
Posts: 2,134



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: October 10, 2011, 01:36:17 AM »

I chose Javascript
searching for a powerful programming language
How come you use those two statements related in 1 message? Or did I misunderstand and are you now looking for a more powerful language than jscript? Cool

Any .NET language will let you do that.
+1
Logged

kalos
Member
**
Posts: 978

View Profile Give some DonationCredits to this forum member
« Reply #4 on: October 10, 2011, 01:55:39 PM »

to be honest, I don't know what I want to do, I just know that I want to learn a language that will worth it
vbscript failed, isn't the reason mentioned in first post a good reason?
Logged
f0dder
Charter Honorary Member
***
Posts: 8,774



[Well, THAT escalated quickly!]

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: October 10, 2011, 02:12:36 PM »

How come you use those two statements related in 1 message? Or did I misunderstand and are you now looking for a more powerful language than jscript? Cool
Ummm, JavaScript actually is pretty darn powerful (if also pretty quirky and imho not super suitable for everything) as a language - just because you normally only see it in webbrowsers with a limited standard library doesn't mean the language itself isn't powerful smiley
Logged

- carpe noctem
MilesAhead
Member
**
Posts: 4,468



View Profile Give some DonationCredits to this forum member
« Reply #6 on: October 10, 2011, 03:27:30 PM »

If you want to manipulate controls on Windows apps, use database etc.. I would recommend AutoIt3.  Esp. if you are new to programming.  The syntax is very much like the Basic language. It's designed to send macros/keystrokes to windows and controls on windows.  It has SQLite library for db stuff.

http://www.autoitscript.c...-script-editor/downloads/

Forums to get help
http://www.autoitscript.com/forum/


The weakest element may be web page interaction.  But I haven't explored that area.

Here's a "hello world" program that demonstrates displaying a messagebox and also using a For Next loop

[copy or print]

For $x = 1 To 3
MsgBox(0,"Hello World Program","Hello World! #" & $x & " of 3")
Next

The language and tools are free.  Also available are customized versions of SciTE editor.  You can use any editor, but the SciTE is set up to run and compile right out of the editor. Also has "intellisense" for auto completion of keywords and functions.  Functions that aren't built in or available as 3rd party scripts, such as Windows API calls that haven't been wrapped in AutoIt code, can be called using DllCall.

As example, to see if Aero Glass is enabled on Vista or Windows Seven DllCall is employed in this function

[copy or print]
;returns non 0 if Glass is enabled on Vista/W7
Func _GlassEnabled()
$retValue = DllCall("dwmapi.dll", "int", "DwmIsCompositionEnabled", "int*", "")
If @error Then Return 0
Return $retValue[1]
EndFunc   ;==>_GlassEnabled


AutoIt3 is Windows platform only.  It requires XP or later. It also has COM Object support.  Anything you see on MS site for using stuff like Shell.Application or Scripting.Dictionary you should also be able to do easily in AutoIt3.

Logged

"I don’t want to belong to any club that would have me as a member."
 - Groucho Marx

widgewunner
Member
**
Posts: 81


View Profile Give some DonationCredits to this forum member
« Reply #7 on: October 10, 2011, 10:16:41 PM »

I would second the motion recommending JavaScript (which is and will remain _everywhere_). To learn it proper-like, get and study Flanagan's The Definitive Guide. The recently released 6th edition covers the most recent JavaScript version (ECMAScript5) and all the cool new HTML5 stuff that will soon be running the net. One great thing about JavaScript is that to get started, all you need is a browser and a text editor.

That said, there's also lots of really smart folks who like Python.
Logged
Renegade
Charter Member
***
Posts: 10,366



Tell me something you don't know...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: October 11, 2011, 05:24:38 AM »

The weakest element may be web page interaction.  But I haven't explored that area.

If it can hook into typical C++ APIs, then it can do it. However, a lot of that stuff gets EXTREMELY messy with the shdocvw.dll and mshtml.dll/tlb. Another browser engine is likely better to use unless you know what you're doing. Again, you need to be able to hook into typical C/C++/.NET APIs/SDKs/components.

For web browser automation, I'd recommend starting with .NET and the WebBrowser in Visual Studio. It's very easy to get started with, and the .NET interface is relatively clean there. Still, it can get very messy if you need to start doing some complex things. Check my blog at RenegadeMinds.com or Cynic.me and search for "browser" as I've written a fair bit about it in the past.

Logged

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker
kalos
Member
**
Posts: 978

View Profile Give some DonationCredits to this forum member
« Reply #9 on: October 12, 2011, 01:15:19 PM »

as for interacting with other GUI's, is there anything more than a Windows info tool, like http://msdn.microsoft.com...-us/library/ms727247.aspx, that will give more information?
any language or something? for the text in controls that you see, but you cannot reveal it in your windows info tool, etc
Logged
MilesAhead
Member
**
Posts: 4,468



View Profile Give some DonationCredits to this forum member
« Reply #10 on: October 12, 2011, 03:14:41 PM »

Both AutoIt3 and AutoHotKey come with their own spy.  They also have "hidden window" and "hidden text" modes.  You'll have to look through the documentation for how they stack up against .NET stuff.

If you try AutoHotKey I recommend starting right off with AutoHotKey_L. It has object support and other advanced features that vanilla AHK doesn't.

AutoIt3 can definitely pull text and send text to controls.  I've only used it in rudimentary fashion when deciding if that or clipboard was the better way to pull file names from Explorer Windows.  But macro manipulation is what they are both about.

Logged

"I don’t want to belong to any club that would have me as a member."
 - Groucho Marx

kalos
Member
**
Posts: 978

View Profile Give some DonationCredits to this forum member
« Reply #11 on: October 12, 2011, 03:39:57 PM »

Both AutoIt3 and AutoHotKey come with their own spy.  They also have "hidden window" and "hidden text" modes.  You'll have to look through the documentation for how they stack up against .NET stuff.

If you try AutoHotKey I recommend starting right off with AutoHotKey_L. It has object support and other advanced features that vanilla AHK doesn't.

AutoIt3 can definitely pull text and send text to controls.  I've only used it in rudimentary fashion when deciding if that or clipboard was the better way to pull file names from Explorer Windows.  But macro manipulation is what they are both about.



I think they cannot read/see the text of the url in your web-browser's address bar, though you can clearly see it. They need to focus the address bar and copy it, this is the only way afaik.

I was wondering if another language or something would offer something better, would be able to access and read deeper parts of the apps and OS

Logged
MilesAhead
Member
**
Posts: 4,468



View Profile Give some DonationCredits to this forum member
« Reply #12 on: October 12, 2011, 05:33:41 PM »

I would suggest you check the help docs for entries that start with "Control" such as ControlGetText.  If you search the forum for the language chances are it's already been answered there.
Logged

"I don’t want to belong to any club that would have me as a member."
 - Groucho Marx

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.04s | Server load: 0 ]