Sunday, 2024-05-12, 8:42 PM
Welcome Guest

Blog

Introduction:
Converting Decimal to Hexadecimal is easy with AutoHotkey, doing that again and again makes your script become longer. So I made a function to make it simpler.

The Code:

Code
; Dec2Hex.ahk

Dec2Hex(Var){
; Convert a decimal integer to hexadecimal:
SetFormat, IntegerFast, hex
Dec2Hex += Var ; Sets Dec2Hex (which previously contained 11) to be 0xb.
Dec2Hex .= "" ; Necessary due to the "fast" mode.
SetFormat, IntegerFast, d
StringTrimLeft, Dec2Hex, Dec2Hex, 2 ; removes 0x from the string
StringUpper, Dec2Hex, Dec2Hex ; makes it all caps
sDec2Hex .= ... Read more »
Views: 13527 | Added by: GarenaZero | Date: 2011-04-21 | Comments (1)

This is a script to make a mouse capture or mouse trapper or whatever it calls. I added comments so I will not explain them one by one.

You can download the script here, WinCapture.ahk.

Script Code:

Code
; This script is based on Bkid's script.

#Persistent
#NoEnv
#SingleInstance ignore

Menu, Tray, NoStandard ; Removes Tray Menu Standard Items.
Menu, Tray, Add, Exit, ExitSub ; Adds an 'Exit' menu

; Hotkey to be used depends of the coder.
SetScrollLockState, Off ; M ... Read more »
Views: 1638 | Added by: GarenaZero | Date: 2011-04-11 | Comments (0)

I assume that you already read my first tutorial on how to create a simple hotkey. In this tutorial, we will be going to create a simple DotA Hotkey.

On the previous tutorial, we created a simple hotkey, and today we will going to make a simple DotA Hotkey.

We will use the same syntax, see below, to create the hotkey. Lets say for example the item slot 1 or the item on Numpad7, the upper-left item, the commonly used hotkey is Alt+Q so that's is what we are going to use.

And this is the syntax that we are going to use:

Code
YourHotkey:: Send, [ Keys

YourHotkey = your desired hotkey (!Q or Alt+Q in this ... Read more »

Views: 8144 | Added by: GarenaZero | Date: 2011-03-27 | Comments (0)

Hello guys. I am here to teach you how to create a simple hotkey using AutoHotkey programming language.

What is AutoHotkey?
AutoHotkey is a free, open source macro-creation and automation software utility which allows users to automate repetitive tasks. Any application user interface can be modified by AutoHotkey (for example, with Emacs style). It is driven by a custom scripting language that is aimed specifically at providing keyboard shortcuts or hotkeys.

What are Hotkeys?
Hotkeys are sometimes referred to as shortcut keys because of their ability to easily trigger an action (such as launching a program or keyboard macro).

Now you know what is AutoHotkey and Hotkey, lets have an example.

Example:
First, create a new AutoHotkey Script file and edit it using no ... Read more »

Views: 1685 | Added by: GarenaZero | Date: 2011-03-27 | Comments (0)

We can make a simple web browser in AutoHotkey with the help of COM Standard Library. It was written by Sean, one of the creators of AutoHotkey. You can read the whole post here to know more about this functions.

First download the appropriate library for you to use, depending on your AutoHotkey version. For AutoHotkey Basic users, COM.zip; for AutoH ... Read more »

Views: 3587 | Added by: GarenaZero | Date: 2011-03-27 | Comments (1)

We know that the command URLDownloadToFile is a good way to download files from the Internet if you know the URL of an item. You can't use this command with a progress bar of your updater or the other programs that use progress bar.

Thanks to JRG and Sean for this useful script. You can read the whole forum post here.

This is a preliminary/oversimplified version which will show a progress percentage of downloading of a web file.
It's written on request of our dear friend SKAN.

It was become possible due to the ingenious work by JGR, callback.dll , which is absolutely needed in the script.
Many thanks to him. ... Read more »

Views: 1567 | Added by: GarenaZero | Date: 2011-03-26 | Comments (0)

This program is to unzip a zipped file into a selected directory via command line. This script needs unzip.exe installed in your Windows directory. Anyway, you can download that here or by using the script I made. If you find bugs, please do tell me.

By the way, this script only supports extracting files into a directory by overwriting the files or doing nothing to existing files with the same name in the extraction folder.

Code
; Thanks to Info-Zip's unzip.exe
; Vi ... Read more »
Views: 4245 | Added by: GarenaZero | Date: 2011-03-25 | Comments (0)

SciTE for AutoHotkey is a free editor for AutoHotkey scripts that offers:

  • Syntax highlighting
  • AutoIndent
  • AutoComplete
  • Calltips (also known as IntelliSense)
  • Code folding
  • Custom toolbar
  • Tools for AutoHotkey scripting

Based on PhiLho's AutoHotkey lexer for Scintilla, this provides a great script editor for both newbies and experienced AutoHotkey users.

Credits:

  • Neil Hodgson for making Scintilla and SciTE.
  • Chris Mallett, Steve Gray (Lexikos), Sean and jackieku for making AutoHotkey and AutoHotkey_L.
  • Philippe Lhoste for making the LexAHK1 lexer.
  • The AutoHotkey community ... Read more »
Views: 2199 | Added by: GarenaZero | Date: 2011-03-25 | Comments (2)

SmartGUI is a tool for AutoHotkey to create GUI for your applications easily. This is an object-oriented program made by Rajat.

Main Features:

  • Completely 'What You See Is What You Get' - Move / Resize / Rename / Modify controls to see what the generated GUI will look, in realtime.
  • GUI Stealer - make copies of existing windows
  • Grid background (optional) is skinnable
  • Existing GUI scripts created using SmartGUI are re-editable
  • GUI count can be set easily from within SmartGUI
  • Move a group of controls together while keeping their relative position intact!
  • Its FREE!!
  • Lots more...

Installation is not actually required. Unzip the file then run the program. Also a Manual is included to help you on making your GUI. What is good about this program is that you can copy a window, although not all the controls cannot be copied like from the GUI made in Visual Basic, but it's ... Read more »

Views: 5547 | Added by: GarenaZero | Date: 2011-03-25 | Comments (0)

Do you want to reduce the sizes of your compiled scripts? If yes, then this is for you.

First, download AutoHotkey_sc_bin_min_size.zip. Place the extracted file, AutoHotkeySC.bin, to your AutoHotkey Compiler installation directory, commonly "C:\Program Files\AutoHotkey\Compiler\", overwriting the existing file.

It says that it will reduce the size for about 20 kB only but not all the time. Sometimes it reduces about 300 kB.

Any compiled script produced in this fashion will be dependent on MSVCRT.dll. Although this DLL is always present on Windows 2000/XP or later, older operating systems do not necessarily have it.

Views: 1326 | Added by: GarenaZero | Date: 2011-03-25 | Comments (0)

1 2 »