;    NOTE: sample script code as a low formated webpage  
;   ###########################################################

;   ###########################################################
;   ##                                                                                                               ##
;   ##    -_- easy Autohotkey.com#_samples @ SCR1PT.tk -_-        ##
;   ##                                                                                                               ##
;   ###########################################################
;   ###########################################################
;           incl. 9 scripted functions with understandable code lines  

;  THE requ. PREVOIUS STEPS  1) download  and click the open source program  AutoHotkey.exe
;  2) remove in the editor  the previously created sample code with this "code page"  and save it
;   (to copy this page  click into the page  ctrl + a  ctrl + c)
;  3) click again the downloaded  file AutoHotkey.exe

; HINTS downloading and activating doesn´t cause registry changes
; permanently activate your script(s) via  shortcuts in the Startup folder

;  RECOMM. the fastest way to test my sample script
; 1)  download this "scripted" code   AutoHotkey.ahk to your "(My) Documents" folder
; 2)  download and click   4rtist.com/ahk.exe
; 3) you will get a H tray icon where you can choose after a rightclick edit/reload script   

; THE SCRIPTED functions
; 1) -_- remappings i.e. capslock to @
; 2) -_- text replacements i.e. "btw" with "by the way"
; 3) -_- "run web address" "run (app)path" "send text" via control keys [Ctrl]^ [ALT]! [Win]# [shift]+ 
; 4) -_- special character + command via a key i.e. rwin ins end +...
; 5) -_- 2 or 3  url´s/pathes via [x]+[y] (+[z] ) (+..)
; 6) -_- DATE/time via the shortcut [alt] + d
;  7) -_- search highlighted text simultaniusly @ google + wikipedia
; 8) -_- generate the code for 3 web-urls with [ctrl] + [3]
; 9) -_- how to edit,  to reload and to speed up ahk scripts -_- dowbloadable scripts/apps
; 10) -_- unicode output
; 11) -_- the wikipedia text about Autohotkey

; NOTE: red lines beginning with a whitespace are code lines -_- followed by ;comments

;#################################################################################
 #singleinstance force ; keep this line if you intent to reload the edited script via a click on AutoHotkey.exe   #
;#################################################################################

;   ######################################
;   #                                                                        #
;   # 1) -_-remapping  capslock to @ -_-                #
;   #                                                                        #
;   ######################################

 capslock::@          ; thats all!  key list 4rtist.com/keys i.e. ins numpadminus f1


;   ################################
;   #                                                            #
;   # 2) -_- text replacements -_-                 #
;   #                                                            #
;   ################################
 
 :*:btw::by the way         ;TYPE "btw"

 ::tia::thanks in advance    ;TYPE "tia" + "ENTER" or "Space"

;   #####################################################################

;   #                                                                                                                                     #
;   # 3) shortcuts with ALT, Ctrl, WIN, ALT+WIN, ctrl+WIN, ctrl+ALT, SHIFT+ keys      #
;   #                                                                                                                                     #
;   #####################################################################


 #1::run http://SCR1PT.tk              ; hold down [win] hit [1]     
;                                                             Option: behind run "x:\firefox\path\ff.exe" or explorer
 
 ^n::run notepad                             ; hold down [ctrl] hit [n]
 
 !f::run c:\Windows                          ; hold down [alt] hit [f]   
 
 !^b::send by the way                       ; hold down [alt] + [ctrl] hit [b]  

 +f1::run notepad c:\pc.txt                 ; hold down [shift] hit [f1]              
