AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LvLauncher v0.4 (24/11/2010)
Goto page 1, 2  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Fri Feb 19, 2010 9:14 pm    Post subject: LvLauncher v0.4 (24/11/2010) Reply with quote

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




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 Wed Nov 24, 2010 5:50 pm; edited 11 times in total
Back to top
View user's profile Send private message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Sat Feb 20, 2010 8:00 am    Post subject: Reply with quote

33 views and 0 reply... Crying or Very sad
Back to top
View user's profile Send private message
RocknRoller
Guest





PostPosted: Sat Feb 20, 2010 3:41 pm    Post subject: Reply with quote

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... Wink
Back to top
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Sat Feb 20, 2010 3:59 pm    Post subject: Reply with quote

Embarassed You're right!
Back to top
View user's profile Send private message
Tuncay



Joined: 07 Nov 2006
Posts: 1886
Location: Germany

PostPosted: Sat Feb 20, 2010 4:13 pm    Post subject: Reply with quote

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! <--
Back to top
View user's profile Send private message Send e-mail Visit poster's website
netfun81



Joined: 28 Oct 2006
Posts: 58

PostPosted: Sat Feb 20, 2010 5:46 pm    Post subject: Reply with quote

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 Smile

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

good work, i love launchers
Back to top
View user's profile Send private message
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Sat Feb 20, 2010 6:23 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Tuncay



Joined: 07 Nov 2006
Posts: 1886
Location: Germany

PostPosted: Sat Feb 20, 2010 7:35 pm    Post subject: Reply with quote

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! <--
Back to top
View user's profile Send private message Send e-mail Visit poster's website
netfun81



Joined: 28 Oct 2006
Posts: 58

PostPosted: Sat Feb 20, 2010 11:51 pm    Post subject: Reply with quote

@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.
Back to top
View user's profile Send private message
Learning one



Joined: 04 Apr 2009
Posts: 1000
Location: Croatia

PostPosted: Sun Feb 21, 2010 12:45 am    Post subject: Reply with quote

Hello TomXIII, I like it! Smile

I especially like drag&drop, extracted icons, simplicity, functions + nice icon in tray menu. Cool
Maybe to implement "release to select" method --> 2 clicks less...
Back to top
View user's profile Send private message Visit poster's website
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Sun Feb 21, 2010 1:49 am    Post subject: Reply with quote

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...

Question

New version : v0.2
There are added and modified features taken from netfun81 suggestions.
Read the first post and the updated "How-To"
Back to top
View user's profile Send private message
netfun81



Joined: 28 Oct 2006
Posts: 58

PostPosted: Sun Feb 21, 2010 9:31 am    Post subject: Reply with quote

having some issues with .2 maybe its related to vista..but dont see any msgbox or item moving...
Back to top
View user's profile Send private message
Learning one



Joined: 04 Apr 2009
Posts: 1000
Location: Croatia

PostPosted: Sun Feb 21, 2010 10:26 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message Visit poster's website
TomXIII



Joined: 14 Apr 2009
Posts: 182

PostPosted: Sun Feb 21, 2010 6:24 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Tuncay



Joined: 07 Nov 2006
Posts: 1886
Location: Germany

PostPosted: Sun Feb 21, 2010 7:48 pm    Post subject: Reply with quote

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! <--
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group