 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
majumdersubir Guest
|
Posted: Wed Nov 29, 2006 8:23 am Post subject: What is AHK |
|
|
Anyone help me that what is AHK, I try to make a program that when I shall press a key, my program will be launched; I see the AutoHotKey help, but cannot solve this. |
|
| Back to top |
|
 |
.AHK
Joined: 26 Apr 2006 Posts: 662 Location: USA
|
Posted: Wed Nov 29, 2006 8:31 am Post subject: |
|
|
| Quote: | | Anyone help me that what is AHK |
| www.autohotkey.com wrote: |
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.
Getting started might be easier than you think. Check out the quick-start tutorial. |
The text in bold might help.  |
|
| Back to top |
|
 |
ricke
Joined: 14 Sep 2006 Posts: 31
|
Posted: Wed Nov 29, 2006 10:02 am Post subject: Re: What is AHK |
|
|
| majumdersubir wrote: | Anyone help me that what is AHK, I try to make a program that when I shall press a key, my program will be launched; I see the AutoHotKey help, but cannot solve this. |
Not sure if I understand u correctly.... Do u want to create an AHK-GUI that launches an application of your choice ?
| Code: |
Gui font, Verdana Bold S18 ;just the font and size of text
Gui, +toolwindow +AlwaysOnTop ;list and ontop
Gui, Add, Button, gScript , CALCULATOR ; one button with text
Gui, show, x100 y100 ,Test ; shows gui and name it
Return
Script:
run calc.exe ;launches the calculator when u hit button
Return
|
|
|
| Back to top |
|
 |
Carlol
Joined: 14 Aug 2006 Posts: 151 Location: CPH
|
Posted: Wed Nov 29, 2006 11:31 am Post subject: |
|
|
Or you could put this code in a script, launch it by double clicking, and then press windows + n and puff
| Code: | | #n::Run C:\WINDOWS\system32\calc.exe |
Good Luck and Happy Scripting,  |
|
| Back to top |
|
 |
TheLeO
Joined: 11 Jun 2005 Posts: 165 Location: England ish
|
Posted: Wed Nov 29, 2006 11:31 am Post subject: |
|
|
try the run command;
Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID]
read about it in the help file mate. _________________ And i say: where there is a problem , there is a solution.(well some where that is.)
::
I Have Spoken
:: |
|
| Back to top |
|
 |
Un-less Guest
|
Posted: Wed Nov 29, 2006 7:50 pm Post subject: Re: What is AHK |
|
|
| majumdersubir wrote: | | [color=darkblue] Anyone help me that what is AHK |
I think it's this, but it depends on how you pronounce it -
| Code: |
awk '
BEGIN {
printf "Enter test number:"
getline test
printf "Enter run series (1,2:13,15:30):"
getline runs
z = split(runs,run,",")
}
{
for (i=1; i<=z; i++) {
if (split(run[i],range,":") != 1 ) {
for (j=range[1]; j<=range[2]; j++)
print j
}
else {
print run[i]
}
}
}' |
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|