AutoHotkey Community

It is currently May 27th, 2012, 4:16 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: February 19th, 2010, 10:14 pm 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
Here I am with a new launcher!
LaunchIt is cool but not so easy to maintain and to manage shortcuts...
Furthermore, the LearningOne's script is a real great, beautyfull and more efficient script!
So, in my infinite quest of the most usefull (and simple) launcher, I bring you "LvLauncher" : a simple launcher based on a simple listview.

How-to (updated 24/11/2010):
Code:
Name: LvLauncher 0.4
Author: TomXIII (contact: Tom.XIII [AT] gmail [DOT] com)


How to display the LvLauncher ?
- Press RButton during 200ms (ShowDelay var)
____________________________________________________

How to launch a shortcut ?
- Display the LvLauncher
- Double click on the row
____________________________________________________

How to add a shortcut ?
1) If shortcut is a file or a folder
- Display the LvLauncher
- Drag it on the listview
2) If shortcut is not a file or a folder
- Display the LvLauncher
- Press RButton on the listview
- Click on "Add"
- In the first inputbox, type the shortcut
- In the second inputbox, type the shortcut's name
____________________________________________________

How to remove a shortcut ?
- Display the LvLauncher
- Press RButton on the listview
- Click on "Delete"
____________________________________________________

How to modify a shortcut ?
1) LvLauncher method
- Display the LvLauncher
- Press RButton on the listview
- Click on "Edit"
____________________________________________________

How to save shortcut ?
- Display the LvLauncher
- Press RButton on the listview
- Click on "Save"
____________________________________________________

How to organise rows? (From netfun81 suggestions)
- Display the LvLauncher
- Select one or more rows
- Drag them (to activate ReplaceRows function)
- Drag the row to place previous rows below
____________________________________________________

Others features:
- Rearrange: sort the listview with default settings, hide the headers and set gui default size
- Refresh : cancel all changes since the last save
- Header : show/hide headers and all columns


Image

Download links :
LvLauncher v0.1
LvLauncher v0.2
LvLauncher v0.3
LvLauncher v0.4 Last Update!

EDIT 24/11/2010 :
- Added : Shortcuts can be grouped by section
- Modified : Code rewritten to work with AHK_L
- Modified : Shortcuts names can be directly changed in the listview by pressing F2
- Modified : Columns order
- Modified : "Earth" icon for Urls and "Star" for other shortcuts
- Deleted : Useless options (Msgbox, Default section...)
- Fixed : Default browser issue (icons)

This script need some improvments so pleeasse, post you critics, ideas or anything else constructive!


Last edited by TomXIII on November 24th, 2010, 6:50 pm, edited 11 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2010, 9:00 am 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
33 views and 0 reply... :cry:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2010, 4:41 pm 
You should post a small description on how to use it and maybe add some screenshots...

I downloaded it but I have to look at the code to know how to trigger it and you know, life is short... ;)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2010, 4:59 pm 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
:oops: You're right!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2010, 5:13 pm 
Offline

Joined: November 7th, 2006, 9:47 pm
Posts: 1934
Location: Germany
i have looked in the source but did not execute it now. May be later I try more. One thing which I saw is you have made an ini parser. May be you are interested in my Basic Ini String Library: http://www.autohotkey.com/forum/viewtopic.php?t=46226
Most of the functions are made with one regex call (with some other codes).

(until update of my ini lib, there is a small bug in ini_save() routine. but the function is not needed really)

_________________
{1:"ahkstdlib", 2:"my libs", 3:"my apps", 4:"my license"}
--> Don't feed the troll! <--


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2010, 6:46 pm 
Offline

Joined: October 28th, 2006, 5:01 pm
Posts: 58
not bad, easy to use. A couple suggestions:

1. add "CoordMode, Mouse, Screen" to the beginning of ur script then it will appear under the mouse even if another window is open.

2. add a msg box confirming deleting in case of an accident drag.

3. make ctrl and drag organize the list instead of alphabetical order, or any other hotkey :)

4. Would be cool if you could remove the shortcut arrows from the icons

good work, i love launchers


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2010, 7:23 pm 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
Thanks for your posts!

