| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Fri Feb 22, 2008 4:28 pm Post subject: |
|
|
| majkinetor wrote: | | You can just go and use Ranorex. |
...**** THAT...PAYWARE! NO!...
Lua's current syntax sucks...it's fine if they keep it & call it LuaDumbass, but they need to create a JavaScript-like syntax...with if(){} not if then else...& "&& || !" not "and or not"...also the way they convert x="10"+1 to 11 is really dumb...it should equal 101...+ is concat (& add) not anything else!... |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3615 Location: Belgrade
|
Posted: Fri Feb 22, 2008 4:51 pm Post subject: |
|
|
 _________________
 |
|
| Back to top |
|
 |
Guest
|
Posted: Fri May 23, 2008 9:44 pm Post subject: |
|
|
| i agree if ahk is going to intergrate external language it must be lua not else. why? lua is in second position of simplicity ranking right after autohotkey. intergrating lua does not mean that we just get more commands. we will get much possibilities. wxlua is good sample. and many other lua-bindings. intergrating lua may require less effort than adding more standard windows controls that ahk missing currently. if you could learn ahk. there will not be any problem of learning lua. |
|
| Back to top |
|
 |
Fry(^) Guest
|
Posted: Sat May 24, 2008 4:18 pm Post subject: |
|
|
| majkinetor wrote: | | AHK lang sucks IMO. |
Thats crazy talk.
AHK does not suck |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Sat May 24, 2008 10:22 pm Post subject: |
|
|
Our dear anonymous guest is a good troll...
If he wants JavaScript syntax, just use JavaScript, I don't see where the problem is.
I love C-like syntax, but I have absolutely no problem with Lua syntax, which is simple and terse, and probably much more readable for the newcomer than C syntax, with so much symbols to memorize.
And unlike what he writes, + is for better for addition only, not for concat...
Autoconversion of types is common in some languages, Perl trying hard to make it in every possible form (like "x" * 10 giving "xxxxxxxxxx"...)
Back to original idea, I only skimmed, but I don't see the interest to embed a language into another.
I was playing with the idea of using the code of AHK as library supported by Lua, but it is too much work, and as long as AHK is GPL (still need some bits to be rewritten to get rid of it), I wouldn't take this work anyway. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3615 Location: Belgrade
|
Posted: Thu Jun 05, 2008 3:45 pm Post subject: |
|
|
| Philho wrote: | | Back to original idea, I only skimmed, but I don't see the interest to embed a language into another. |
Nobody said that. The point was to totaly remove the weakest part of the AHK - its language. Not to embade Lua into the current form of AHK - that is horror.  _________________
 |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2391
|
Posted: Fri Jun 06, 2008 4:16 am Post subject: |
|
|
| majkinetor wrote: | | The point was to totaly remove the weakest part of the AHK - its language. | Thousands of users seem to disagree... or they'd be using lua instead of AHK... |
|
| Back to top |
|
 |
Tuncay
Joined: 07 Nov 2006 Posts: 383 Location: Berlin
|
Posted: Fri Jun 06, 2008 4:24 am Post subject: |
|
|
| corrupt wrote: | | Thousands of users seem to disagree... |
... does not mean, that all of them knows about Lua and the advantages what we could have ... |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2391
|
Posted: Fri Jun 06, 2008 4:30 am Post subject: |
|
|
| Tuncay wrote: | | corrupt wrote: | | Thousands of users seem to disagree... |
... does not mean, that all of them knows about Lua and the advantages what we could have ... | True, but it likely means that the majority of them like the current syntax/functionality. The suggestions here sound like the outcome would end up being lua with AHK functionality added in - not the other way around... unless I'm misunderstanding... |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 471
|
Posted: Fri Jun 06, 2008 3:21 pm Post subject: |
|
|
Relative new commer and Newb here
but I agree the syntax of ahk is ..... well clunky the language alone
the functionality is great
and what is it people finds so objectionable to a strict well defined language that is simple and well defined
i use vb js php fluently
of them my fav is php of course
but to much flexibility leads to poor development initiatives because it creates to many obsticals
| Code: | ahkvar:="this is text"
ahkvar= % "this is text"
ahkvar=this is text
ahkvar=
(
this is text
)
|
seriously i could go on and on why why do we need so many ways to set text yes im aware one is expression one is forced expression one is text
one is multi line
good god
concatenate if you need all of that instead
is all thats needed
variables dont need to be in quotes any how and we have a concatenation and new line characters already
sorry im done now just figured i would add to this rant _________________ Read this
Com
Automate IE7 with Tabs |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6560 Location: Pacific Northwest, US
|
Posted: Fri Jun 06, 2008 3:23 pm Post subject: |
|
|
:= and = will be merged into just = in v2 of ahk _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2391
|
Posted: Sat Jun 07, 2008 4:57 am Post subject: |
|
|
| tank wrote: | seriously i could go on and on why why do we need so many ways to set text yes im aware one is expression one is forced expression one is text
one is multi line
good god
concatenate if you need all of that instead
is all thats needed
variables dont need to be in quotes any how and we have a concatenation and new line characters already | The main reason was likely to allow stuff like | Code: | a = blah
myvar := a
%myvar% = Hello World
MsgBox % "blah = " . blah | Do ya feel it now? Do ya? huh? Do ya?  |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 471
|
Posted: Sat Jun 07, 2008 5:05 am Post subject: |
|
|
| corrupt wrote: | | tank wrote: | seriously i could go on and on why why do we need so many ways to set text yes im aware one is expression one is forced expression one is text
one is multi line
good god
concatenate if you need all of that instead
is all thats needed
variables dont need to be in quotes any how and we have a concatenation and new line characters already | The main reason was likely to allow stuff like | Code: | a = blah
myvar := a
%myvar% = Hello World
MsgBox % "blah = " . blah | Do ya feel it now? Do ya? huh? Do ya?  |
all of which can be accomplished without the need for all of the insain ways it is done in ahk
in most other lang's _________________ Read this
Com
Automate IE7 with Tabs |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2391
|
Posted: Sat Jun 07, 2008 5:18 am Post subject: |
|
|
| tank wrote: | all of which can be accomplished without the need for all of the insain ways it is done in ahk
in most other lang's |
AutoHotkey isn't the only language that I use... What's so insane about the current methods? They are very simple... |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3615 Location: Belgrade
|
Posted: Sat Jun 07, 2008 12:34 pm Post subject: |
|
|
| Quote: | | What's so insane about the current methods? They are very simple... |
They are unintuitive, error prone and generaly very limited in expressivness. You also don't have some basic programming mechanisms.
It didn't matter much when AHK was generaly used for 10 - 50 line scripts. Today AHK is used more broadly so now it does matter.
Also, Lua is separately developed wich means that functionality could change on its own, and language on its own by the team of dedicated ppl.
About "simple" part, to me, Lua is easier to learn and understand. _________________
 |
|
| Back to top |
|
 |
|