topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Monday May 20, 2024, 5:56 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Smobu [ switch to compact view ]

Pages: prev1 [2] 3next
26
Post New Requests Here / Req - Clickable Tooltips for Pasting
« on: July 30, 2009, 07:28 PM »
Clickable Tooltips for Pasting

I was hoping tha someone could modify this script to make it so that the tooltips are allowed to paste when they are clicked upon.
The windows key and v key are used to cycle through the entries that were copied earlier. I use this to mainly copy text and rename files easier.
The reason that I use this script as opposed to others is that this script does not steal the focus for renaming files.

Code: AutoIt [Select]
  1. clip_index = 0
  2. clip_max = 5
  3. clip_1 = Text
  4. clip_active = 1
  5.  
  6. CoordMode, tooltip, screen
  7.  
  8. goto clip_end_label
  9.  
  10. OnClipboardChange:
  11. if clip_active
  12.         addClip(clipboard)
  13. clip_active = 1
  14.  
  15. addClip(text)
  16. {
  17.         global
  18.         if text =
  19.                 return
  20.         local old
  21.         old := clip_%clip_index%
  22.         if  old = %text%
  23.                 return
  24.         clip_index := mod(clip_index+1,clip_max)
  25.         clip_%clip_index% = %text%
  26. }
  27.  
  28. #V::
  29. clip_tmp=1
  30. v_was=1
  31. loop
  32. {
  33.         Loop %clip_max%
  34.         {
  35.                 index := mod(clip_max+clip_index-A_Index+1,clip_max)
  36.                 element := clip_%index%
  37.                 element := ShortenClip(element)
  38.                 i1 := A_Index+1
  39.                 if element
  40.                         ToolTip, %element%, 30+60*(A_Index=clip_tmp), 60*A_Index-50,i1
  41.         }
  42.         res := GetKeyState("LWin","P")+GetKeyState("RWin","P")
  43.         esc__ := GetKeyState("Escape","P")
  44.         if (res=0)
  45.                 break
  46.         if (esc__=1)
  47.                 break
  48.         res := GetKeyState("V","P")
  49.         if res=1
  50.                 if v_was=0
  51.                 loop
  52.                 {
  53.                         clip_tmp := 1+mod(clip_tmp,clip_max)
  54.                         index := mod(clip_max+clip_index-clip_tmp+1,clip_max)
  55.                         element := clip_%index%
  56.                         if element
  57.                                 break
  58.                 }
  59.         v_was := res
  60.         Sleep, 50
  61.         }
  62. Loop %clip_max%
  63. {
  64.         i1 := A_Index+1
  65.         ToolTip, , , , i1
  66. }
  67. if (esc__=1)
  68.         return
  69. index := mod(clip_max+clip_index-clip_tmp+1,clip_max)
  70. clip_active =
  71. clipboard := clip_%index%
  72. Send, ^v
  73.  
  74. ShortenClip(text)
  75. {
  76.         Loop, Parse, text, `n
  77.         {
  78.                 StringLeft, outline, A_LoopField, 40
  79.                 out = %out%%outline%`n
  80.                 if A_Index>2
  81.                 {
  82.                         out = %out%.....
  83.                         break
  84.                 }
  85.         }
  86.         return out
  87. }
  88.  
  89.  
  90. clip_end_label:

27
Post New Requests Here / Re: Saving Text
« on: July 19, 2009, 02:24 AM »
Appreciate the effort.

28
Post New Requests Here / Re: Saving Text
« on: July 18, 2009, 11:52 PM »
As in the hotkeys are limited to what is supplied in the drop down list. For example, one can't define a hotkey to use the windows key and spacebar.

29
Post New Requests Here / Re: Saving Text
« on: July 18, 2009, 08:10 PM »
This is what I wanted, but the hot keys aren't that flexible.

30
Post New Requests Here / Saving Text
« on: July 17, 2009, 08:11 PM »
Often time I find myself copying text to paste it into a file and saving it. It would be nice a hotkey to save directly into a folder after highlighting a text selection.

Function: windows key + spacebar invokes a gui that has allows you to name the file and  define to save in a certain directory

31
Post New Requests Here / Re: Idea: Renaming Shortcut
« on: June 19, 2009, 01:09 AM »
This works and thanks for this code.

32
Post New Requests Here / Idea: Renaming Shortcut
« on: June 19, 2009, 12:22 AM »
Idea: Renaming Shortcut

Sometimes I want to automatically use whatever I have in the clipboard and rename the file that is higlighted.
Could someone make a script that send F2, paste and enter to rename a file with the hotkey combination alt 6?

33
Setting The Same Scroll Rate For Certain Applications

