AutoHotkey Community

It is currently May 27th, 2012, 9:27 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 167 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12  Next
Author Message
 Post subject:
PostPosted: February 4th, 2006, 5:13 pm 
Offline

Joined: November 28th, 2004, 10:26 pm
Posts: 58
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


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 1st, 2006, 9:49 am 
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 :cry: , why ?

regards and thank's to share this script with people :D .
WSTB


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 1st, 2006, 6:24 pm 
Offline

Joined: November 28th, 2004, 10:26 pm
Posts: 58
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2006, 8:43 am 
Thank you ChrisM, your workarround is working.

I arrange my shortcut with subfolder and restart the .ahk script then
script works well.

regards,
WSTB


Report this post
Top
  
Reply with quote  
 Post subject: Some comments
PostPosted: April 13th, 2006, 10:12 pm 
Offline

Joined: April 11th, 2006, 11:46 am
Posts: 10
Location: The Netherlands
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2006, 11:41 pm 
Offline

Joined: April 29th, 2005, 12:14 am
Posts: 84
Location: Maryland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 23rd, 2006, 12:00 pm 
Offline

Joined: March 16th, 2006, 5:01 pm
Posts: 150
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: path from folder
PostPosted: October 17th, 2006, 3:27 am 
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. :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 18th, 2006, 1:43 am 
Offline

Joined: November 28th, 2004, 10:26 pm
Posts: 58
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2006, 1:20 am 
Offline

Joined: November 28th, 2004, 10:26 pm
Posts: 58
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2006, 8:55 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2006, 5:37 am 
The script is not parsing folders :(
Sad, this was/is my most used script :D

Please fix the folders parsing, Thank you! :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2006, 12:33 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2007, 3:57 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 14th, 2007, 12:31 am 
Offline

Joined: November 28th, 2004, 10:26 pm
Posts: 58
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 167 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12  Next

All times are UTC [ DST ]


Who is online

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