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 

FavoriteFolders by Savage - on desktop

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
IconBoy



Joined: 24 Feb 2006
Posts: 77

PostPosted: Wed Oct 25, 2006 1:59 am    Post subject: FavoriteFolders by Savage - on desktop Reply with quote

FavoriteFolders is great.
I was wondering, is there any way that it will activate (with middle mouse click) if I am viewing on the desktop or is it only possible when viewing folders?
Thanks very much.
Back to top
View user's profile Send private message
ChrisM



Joined: 28 Nov 2004
Posts: 58

PostPosted: Wed Oct 25, 2006 12:48 pm    Post subject: Reply with quote

Remove the tilde from before the hotkey.

change:
Code:
f_Hotkey = ~MButton

to
Code:
f_Hotkey = MButton

_________________
ChrisM
Back to top
View user's profile Send private message
IconBoy



Joined: 24 Feb 2006
Posts: 77

PostPosted: Wed Oct 25, 2006 2:59 pm    Post subject: Reply with quote

Wonderful! Works a treat! Laughing
Is there any way to limit where it works? E.g. only on Desktop and folders but not in applications e.g. browsers.
Thanks
Back to top
View user's profile Send private message
ChrisM



Joined: 28 Nov 2004
Posts: 58

PostPosted: Wed Oct 25, 2006 4:27 pm    Post subject: Reply with quote

Remove this entire section of code:
Code:
if f_class = #32770    ; It's a dialog.
{
   if f_Edit1Pos <>   ; And it has an Edit1 control.
   {
      ; Activate the window so that if the user is middle-clicking
      ; outside the dialog, subsequent clicks will also work:
      WinActivate ahk_id %f_window_id%
      ; Retrieve any filename that might already be in the field so
      ; that it can be restored after the switch to the new folder:
      ControlGetText, f_text, Edit1, ahk_id %f_window_id%
      ControlSetText, Edit1, %f_path%, ahk_id %f_window_id%
      ControlSend, Edit1, {Enter}, ahk_id %f_window_id%
      Sleep, 100  ; It needs extra time on some dialogs or in some cases.
      ControlSetText, Edit1, %f_text%, ahk_id %f_window_id%
      return
   }
   ; else fall through to the bottom of the subroutine to take standard action.
}

It should then work in only opened exporer and command prompt windows and on the desktop.
_________________
ChrisM
Back to top
View user's profile Send private message
IconBoy



Joined: 24 Feb 2006
Posts: 77

PostPosted: Wed Oct 25, 2006 4:50 pm    Post subject: Reply with quote

Thanks for the reply.
Nope. Still working in all windows. Reason I do not want it working in IE or Firefox is so I can use the scroll button on the mouse to close tabs.
Any ideas...?
Back to top
View user's profile Send private message
ChrisM



Joined: 28 Nov 2004
Posts: 58

PostPosted: Wed Oct 25, 2006 6:53 pm    Post subject: Reply with quote

Sorry, I didn't understand what you were trying to do.
I have the same problem, the middle button is used for many things in many of my apps. Consider using Control+Middle Button to activate the menu. That allows the middle button to work as it normally does in your browsers. I'm not saying it can't be done with the middle button alone, it's just alot harder to do it.

To use Cntl+MButton replace this line:
Code:
f_Hotkey = MButton

with:
Code:
f_Hotkey = ^MButton

If you want the menu to show up in any app's open and save dialogues then put back in the code I told you to take out earlier.
_________________
ChrisM
Back to top
View user's profile Send private message
IconBoy



Joined: 24 Feb 2006
Posts: 77

PostPosted: Wed Oct 25, 2006 10:44 pm    Post subject: Reply with quote

Thought I'd be a little clever and add some Shutdown options but when I select one of them (e.g. Log off it opens a webpage searching for log off or something like that!)
Code:
Shutdown         ; Shutdown, 9
Log off          ; Shutdown, 4
Restart computer ; Shutdown, 6

Ideas on how to make it work (I want it to Force shutdown, log off, restart etc.?
Back to top
View user's profile Send private message
scriptmonkey



Joined: 19 May 2006
Posts: 112

PostPosted: Fri Oct 27, 2006 2:44 pm    Post subject: Reply with quote

This is probably a stupid question, but how do I add an existing script to this one? I have a script that autotypes certain words when I type a certain sequence.
Back to top
View user's profile Send private message
drmurdoch



Joined: 10 Nov 2006
Posts: 89

PostPosted: Sun Mar 18, 2007 1:41 am    Post subject: How could this great script support Office 2003 Dialogs ? Reply with quote

Quote:
The following window types are supported: 1) Standard file-open or file-save dialogs; 2) Explorer windows; 3) Console (command prompt) windows. The menu can also be optionally shown for unsupported window types, in which case the chosen favorite will be opened as a new Explorer window.


I'd really love this script to support Microsoft Office 2003 File Open/File Save Dialogs. Apparently these are "not standard".
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Mon Mar 19, 2007 9:37 am    Post subject: Reply with quote

Check out the Favmenu3 alpha 9, here. It supports Office

It seems link is buggy and doesn't go to the page directed, so just scroll to the last post.
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
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