AutoHotkey Community

It is currently May 27th, 2012, 10:54 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: November 24th, 2004, 5:29 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 25th, 2004, 9:27 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
the idea is nice jonny, and will be even better if u make your proggy independent... not based on slickrun's files or anything.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 26th, 2004, 1:35 am 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: HotKeyIt
PostPosted: June 22nd, 2008, 10:33 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 25th, 2008, 3:05 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject: HotKeyIt
PostPosted: June 25th, 2008, 7:43 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 9th, 2008, 7:44 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Take a look at AutoHotFile

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 48 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group