Bailing out
[ Moderator!: Profile deletion is not practiced in this forum ]
[ Moderator!: Topic moved from Ask for Help ]
this language is too inconsistent.
So be it, but can you please explain what you were upto.
After trying to do simple things, like access the API, it became apparant that it would take many, many months to learn the features required.
You are giving up too easily, friend.
AHK is a highly addictive scripting language. Maybe it does not suit your current requirement, but if you hang on enough - you will be pleasantly surprised by what it offers.
I will be glad to hear about your programming background.
Normally, I use Excel and VBA to do most of my work for personal use. I have done a lot of industrial control work using DDE. VBA is proably one of the most versitile languages I have ever worked with in that it will accomplish about any task that can be presented.
You described AutoHotey aswell.it will accomplish about any task that can be presented.
rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .
VBA is proably one of the most versitile languages I have ever worked with in that it will accomplish about any task that can be presented.
Well. I can say the same thing about AHK (almost).
I was using a nice tiny little utility called DevEject to eject my USB Flash drives. I got addicted to it before I realised it was not working in my Vista based laptop where I need it the most. It was simply crashing..
Lucky for me, the VC++ source code was included and I was able to reproduce the functionality in AHK ( in mere 45 lines ).
VC++ Source : deveject.cpp
AHK implementation: Safely Remove USB Flash Drive - 45L
Be informed that I do not know any of the current languages other than AHK. Originally, I was a FoxPro DB programmer and that was looong ago.
When I start on a new language, I develop snippets to aid me in future reference and practice. With AHK, I have spent most of my time trying to get answers which distracts from the main issue. If I spend all of my time trying to chase down answers...
and was designed for non-programmers
and so, is loved for its simplicity.
When I start on a new language, I develop snippets to aid me in future reference and practice. With AHK, I have spent most of my time trying to get answers which distracts from the main issue. If I spend all of my time trying to chase down answers...
Well.. There are enough snippets in this forum, but you will have to hunt them down.
Never mind.
Have you heard of AutoIt ?.. Usually non-programmers flee from there to here.
Since you mentioned about VBA, I guess it will suit you better.
I appreciate the help and hope for the best. In the years I have spent around "programming", I have found that "programmers" know too much about their product and thereby fail in conveying good interfaces to learner. If the programmer had to learn from scratch what they were trying to convey, their objectives would change dramatically.
Just like with everything: some things are easier for some people then others.
rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .
Introduction and Simple Examples
Although hotstrings are mainly used to expand abbreviations as you type them (auto-replace), they can also be used to launch any scripted action. In this respect, they are similar to hotkeys except that they are typically composed of more than one character (that is, a string).
To define a hotstring, enclose the triggering abbreviation between pairs of colons as in this example:
::btw::by the wayIn the above example, the abbreviation btw will be automatically replaced with "by the way" whenever you type it (however, by default you must type an ending character after typing btw, such as a space, period, or enter).
The "by the way" example above is known as an auto-replace hotstring because the typed text is automatically erased and replaced by the string specified after the second pair of colons. By contrast, a hotstring may also be defined to perform any custom action as in the following examples. Note that the commands must appear beneath the hotstring:
::btw::
MsgBox You typed "btw".
return
:*:]d:: ; This hotstring replaces "]d" with the current date and time via the commands below.
FormatTime, CurrentDateTime,, M/d/yyyy h:mm tt ; It will look like 9/1/2005 3:53 PM
SendInput %CurrentDateTime%
return
step-by-step on how to setup a file. AFAIK, no other language does this. they don't go this detailed.To create a new script:
[*:3iw5cata]Download and install AutoHotkey.
[*:3iw5cata]Right-click an empty spot on your desktop or in a folder of your choice.
[*:3iw5cata]In the menu that appears, select New -> AutoHotkey Script. (Alternatively, select New -> Text Document.)
[*:3iw5cata]Type a name for the file, ensuring that it ends in .ahk. For example: Test.ahk
[*:3iw5cata]Right-click the file and choose Edit Script.
[*:3iw5cata]On a new blank line, type the following:
#space::Run <!-- w -->www.google.com<!-- w -->In the line above, the first character "#" stands for the Windows key; so #space means holding down the Windows key then pressing the spacebar to activate the hotkey. The :: means that the subsequent command should be executed whenever this hotkey is pressed, in this case to go to the Google web site. To try out this script, continue as follows:
[*:3iw5cata]Save and close the file.
[*:3iw5cata]Double-click the file to launch it. A new icon appears in the taskbar notification area.
[*:3iw5cata]Hold down the Windows key and press the spacebar. A web [*:3iw5cata]page opens in the default browser.
To exit or edit the script, right-click the green "H" icon in the taskbar notification area.
From here, it should be pretty obvious.
rawr. be very afraid
*poke*
. Populate the AutoHotkey city. Pointless but somewhat fun. .
::btw:: MsgBox You typed "btw". return :*:]d:: ; This hotstring replaces "]d" with the current date and time via the commands below. FormatTime, CurrentDateTime,, M/d/yyyy h:mm tt ; It will look like 9/1/2005 3:53 PM SendInput %CurrentDateTime% return