AutoHotkey Community

It is currently May 27th, 2012, 9:12 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
PostPosted: October 16th, 2011, 2:58 am 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
http://aboutscript.com/blog/autohotkey-tutorials

I'm going to make a series of tutorials about AutoHotkey. They are available in both videos and written blog posts. I think it works best if you use both, and that's how they're designed.

You can also find the videos on Screenr, YouTube, and my Twitter feed.

Let me know what I can do better. Be honest, I won't get mad :)

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Last edited by Frankie on October 16th, 2011, 3:13 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
PostPosted: October 16th, 2011, 9:55 am 
Offline

Joined: June 14th, 2009, 7:48 pm
Posts: 331
Perfect, Registered ! :)

Users searching for tutorials could also benefits from :

[AHKTuts] AHK Video Tutorials from RaptorX

Thank you ! ! !

:) :P :D

_________________
AHK No BlanK AHK No Comments and more


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 16th, 2011, 11:51 am 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Quote:
about:ahk Tutorials (Videos & Explainations)


Frankie, is it a typo or intentional?

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 16th, 2011, 3:16 pm 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
It was a typo, and one I'd probably never see. Thanks!


Last edited by Frankie on October 17th, 2011, 1:03 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 17th, 2011, 1:02 am 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
New content!

Two new videos and a blog post to explain in more detail.

The blog post includes the high quality Screenr video and more. I recommend it over just Screenr/YouTube.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2011, 5:11 pm 
Offline

Joined: February 16th, 2007, 8:46 pm
Posts: 62
Imo it would be cool if you can team up with RaptorX, and each of you could cover a certain topic inside AHK's world. Creating a same video about the same topic is not that efficient. I really appreciate your work!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2011, 6:25 pm 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
Hi S0und, you have a good point. I'll try to get in touch with Mr. RaptorX and see what we can do.

I made a new post (and two new videos) yesterday about Send. The next on my to-do list is Gui. I don't think either of those overlap with current videos.


Two new videos and a blog post to explain in more detail.

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2011, 10:02 pm 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
New video up on YouTube!

Check it out, we make a simple Notepad clone. It was improv but I think it came out pretty well. Let me know what you think. I moved away from Screenr so now I can ramble on past 5 minutes :)

Next is either GuiControl and more gui stuff like that, or functions. It doesn't really matter to me which one, but I'll just move on to functions unless someone wants more detail.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2011, 3:25 am 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
Two new videos in one day! I haven't made any in a while, so I think a come back was in order :)

AutoHotkey #9: Functions
AutoHotkey #10: Conditionals (If, Else If, Else)


They're a bit longer than the previous ones at about 15-16 minutes each. Thanks to berban for giving me ideas for examples, and helping with the series plan.

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2011, 3:29 am 
Hey I really like your voice by the way. Sounds very soft, clear, and intelligent.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2011, 7:32 am 
You made a statement here (in red) of what not to do but did not give an alternate example.

Quote:
Do use them when… … you are using the = assignment operator
… you are using a command. If there is no ( after the action’s name: it’s a command.
Command: StringGetPos, …
Function: InStr(…)


Do NOT use them when…
… you are using parenthesis, e.g., Func(Var)
… You are using the := expression assignment operator
… traditional if statements, which you shouldn’t be using anyway, e.g., if Var = literal string value
… you are in doubt. It’s easier to notice a MsgBox displaying the name of your variable than a blank MsgBox
Can you give an example replacement for IF Var = literal string value ?

thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2011, 4:05 pm 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
Anonymous wrote:
You made a statement here (in red) of what not to do but did not give an alternate example.
[...]
Can you give an example replacement for IF Var = literal string value ?

thanks
Sure. These two if statements are the same,

Code:
IF Var = literal string value
  MsgBox Equal
IF (Var = "literal string value")
  MsgBox Equal


The reason I recommend the second one is because it's confusing to have an expression on one side and something else on the other. Here's another example of when they're the same.

Code:
; This will NOT do what you'd expect
If Var = AnotherVar
  MsgBox Equal

; "AnotherVar" isn't actually a variable.  It's a literal string in both IF statements
If (Var = "AnotherVar")
  MsgBox Equal


Let me know if I completely missed the point :)

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2011, 11:29 pm 
Great examples.

This was what I was looking for...
Code:
IF (Var = "literal string value")


This is probably proper coding techniques but it does add 4 extra keystrokes to do the same thing.

Multiply that times many IF statements and the keystrokes could add up.

I will make it a practice to do my If statements the proper way.

thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 20th, 2011, 1:15 am 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
I see another benefit of If () as opposed to If:
Code:
If (var == var2) ; case-sensitive if
If var == %var2% ; compares var1 with an equals sign, a space, and the contents of var2, all case-insensitively
has been the source of many bugs in the past for me...

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: garry and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group