Jump to content

Recommended Posts

Posted (edited)

Hello :(, I am very sad today :(... I (half) made a complicated function which already exists in AutoIt... I call it CalcStringExp (Calculates math expression which are enclosed in strings [or which are in a string variant]) which is a clone of Execute. Here is the source code if you wish to see it (its not fully complete):

  Reveal hidden contents

 

 Lesson Learnt: Always search the help file as many times as possible before committing to anything! (like asking a question or making a function)

 

TD :(

 

P.S This thread was lost in yesterday's upgrade, so I re-posted it (that mean today = yesterday!)

Edited by TheDcoder
Added (AutoIt) code tags

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted

Still room for improvement by the looks of things. Perhaps add appropriate comments and remove the use of magic numbers (do a search for it) would be a good place to improve your coding skills

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted
  On 6/27/2015 at 9:15 AM, Jos said:

maybe you should simply refrain from posting this stuff as it feels you merely are seeking attention.

Oh no, I wanted to post the code, maybe someone can find my work useful

  On 6/27/2015 at 9:15 AM, Jos said:

What is this thread doing in the dev forum?

It has code in it, so I think it would fit in dev forum, :). But if you feel like moving it to example script, do it! I don't have any objections :)

 

TD :)

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted

I don't thing that you wasted your time.
I also made few functions which already exist in Autoit such as Array2DSearch 

but I know that even if I didn't have to develop these functions, it is still not wasted time because that's how you develop "programing thinking" ability. If you will keep doing it a lot then you may come to a state that when it is about simple functions - it is faster to develop then  then find then in the help file.

If you will only based on the help file (In a way that you don't create new functions) then this is bad thing. But I see that this sentence is unnecessary for you because you know it.

  • Developers
Posted
  On 6/27/2015 at 9:21 AM, TheDcoder said:

Oh no, I wanted to post the code, maybe someone can find my work useful

It has code in it, so I think it would fit in dev forum, :). But if you feel like moving it to example script, do it! I don't have any objections :)

 

TD :)

My friend, let me tell something essential; When people write a post like I did it isn't really open for debate but merely a friendly way of telling you something.
So there is no need to respond but just listen to what was said.
Hope I made myself more clear this time.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Jos locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...