AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: October 25th, 2006, 1:59 am 
Offline

Joined: February 24th, 2006, 10:19 pm
Posts: 108
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2006, 12:48 pm 
Offline

Joined: November 28th, 2004, 10:26 pm
Posts: 58
Remove the tilde from before the hotkey.

change:
Code:
f_Hotkey = ~MButton

to
Code:
f_Hotkey = MButton

_________________
ChrisM


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2006, 2:59 pm 
Offline

Joined: February 24th, 2006, 10:19 pm
Posts: 108
Wonderful! Works a treat! :lol:
Is there any way to limit where it works? E.g. only on Desktop and folders but not in applications e.g. browsers.
Thanks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2006, 4:27 pm 
Offline

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2006, 4:50 pm 
Offline

Joined: February 24th, 2006, 10:19 pm
Posts: 108
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...?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2006, 6:53 pm 
Offline

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2006, 10:44 pm 
Offline

Joined: February 24th, 2006, 10:19 pm
Posts: 108
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.?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2006, 2:44 pm 
Offline

Joined: May 19th, 2006, 4:56 am
Posts: 166
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.


Report this post
Top
 Profile  
Reply with quote  
PostPosted: March 18th, 2007, 1:41 am 
Offline

Joined: November 10th, 2006, 5:10 am
Posts: 110
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".


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 19th, 2007, 9:37 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 11th, 2010, 5:50 am 
Offline

Joined: November 9th, 2008, 12:33 am
Posts: 14
IconBoy wrote:
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.?

I also wanted to do things like this and I figured out a way to do it. From what I can tell, FavoriteFolders can only open links and programs, it can't run scripts directly. So just put the desired action in its own script and then point the FavoriteFolders entry to that script as if it were a folder or program. Tada! I did this to make a URL launcher: FavoriteFolders is assigned a specific hotkey, which brings up the list of choices. These point to small scripts which open the URL currently in the clipboard in a specific browser. Works great!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 21 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