 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ChrisM
Joined: 28 Nov 2004 Posts: 58
|
Posted: Sat Feb 04, 2006 5:13 pm Post subject: |
|
|
Sorry for the slow responce.
I did a quick search on this forum for 'editpad' and found the open/save dialogs in editpad have different class names than this script presently supports. So thats why nothing happens for you in editpad. If you try it in Notepad you should see it work so you can atleast see if this is what your after.
I don't really want to load editpad just to find out the class names so I'll tell you how to tell me what they are.
Start your editpad and open up the open dialog. Leave it open.
From the Windows start>all programs>autohotkey start the 'AutoIt3 Window Spy' program.
Move it to the side of your editpad open dialog.
Now click in the open dialig box and let your mouse hover over the File Name to Open text field.
In the Window Spy the top section looks like this:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Open
ahk_class #32770
You'll probably see different info for yours
Tell me what the ahk_class is.
Also in the section:
>>>>>>>>>( Now Under Mouse Cursor )<<<<<<<<
ClassNN: Edit1
Tell me what the ClassNN is. _________________ ChrisM |
|
| Back to top |
|
 |
WSTB Guest
|
Posted: Wed Mar 01, 2006 9:49 am Post subject: Menu does not exist. The current thread will exit. |
|
|
Hello All,
I try to use the subfolder and go this error:
Specially: d:\Favorites\HD
Line#
153: Return
157: {
161: if menu =
162: menuName := testPath
163: Else
164: menuName := menu
166: If f_NotFirstTime = True
--> 167: Menu, %menuName%, DeleteAll
170: Loop, %menuName%\*, 2
171: folderList = %folderList%`n%A_LoopFileFullPath%
172: Sort, folderList
173: Loop, Parse, folderList, `n
174: {
175: If A_LoopField =
176: Continue
What I did :
I run this fabulous script, then open menu with Ctrl + Middle button and add the current folder in my explorer by clickin Add folder.
I add a second folder by the same way.
Then I want to organize this shortcut with subfolder, so I create a subfolder HD in my %f_shortcuts_folder% and cut/paste one of my two shortcut in it. Then I try to get menu with Ctrl + MButton and I got this error. Every time I try to use subfolder I got this error , why ?
regards and thank's to share this script with people .
WSTB |
|
| Back to top |
|
 |
ChrisM
Joined: 28 Nov 2004 Posts: 58
|
Posted: Wed Mar 01, 2006 6:24 pm Post subject: |
|
|
| Quote: | | so I create a subfolder HD in my %f_shortcuts_folder% and cut/paste one of my two shortcut in it. |
I get the error only when the subfolder is empty. This is a bug and I'll try to fix it. For now make sure your subfolder is not empty and restart the script. I don't mean refire the hotkey, restart the .ahk script. _________________ ChrisM |
|
| Back to top |
|
 |
WSTB Guest
|
Posted: Thu Mar 02, 2006 8:43 am Post subject: |
|
|
Thank you ChrisM, your workarround is working.
I arrange my shortcut with subfolder and restart the .ahk script then
script works well.
regards,
WSTB |
|
| Back to top |
|
 |
Winkie
Joined: 11 Apr 2006 Posts: 8 Location: The Netherlands
|
Posted: Thu Apr 13, 2006 10:12 pm Post subject: Some comments |
|
|
Hi Everyone,
I like the improvements in this script compared to the original!
But I have some comments:
- Also when I used a slash at the end of f_shortcuts_folder (E:\Folders\) the script produces the same error as in WSTB's post
- The script won't make submenus of folders that are named as words put together with capital caracters, like this: AutoHotkeyScipts
- There is a desktop.ini file in my folder (because I changed the icon).
It also appears as a menu-item.
So I inserted this piece of code to fix this:
| Code: |
; Line 256:
IfInString,A_LoopField,desktop.ini
Continue
|
You see, not very big problems. But if you pay attention to it the script keeps working...
Greetings _________________ Winkie |
|
| Back to top |
|
 |
Laughing Man
Joined: 29 Apr 2005 Posts: 84 Location: Maryland
|
Posted: Thu Apr 27, 2006 11:41 pm Post subject: |
|
|
I have two questions. How would I add my computer to the list? The text "My Computer" works sometimes but in some programs it won't recognize it.
Also it doesn't seem to work in Microsoft's word open/save dialouge? _________________ "I thought what I'd do was I'd pretend I was one of those deaf-mutes" ~ Laughing Man - GITS:SAC |
|
| Back to top |
|
 |
urlwolf
Joined: 16 Mar 2006 Posts: 99
|
Posted: Wed Aug 23, 2006 12:00 pm Post subject: |
|
|
NIce application for ahk.
However, here are two things I'd like to see:
(1) icons next to the folders. That's what I love about myFolders
(2) Dopus should cd in the same lister, instead of opening a new window
Is this possible at all?
Thanks a lot |
|
| Back to top |
|
 |
lexikos Guest
|
Posted: Tue Oct 17, 2006 3:27 am Post subject: path from folder |
|
|
Extremely useful script, so far. Is the script in this thread's first post kept up-to-date? (That's the one I'm referring to.)
I haven't used it much yet, but I noticed it gets the "path" of a window from the titlebar - this obviously won't work if you don't have the "display full path..." option enabled. The following method I've found seems to work for *most* Windows Explorer windows (without the full path in the title):
| Code: | ; get the text from the active window
WinGetText, addFavorite, A
; find the carriage-return in the string (end of the first line)
StringGetPos, endLine, addFavorite, `r
; grab the first line
StringLeft, addFavorite, addFavorite, endLine |
For most explorer windows, WinGetText seems to get something like:
| Code: | C:\
C:\
17 objects (plus 1 hidden)
FolderView |
This doesn't work in special folders, like My Documents (unless you get there via Documents and Settings), as it outputs:
| Code: | My Documents
My Documents
5 objects (plus 1 hidden)
FolderView |
Anyone know a way around this, besides checking for special cases such as "My Documents"?
BTW, I used this method to create a "Command Prompt for active Explorer Window" shortcut. *Very* handy.  |
|
| Back to top |
|
 |
ChrisM
Joined: 28 Nov 2004 Posts: 58
|
Posted: Wed Oct 18, 2006 1:43 am Post subject: |
|
|
| Quote: | | Is the script in this thread's first post kept up-to-date? |
Yes. I see it's been over a year since any update but I still use it every day as is. The only user updates from this thread I haven't added to it are ones that would have a very limited intrest.
| Quote: | | The following method I've found seems to work for *most* Windows Explorer windows (without the full path in the title): |
Interesting. I'll play with that a bit.
| Quote: | | This doesn't work in special folders, like My Documents (unless you get there via Documents and Settings)...Anyone know a way around this, besides checking for special cases such as "My Documents"? |
This is an often asked question, so i've done some research into it.
What we are after is a way to get Explorer to display a Special Folder, like: | Code: | | Run, explorer "My Documents" |
| Quote: |
Special Folders
From Wikipedia
A Special Folder can either be a reference to a physical file system directory, or a reference to a "virtual" folder. In the former case, they are analogous to environment variables — in fact, many of the environment variables that are set in a user's session are defined by where the special folders are set to point to.
Virtual folders, however, do not actually exist on the file system; they are instead presented through Windows Explorer as a tree of folders that the user can navigate. This is known as the Shell namespace.
|
The My Documents you refere to is a "virtual" folder. It's basically a linked list of items contained in the Shell namespace to display when you click on My Documents. So is My Computer, and the Desktop that lists My Comuter under it.
Do a search for "Shell namespace" to get the details on how Windows does these "Virtual folders".
This ahk thread shows how to get some of the Special Folder values using DllCall, which can then be passed to explorer to open:
http://www.autohotkey.com/forum/topic10325.html&highlight=csidl
But it cannot handle the Virtual folders.
I would think there must be some way to tell explorer to access the CSIDL_MYDOCUMENTS (0x000c) which is the My Documents virtual folder.
Explorer already does this internally, but there seems to be no way of telling it externally to display it.
Maybe someone with a deeper knowledge of the dll functions involved could give us some pointers. _________________ ChrisM |
|
| Back to top |
|
 |
ChrisM
Joined: 28 Nov 2004 Posts: 58
|
Posted: Sat Oct 21, 2006 1:20 am Post subject: |
|
|
A new version can be downloaded from the top post of this thread.
Changes:
Finally! Windows special and virtual folders can appear in the list, such as:
My Computer
My Network Places
even things like:
Printers and Faxes
Sheduled Tasks
Thanks to majkinetor for showing me how using GUID's!
This is an option in the config section of the script. By un/commenting lines you can have whatever special folder you want in the list. Their placement is static to the bottom of the menu.
This has only been tested on Windows XP SP2. My reading indicates that the GUID's are the same for the older versions, but I don't know.
Unfortunately I cannot find any way of getting the "Desktop" virtual folder to work. It does not seem to have a GUID ( at least I can't find it ). It's the root of the Windows shell namspace so perhaps it is handled in a different way. _________________ ChrisM |
|
| Back to top |
|
 |
majkinetor ! Guest
|
Posted: Sat Oct 21, 2006 8:55 am Post subject: |
|
|
The desktops GUID is {00021400-0000-0000-C000-000000000046}
You can't use it this way apperently.
But, you can use GetCommonPath to get the desktop location and then show it.
THere is also some option to start Explorer in it AFAIK, but you will have to search for it. The above solution will work anyway |
|
| Back to top |
|
 |
EJ Guest
|
Posted: Mon Dec 04, 2006 5:37 am Post subject: |
|
|
The script is not parsing folders
Sad, this was/is my most used script
Please fix the folders parsing, Thank you!  |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Dec 05, 2006 12:33 am Post subject: |
|
|
To work with AutoHotkey version 1.0.46 or later, the script in the top post of this topic (MyFavorites.ahk) requires the following change:
Line #476 requires commas between its declared items:
global f_class f_Edit1Pos f_window_id
; Change the above to:
global f_class, f_Edit1Pos, f_window_id |
|
| Back to top |
|
 |
ikno Guest
|
Posted: Fri Jan 05, 2007 3:57 pm Post subject: |
|
|
Chris, i've tried to edit the basic script from savage, but i like what youve done with yours! so ill be using this one instead.
just one small things, wich i didn't manage to get right with the savage script...
after you go to a folder the cursor is at the adres bar, so i tried to send a "shift and Tab" so my cursor would go to my folders.
This would make navigating witouth the use of a mouse much faster.
But if i have to find where to add the shifttab in you're code i could be looking for days.
So if you could give me the line where to put this code that would be helpfull.
+ if you know the right way to give an shift tab that would be helpfull to,
because when i do the following:
| Code: | | Send, {SHIFTDOWN}{TAB}{SHIFTUP} |
i get the effect of the TAB only.
youre help would be greatfully appreciated. |
|
| Back to top |
|
 |
ChrisM
Joined: 28 Nov 2004 Posts: 58
|
Posted: Sun Jan 14, 2007 12:31 am Post subject: |
|
|
Chris wrote: | Quote: | | Line #476 requires commas between its declared items: |
Fixed, see top post of this topic.
ikno wrote: | Quote: | after you go to a folder the cursor is at the adres bar, so i tried to send a "shift and Tab" so my cursor would go to my folders.
| After line 511 of the script in the top post of this topic:
| Code: | | ControlSend, Edit1, {Right}{Enter}, ahk_id %f_window_id% |
Insert:
| Code: | | Send, {TAB}{TAB}{TAB}{TAB}{TAB}{TAB} |
Send, {SHIFT DOWN}{TAB}{SHIFT UP} or even Send, +{TAB} should work but don't for me. _________________ ChrisM |
|
| 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
|