 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
jonny
Joined: 13 Nov 2004 Posts: 3005 Location: Minnesota
|
Posted: Wed Nov 24, 2004 5:29 pm Post subject: SlickRun-style command line |
|
|
Ok, this time I am not going to repeat NumChord. This time, I'll start from the bottom and develop it based on feedback. I haven't even tested this starting version yet, it's just a barebones.
The basic idea of this script is to provide a command-line interface that you can set shortcuts and prefixes for, like SlickRun or LiteStep. The core ideas I have right now are a configuration gui for the shortcuts/program settings and a basic command line input. Windows already supports command shortcuts, this will simply provide an easier way to access them and a more convenient and specialized command line than the Run... dialog.
For more info on what I'm talking about, check out this site and this one too.
Anyway, the code below is all I have right now. This is the start of code that will convert SlickRun's .qrs files to the reg keys and shortcuts this program will use.
I'm not even going to start writing the real script until I know exactly what I'll be aiming for, and what the ideas I want to implement are. Feedback if you're interested, plz!
| Code: | IniRead,InputBoxW,TrickRun.ini,CommandLine,Width
IniRead,InputBoxH,TrickRun.ini,CommandLine,Height
IniRead,InputBoxX,TrickRun.ini,CommandLine,PositionX
IniRead,InputBoxY,TrickRun.ini,CommandLine,PositionY
IniRead,Cursor,TrickRun.ini,CommandLine,ChaseCursor
; This loop reads and parses INI files. Thanks to BoBo.
Loop,Read,Test.qrs
{
IfInString,A_LoopReadLine,[
{
SectionCount ++
Section%SectionCount% = %A_LoopReadLine%
}
IfInString,A_LoopReadLine,`=
{
ValueCount ++
StringSplit,Field%ValueCount%_,A_LoopReadLine,`=
}
}
; This trims the Section array of braces and reassigns it.
Loop,%SectionCount%
{
StringLen,HowMany,Section%A_Index%
StringLeft,ThisSection,Section%A_Index%,%HowMany%
StringTrimLeft,ThisSection,ThisSection,1
StringTrimRight,ThisSection,ThisSection,1
TrickWord%A_Index% = %ThisSection%
}
; This was to be the section that assigned the labels.
; Originally, the script was going to run off of INI files,
; reading them and assigning labels to shortcuts on the
; fly.
Loop,%SectionCount%
{
Break
}
SetTimer,ChaseCursor,25
Return
#q::
; The Input box is supposed to be the command line.
; Later on though, I'll use an element that's more configurable.
InputBox,TW,TrickRun,,,%InputBoxW%,%InputBoxH%,%InputBoxX%,%InputBoxY%
Loop,%SectionCount%
{
If TW = TrickWord%A_Index%
{
Gosub, %TW%
Break
}
Else
Continue
}
Return
ChaseCursor:
SetTimer,ChaseCursor,Off
If Cursor = 1
Hotkey,#q,Chase
Return
Chase:
MouseGetPos, MouseX, MouseY
InputBoxX = %MouseX%
InputBoxY = %MouseY%
InputBox,TW,TrickRun,,,%InputBoxW%,%InputBoxH%,%InputBoxX%,%InputBoxY%
Loop,%SectionCount%
{
If TW = TrickWord%A_Index%
{
Gosub, %TW%
Break
}
Else
Continue
}
Return |
Any new ideas are very welcome! |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1717
|
Posted: Thu Nov 25, 2004 9:27 am Post subject: |
|
|
the idea is nice jonny, and will be even better if u make your proggy independent... not based on slickrun's files or anything. _________________
 |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3005 Location: Minnesota
|
Posted: Fri Nov 26, 2004 1:35 am Post subject: |
|
|
| Quote: | | This is the start of code that will convert SlickRun's .qrs files to the reg keys |
I believe you misunderstood. I will support them, but they will certainly not be my main medium. There is a registry key that is suited to this kind of thing. The bonus side effect of using this particular key to base the program on is that it's backward compatible with the Run dialog, not just it's own command line. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 10 Location: GERMANY
|
Posted: Sun Jun 22, 2008 10:33 am Post subject: HotKeyIt |
|
|
Hi all, I have made such like program not knowing of any other simmilar programs(I would not have build if I knew about slickrun)
But my AHK program is much more powerfull, faster and no installation needed, it is also flexible and can run very well from a usb stick or so.
The most powerfull is the acceptance of AHK code for your Magic word and the possibility for a hotkey for each Magic word.
Check it out:
HotKeyIt forum |
|
| Back to top |
|
 |
Maddog_ Guest
|
Posted: Wed Jun 25, 2008 3:05 pm Post subject: |
|
|
I'm a long-time user of TypeAndRun (which I dearly love and recommend to all my peers) - http://www.galanc.com
I've tried to switch to SlickRun many times before and didn't because it lacks many of the features TAR has, like Capitalization of aliases, which is very important to me since it makes aliases a lot more readable.
Also, easy autocomplete of parameters of aliases, SR made it pretty difficult to work with an alias which has LOTS of previously entered parameters (I use the keyword "ts" for remote desktop, I have 30-50 of history items for "ts" with different ip addresses and DNS names).
I'd love to see an AHK replacement for TAR, which looks and feels like TAR and not SR. If freestyle AHK code can be entered instead of aliases it would also be cool (like an alias for switching to outlook, starting new email and changing signature, I have this as a hotkey, but I often forget some of my rarely used hotkeys, while I remember most of my TAR aliases.
Anyway, thanks and good luck. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 10 Location: GERMANY
|
Posted: Wed Jun 25, 2008 7:43 pm Post subject: HotKeyIt |
|
|
Maddog_, did you have a try with http://www.autohotkey.net/~HotKeyIt/
I had a try on tar, looks very good.
Still I think HotKeyIt has a lot more functions as you can use AHK code(also dllcall...) and a lot more to come.
AHK is just incredible. |
|
| 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
|