Jump to content

Recommended Posts

Posted (edited)

After looking at this article about AutoIt on wikipedia, I thought the second code example (find average) could be replaced with one more suitable for wider readership. I came up with this plan which I hope will encourage your support. The challenge is to write a new example for the page. You must submit the code to an arbiter who will remove any reference to you, the author, to ensure impartial judgement. The arbiter will reveal the winner to everyone after the winner has been selected.

The new example should...

1. comply to standard coding practices
2. be easy to follow
3. do something useful
4. be of interest to a wide audience
5. comply with the rules of the forum
6. not be longer than approximately 50 lines of code

7. convey the ease of use of AutoIt to beginners

Names will be removed from submissions by an independant arbiter before being judged.
MVPs will vote for the code they like best.
Since MVPs are on the judging committee, MVPs are not allowed to submit an entry themselves.
Team efforts can also be submitted.
All submissions go to the arbiter(s).

The deadline for submissions will be 10th February 2015. The arbiter is jaberwacky. All submissions should be sent to the arbiter. May the best code win!

Edited by czardas
Posted (edited)

No! I want submissions to be anonymous until after the winner has been selected. That's where the arbiter comes in: to ensure there is no reference to the author of the code being judged.

Edited by czardas
Posted

Then I guess you will post further instructions later (like how to submit entries)?

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Posted (edited)

Update: jaberwacky has agreed to act as arbiter. Code submissions for this challenge must go to him. Only jaberwacky will know which piece of code was written by whom. The code will then be passed on to me. After a winner has been selected, the arbiter will inform everybody who the author of the code is.

Edited by czardas
Posted

I think this is more an egg hunt for a widely useful script that is probably already in existence on the forum, and since submissions are anonymous MVPs might as well play too.  I am probably going to submit one of their solutions anyway as I doubt I am suddenly going to start voiding widely useful anythings.

  Reveal hidden contents

Posted (edited)

@boththose - This is a re-write of the second example on the Wiki page.  I think it is an excellent excercise, hopefully there will be full participation. 

 

Apologies, my comprehension skill seem to have diminished considerably. :

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Posted
  On 1/28/2015 at 11:25 PM, czardas said:

After looking at the article about AutoIt on wikipedia,......

 

Please add link to this article.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

#include <MsgBoxConstants.au3>

If MsgBox($MB_ICONQUESTION + $MB_OKCANCEL, 'Something, something, something, Dark Side.', 'Would you like to watch the movie?') = $IDOK Then;ask user to watch the movie
    Run('telnet.exe towel.blinkenlights.nl');run the movie for user
EndIf
;have fun, btw dont blame me if you dont have telnet.exe on new OS :P, XP works just fine :)

:muttley:

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)

  Reveal hidden contents


460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Posted
  On 1/29/2015 at 10:11 AM, Manadar said:
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("This is some text.") ; This simulates keyboard typing
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Save")
;WinWaitActive("Notepad", "Do you want to save") ; When running under Windows XP
Send("!n") ; Simulates keyboard Alt+N (meaning No)

 

1.

I propose to use class names insteed English names of this button or titles.

2.

I propose to run "AutoIt v3 Window Info" and automate it toogether with Notepad

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Are we limited to how many we can submit?

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted
  On 1/29/2015 at 6:38 PM, JLogan3o13 said:

This is an Example Challenge - if you would like to do it differently, submit your version rather than proposing people change theirs.

Indeed you are right.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Moderators
Posted

I would say you shouldn't rush it, and put forth your best effort, rather than a shotgun approach. Makes it much easier on our judge to go through them all.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Posted

Was not my intent. ^_^

But, thank you for the advice.

Snips & Scripts

  Reveal hidden contents

My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Posted (edited)

What are your thoughts on or experiences with a GUI jam packed with every example available?  In my experience that is where autoit really sets itself apart. something rudimentary where the same string is used many different fashions, everything is labeled like a preschool room ("im a xxxxx")  and all variables are labeled with very clear long names rather than to standard?  Going after all the easy one liners for sure...maybe get some sweet GDI+ one liners from UEZ....anyway heres my first couple to hopefully show the idea.

GUICreate("Example" , 400 , 400)

$ctrl_AVI = GUICtrlCreateAvi("C:\Program Files (x86)\AutoIt3\Examples\GUI\sampleAVI.avi" , 0 , 20 , 20 , 40 , 40)
$ctrl_label = GUICtrlCreateLabel("That is an AVI, this is a label" , 61 , 10 , 55 , 70)


GUISetState(@SW_SHOW)
sleep(4000)
Edited by boththose

  Reveal hidden contents

Posted (edited)
  On 1/29/2015 at 6:44 PM, MikahS said:

Are we limited to how many we can submit?

 

I never thought about this. I also didn't want to define every detail of this challenge. You have approximately 50 lines of code to play with. I think two small examples in the same file is acceptable, providing the examples are readable. I don't want jaberwacky to have to deal with multiple entries from the same participant. Make sure you have tested your code thoroughly before submission. Also you don't have to tick every box on the list. For me the most important is #7. convey the ease of use of AutoIt to beginners.

Same answer to boththose.

Edited by czardas

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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