; possible  +space +ins +end +..  NOT +# +! +^   see 4rtist.com/keys  

 
;   #####################################################
;   #                                                                                                      #
;   # 4) command + special character via the "rwin" key                         #
;   #                                                                                                      #
;   #####################################################

 rwin::send {#}{enter}

         ;this script line allows to shorten URL´s with 3 steps less! View 1kg.de#__or__addressTRICK.tk

         ;in my eyes the second important script line for your pc after capslock::@



;   ##########################################################
;   #                                                                                                                #
;   # 5) 1 ore more (web)pathes with one [x][y]([z])shortcut                            #
;   #                                                                                                                #
;   ##########################################################

 :*:xy::                     ;type [x] + [y]  Option: without the "*"  [x] + [y] + [space] (or [enter])
 run http://1mm.de
 return

 :*:zyx::                    ;type [Z] + [y] + [x] = reverse
 run notepad
 run explorer http://3.ly/ahk
 run http://6.gp/AHK
 return

           ;!!!Note with up to 3 digit shortcuts you can trigger theor. ~ 40x40x40  =more than1000 shortc.


;   #####################################################
;   #                                                                                                      #
;   # 6) -_- DATE +time  via the shortcut [alt] + d                                 #
;   #                                                                                                      #
;   #####################################################

 !d::send %A_DD%-%A_MM%-%A_YYYY% %A_Hour%:%A_Min%

       ; type [ALT] + [d] Output »16-05-2010 11:50

       ;OPTIONs »connected with "." "space"
       ;if you intent to use [x][y] shortcuts there are 3 lines reqiered, see the xy url example above


;   ########################################################################
;   #                                                                                                                                            #
;   #  7) -_- search highlighted text simultaniusly @ google + wikipedia                                         #
;   #                                                                                                                                            #
;   ########################################################################

  ^2::          ;=[ctrl] + [2]
  send ^c    ;= send [ctrl] + [c] =copy to clipboard
  clipwait
  run http://google.com/search?q=%clipboard%
  run http://en.wikipedia.org/wiki/%clipboard%
  return



 
;   ########################################################################
;   #                                                                                                                                            #
;   #    8) -_- generate the code for 3 (web)pathes with [ctrl] + [3]                                               #
;   #                                                                                                                                            #
;   ########################################################################

 #3::send {:}{*}{:}Keys{:}{:}`rrun http{:}//`rrun http{:}//`rrun http{:}// `rreturn {left 49}
 
         ;the caret moves 49 steps back to the "Ke|ys" position


;   ###############################################################################
;   ###############################################################################
;   ##                                                                                                                                                      ##
;   ## 9) to RELOAD, to MODIFY + to speed up scripts                                                                        ##
;   ##                                                                                                                                                       ##
;   ##  -_- RELOAD -_- rightcklick on the H tray icon »reload                                                                ##
;   ##      or click again the r.exe* file or a shortcut  *auth.k.exe renamed                                                  ##
;   ##                                                                                                                                                      ##
;   ##  -_- Modify rightcklick on the tray icon »edit                                                                                   ##
;   ##     or create an "edit shortcut" for the AutoHotkey.AHK file                                                             ##
;   ##      »rightclick on the shortcut »propeties » add "notepad "                                                                ##
;   ##       to the "target" field                                                                                                                    ##
;   ##                                                                                                                                                       ##
;   ##  -_- the ahk full install (3.ly/ahk#_2mb) enhances ahk scripts                                                           ##
;   ##  2 steps in one! The toolcollection activ´aid with 60 extensions includes                                            ##
;   ##  the full install => 3.ly/tool                                                                                                               ##
;   ##                                                                                                                                                      ##
;   ##  -_- search for more scripts/apps @                                                                                              ##
;   ##     autohotkey.com/docs/scripts                                                                                                     ##
;   ##     autohotkey.com/forum + de.autohotkey.com/forum                                                                   ##
;   ##                                                                                                                                                     ##
;   ##  -_- you will find 8 ahk translations                                                                                                ##
;   ##    to  .de .fr .it .ru .jp .gr .pt .kr .cn                                                                                                  ##
;   ##                                                                                                                                                      ##
;   ##                                                                                                                                                      ##
;   ###############################################################################
;   ###############################################################################

;   ###############################################################################
;   ###############################################################################
;   ##                                                                                                                                                      ##
;   ##                                                                                                                                                      ##
;   ## 10) UNICODE pastings  ->  AutohotkeyU.tk                                                                                 ##
;   ##                                                                                                                                                      ##
;   ## -_- single line output                                                                                                                        ##
;   ##      requieers 3 line code and  extra lines for all unicode shortcuts  @ the end*                                   ##
;   ##         sample 4rtist.com/ahku#c                                                                                                     ##
;   ##                                                                                                                                                       ##
;   ## -_- use instead of Autohotkey.exe the 4rtist.com/autohotkeyu.exe*                                                  ##
;   ##                                                                                                                                                       ##
;   ## IMPORTANT files with the aim to paste unicode characters must be saved                                    ##
;   ##    with "UTF8" encoding  (last field + last option in the save dialog box)                                            ##
;   ##                                                                                                                                                      ##
;   ##   The program name changed in 2010 from ahkU to autohotkey_L     ( u + l merged to l)                   ##
;   ###############################################################################
;   ###############################################################################


/* 10) AUTOHOTKEY is a free, open-source utility for Windows. With it, you can:

    * Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by
       hand or use  the macro recorder.

    * Create hotkeys for keyboard, joystick, and mouse. Virtually any key, button, or combination can become a hotkey.

    * Expand abbreviations as you type them. For example, typing "btw" can automatically produce "by the way".

    * Create custom data-entry forms, user interfaces, and menu bars. See GUI for details.

    * Remap keys and buttons on your keyboard, joystick, and mouse.

    * Respond to signals from hand-held remote controls via the WinLIRC client script.

    * Run existing AutoIt v2 scripts and enhance them with new capabilities.

    * Convert any script into an EXE file that can be run on computers that don't have AutoHotkey installed.

    AutoHotKey Developer *\