Sometimes the scroll speed of the mouse is not consistent across applications.
Internet explorer tend to scroll slower than other browsers such as Opera or Firefox.
Would it be possible to to change the scroll speed on the fly when certain applications are in focus?

34
General Software Discussion / Re: External Drive Content Lister?
« on: March 17, 2009, 06:32 PM »
LS - File List Generator V1.53

http://www.portablefreeware.com/?id=1171

35
Post New Requests Here / Re: Copying and Pasting with the Mouse
« on: March 10, 2009, 06:43 PM »
Here is my script:

Pressing left control two times quickly will copy and middle clicking with mouse button will paste.

~Lctrl::   
    If (A_PriorHotKey = A_ThisHotKey && A_TimeSincePriorHotKey <= 500)
   { ; Double click
   Send ^c                    ; selection -> clipboard
      tempClipBoard := ClipBoardAll      ; save old clipboard
      ClipBoard =
     
     mmClip := ClipBoard        ; store selection in custom clipboard
     Clipboard :=tempClipBoard  ; restore clipboard for ctl-c and ctl-v
   
   }
   return

~Mbutton::
   If (A_PriorHotKey = A_ThisHotKey && A_TimeSincePriorHotKey <= 500)
   { ; Double click
   Send, ^v   

   }
return

36
Post New Requests Here / Re: Copying and Pasting with the Mouse
« on: March 08, 2009, 01:28 PM »
Most highlighting text application copy text without enough disrimination. Such as in the case where you would want to rename a file, but the selection of the file name will overwrite what you have already copied.
I thought it will be better if there is more control when the ctrl key was used to really copy what you wanted.

37
Post New Requests Here / Copying and Pasting with the Mouse
« on: March 08, 2009, 01:34 AM »
Highlighting text and pressing the ctrl key will copy the text

Middle clicking two times will paste the copied text

38
Post New Requests Here / Re: IDEA: Windows Control
« on: January 18, 2009, 06:38 PM »
Would someone be kind enough to tweak the script to detect dragging of the right mouse button because it interferes with mouse gestures on Opera.

39
Post New Requests Here / Re: IDEA: Windows Control
« on: January 18, 2009, 11:53 AM »
Thanks for filling out the request.

The exe works fine, but I'm not quite sure why but the ahk file is causing me to get a screen distortion when using this.

Before:
http://i42.tinypic.com/2ezu04y.jpg

After:
http://i43.tinypic.com/5l2g6f.png

40
Post New Requests Here / IDEA: Windows Control
« on: January 17, 2009, 03:26 PM »
Function: Restore or Maximize Windows with Double Click with the Right Mouse Anywhere Inside a Window

When a window is in restore mode then double clicking with the right mouse anywhere inside the window will maximize the window.
If the window is in maximized view then doubling clicking with the right mouse will restore the window.

42
There is an autokey topic here:

http://www.autohotke...orum/topic22763.html

43
Working with multiple windows can often become a tedious process.  When you want to close all other windows that you don't want to work on, you have to search for the close button or right context menu entry to close the windows. It would be nice to have hotkeys to trigger the following commands that are similar to some browsers features:

Hotkey         Function
WinKey + F2      close all but active window on taskbar
WinKey + F3      close all windows on taskbar
WinKey + F4      locked windows to prevent accidental closures on select windows

44
Thanks for this, works like a charm. :)

I forgot to mention something. Could you also make ctrl shift 4 to undo the cascade or tile vertically and horizontally?

45
Post New Requests Here / Idea: Microsoft Default Windows Management
« on: November 13, 2008, 09:02 PM »
Idea: Microsoft Default Windows Management

Right clicking the taskbar in windows allows you to use the "Cascade windows", "Show the windows side by side" and the "Show windows stacked" command. These features are in Vista, but they are similar to Xp's. Is it possible to assign a shortcut key for these two commands for windows Vista? Such as using the ctrl+shift+1 ,ctrl+shift+2,  ctrl+shift+3 or these three items.

46
I initially place the code in the wrong place, but after I put the code in the right way it shows "ahk_class Shell_TrayWnd" as the tooltip.

47
The early script did work for me, but the alt esc does not recognize the incremental order if windows are selected out of order from their placement on the taskbar.

For the second script I placed the debug lines on the bottom of the script, but it did not make an error message come out.

48
The new script also doesn't seem to work for me. It is non-responsive when I try to to scroll on the taskbar. I'm using Vista.

49
Thanks for creating the script. I not all too concern about making the minimized windows being able to pop out, but it would be a nice feature to have.

50
The alt-esc method is ok, but I was wondering if it is possible for the hover detection to be implemented.

Pages: prev1 [2] 3next