@Tuncay:
I already read your ini library but for now I use my library.
Quote:
there is a small bug in ini_save() routine
Is there a problem in my solution or yours. In the first case, could you give me what you found as problem please?!

@netfun81:
I agree with 1 & 2, they will be in v0.2
For 3, I already thougth about this rearrange method but without success
Could you be more explicit for 4?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 20th, 2010, 8:35 pm 
Offline

Joined: November 7th, 2006, 9:47 pm
Posts: 1934
Location: Germany
Quote:
In the first case, could you give me what you found as problem please?!

sorry I was referring to my library.

Later I will have a look in your starter. It looks pretty much like what I wanted todo. May be I dont need to anymore. :wink:

_________________
{1:"ahkstdlib", 2:"my libs", 3:"my apps", 4:"my license"}
--> Don't feed the troll! <--


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 12:51 am 
Offline

Joined: October 28th, 2006, 5:01 pm
Posts: 58
@TomXIII.. what I meant by #4 above is that the icons show the shortcut arrow like all shortcuts, but because the icons are small the arrow blocks the icon too much. One way to fix this would be to resolve the shortcut to the actual program. To get around it I just dragged the actual program to the launcher.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 1:45 am 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
Hello TomXIII, I like it! :)

I especially like drag&drop, extracted icons, simplicity, functions + nice icon in tray menu. 8)
Maybe to implement "release to select" method --> 2 clicks less...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 2:49 am 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
Thanks for your posts!

@netfun81 : For points 1, 2 & 3 = Mission Accomplished!
For point 4, I didn't watch a shortcut arrow.

@Learning one :
Quote:
"release to select" method --> 2 clicks less...

:?:

New version : v0.2
There are added and modified features taken from netfun81 suggestions.
Read the first post and the updated "How-To"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 10:31 am 
Offline

Joined: October 28th, 2006, 5:01 pm
Posts: 58
having some issues with .2 maybe its related to vista..but dont see any msgbox or item moving...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 11:26 am 
Offline
User avatar

Joined: April 4th, 2009, 8:19 pm
Posts: 1143
Location: Croatia
I was thinking about modified "release to select" method like in Radial menu v3+.
So here, in LvLauncher it would be something like this:
- when you press&hold Rbutton longer than ShowDelay, LvLauncher apperas
- if you release Rbutton above item in Lv, script sends double click --> MouseClick, Left,,, 2 --> this launches item, and after that, Gui, hide
- if you release it ahywhere else, LvLauncher concludes that you want to add/edit items, it stays displayed, and behaves normally, like current system in LvLauncher
Just a quick, not elaborated idea...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 7:24 pm 
Offline

Joined: April 14th, 2009, 10:40 am
Posts: 182
New version: v0.3
Added:
- Ctrl+A : Select all rows
- Now the launcher is always on top
- Folders can be launched in the current explorer window by dragging the row (without open another one)

Modified:
- Bug : the regex in ReplaceRows() was not efficient if paths have "\E" in their values
- Shortcuts list can be orgnised by pressing ctrl during drag operations (instead of the previous method)
- Some functions, MsgBox and display methods

@netfun81 : I'm sorry but works fine for me and I don't have Vista (I really don't want it)!

@Learning one : I spend a large part of this afternoon to try to code your method but nothing good.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2010, 8:48 pm 
Offline

Joined: November 7th, 2006, 9:47 pm
Posts: 1934
Location: Germany
If you have problem with \E in Regex:
temp01 wrote:
You could just replace the special characters with StringReplace or RegExReplace e.g.
Code:
str = files\Example ... And later \Q and so on.
regex = files\Example

msgbox, % RegExReplace(str, "\Q" RegExReplace(regex, "\\E", "\E\\E\Q") "\E")
; or
msgbox, % RegExReplace(str, RegExReplace(regex, "[\\.*?+[{|()^$]", "\$0"))

an answer to my wish request: replace option for \E and \Q in regex
or make the \E to \e if it is somehow possible without breaking the Regex.

_________________
{1:"ahkstdlib", 2:"my libs", 3:"my apps", 4:"my license"}
--> Don't feed the troll! <--


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Stigg and 10 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