AutoHotkey Community

It is currently May 26th, 2012, 10:32 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 118 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8  Next

Do you think AutoHotkey should have that features/function internally?
Poll ended at August 26th, 2009, 5:23 pm
Yes 33%  33%  [ 4 ]
Yes, even more ToolTip features please 33%  33%  [ 4 ]
No, I don't need them 0%  0%  [ 0 ]
No, to complex to use 25%  25%  [ 3 ]
No 8%  8%  [ 1 ]
Total votes : 12
Author Message
 Post subject:
PostPosted: August 26th, 2009, 5:45 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Check out here ;)

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2009, 7:27 am 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
ballyhairs wrote:
Thanks for the reply.. Now one question my friend..
How do I get special color code, this was your example
Quote:
- this can be 0x00FF00 or 00FF00 or Blue, Lime, Black, White...


I use Colorpix.exe to pick a color on the screen and get its code, but its different, for example, if Colorpix.exe points at a color as RGB 237.237.237, now how do I translate that to your script?
Just use Windows Spy. You find by right-clicking any running AHK-Icon in SystemTray. But have a look, it shows you BGR instead of RGB.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 26th, 2009, 7:44 am 
Offline

Joined: February 2nd, 2009, 2:03 pm
Posts: 112
Thanks Guys :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 4th, 2009, 11:39 pm 
I love this tooltip, the thing is that I trimmed it down because I don't need the rest of the functions, I can't figure the rest out... I need your help in few things since Im a noob..

Can you help me trim it down even more? I know that there are few things left that are not necessary.
How can I get rid of that tail thing while keeping it rounded at the corners and keep it at the corner of the screen no matter what resolution I have without the need to set position in numbers?
Is there a way that when I click on the tooltip no matter where it will disappear and take me to (D:\Download)?

Help appreciated guys

Here is my script:


Code:
OnMessage(0x4e,"WM_NOTIFY") ;Will make LinkClick and ToolTipClose possible

Restart:
hwndtt:=ToolTip(99,"Please click a link:`n`n`n`n`n"
      , "Welcome to ToolTip Control                          "
      , "Q1 L1 O1 T188 E10.10.50.40 BWhite FBlack I" . GetAssociatedIcon(A_ProgramFiles . "\Internet Explorer\iexplore.exe")
      . " P99 X" A_ScreenWidth . " Y" . A_ScreenHeight)
Sleep, 4000
Reload
Return


99ToolTip:
If InStr(link:=ErrorLevel,"http://")
   Run iexplore.exe %link%
else if IsLabel(link:=RegExReplace(link,"[^\w\.]","_"))
   SetTimer % link,-150
else if link
{
   Run % link
   SetTimer, Restart, -100
}
Return



WM_NOTIFY(wParam, lParam, msg, hWnd){
   ToolTip("",lParam,"")
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 11:56 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Anonymous wrote:
How can I get rid of that tail thing while keeping it rounded at the corners

As far as I know its not possible, but below you will find a workaround :)
Anonymous wrote:
keep it at the corner of the screen no matter what resolution I have without the need to set position in numbers?

Insteat numbers you can use xTrayIcon yTrayIcon.
What is wrong with A_ScreenWidth + A_ScreenHight?
Anonymous wrote:
Is there a way that when I click on the tooltip no matter where it will disappear and take me to (D:\Download)?


Sure, I am not sure if this is the easiest way but it works ;)

Code:
Sleep, 100
gui,+LastFound
guihwnd:=WinExist()
OnMessage(0x1C,"WM_ACTIVATEAPP") ;Will make Click possible
Restart:
hwndtt:=ToolTip(99,"Please click`n`n`n`n`n"
      , "Welcome to ToolTip Control                          "
      , "Q1 O1 T188 E10.10.50.40 BWhite FBlack I" . GetAssociatedIcon(A_ProgramFiles . "\Internet Explorer\iexplore.exe")
      . " P99 XTrayIcon YTrayIcon")
Return



WM_ACTIVATEAPP(wParam, lParam, msg, hWnd){
   global hwndtt,guihwnd
   MouseGetPos,,,win
   If (wParam=1 and hwnd=guihwnd and win=hwndtt)
      Run % "explorer.exe /e`, /n`,D:\Downloads"
}


Possibly this workaround will help you since you want to display it in a corner, here the tail is shown outside screen:
Code:
Sleep, 100
gui,+LastFound
guihwnd:=WinExist()
OnMessage(0x1C,"WM_ACTIVATEAPP") ;Will make LinkClick and ToolTipClose possible
Restart:
hwndtt:=ToolTip(99,"Please click`n`n`n`n`n"
      , "Welcome to ToolTip Control                          "
      , "Q1 O1 T188 E10.10.50.40 BWhite FBlack I" . GetAssociatedIcon(A_ProgramFiles . "\Internet Explorer\iexplore.exe")
      . " P99 X" A_ScreenWidth . " Y" . A_ScreenHeight+21)
Return



WM_ACTIVATEAPP(wParam, lParam, msg, hWnd){
   global hwndtt,guihwnd
   MouseGetPos,,,win
   If (wParam=1 and hwnd=guihwnd and win=hwndtt)
      Run % "explorer.exe /e`, /n`,D:\Downloads"
}


I have made a small fix to ToolTip() so you can now dispay a centered tail as well (you'll need to download the function again!)
Example:
Code:
Sleep, 100
gui,+LastFound
guihwnd:=WinExist()
OnMessage(0x1C,"WM_ACTIVATEAPP") ;Will make LinkClick and ToolTipClose possible
Restart:
hwndtt:=ToolTip(99,"Please click`n`n`n`n`n"
      , "Welcome to ToolTip Control                          "
      , "Q1 O1 T188 E10.10.50.40 J1 BWhite FBlack I" . GetAssociatedIcon(A_ProgramFiles . "\Internet Explorer\iexplore.exe")
      . " P99 X" A_ScreenWidth/2 . " Y" . A_ScreenHeight)
Return



WM_ACTIVATEAPP(wParam, lParam, msg, hWnd){
   global hwndtt,guihwnd
   MouseGetPos,,,win
   If (wParam=1 and hwnd=guihwnd and win=hwndtt)
      Run % "explorer.exe /e`, /n`,D:\Downloads"
}

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 12:28 pm 
The only good thing in the new version is that its possible to click anywhere on the tooltip and have it do something


2 Bugs:
-It doesn't open (D:\Downloads), instead it always opens (C:\Users\Administrator\Documents) in exploring mode :(
-clicking on it to have it open a location doesn't make it disappear.

Hope you fix these bugs

And I hope you can get rid of that tail in the future, instead of replacing it to the middle :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 12:43 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Anonymous wrote:
-It doesn't open (D:\Downloads), instead it always opens (C:\Users\Administrator\Documents) in exploring mode :(
-clicking on it to have it open a location doesn't make it disappear.

Let's try to open C:\Temp, it works fine for me :?
You must hide it manually:
Code:
Sleep, 100
gui,+LastFound
guihwnd:=WinExist()
OnMessage(0x1C,"WM_ACTIVATEAPP") ;Will make LinkClick and ToolTipClose possible
Restart:
hwndtt:=ToolTip(99,"Please click`n`n`n`n`n"
      , "Welcome to ToolTip Control                          "
      , "Q1 O1 T188 E10.10.50.40 J1 BWhite FBlack I" . GetAssociatedIcon(A_ProgramFiles . "\Internet Explorer\iexplore.exe")
      . " P99 X" A_ScreenWidth/2 . " Y" . A_ScreenHeight)
Return



WM_ACTIVATEAPP(wParam, lParam, msg, hWnd){
   global hwndtt,guihwnd
   MouseGetPos,,,win
   If (wParam=1 and hwnd=guihwnd and win=hwndtt){
      Run % "explorer.exe /e`, /n`,C:\Temp"
      ToolTip(99,"","","GTTM_POP")
   }
}

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 1:14 pm 
Thanks HotKeyIt, I needed to change few things and now I have it working fine..

Code:
Sleep, 100
gui,+LastFound
guihwnd:=WinExist()
OnMessage(0x1C,"WM_ACTIVATEAPP") ;Will make LinkClick and ToolTipClose possible
Restart:
hwndtt:=ToolTip(99,"Please click`n`n`n`n`n"
      , "Welcome to ToolTip Control                          "
      , "Q1 O1 T188 E10.10.50.40 J1 BWhite FBlack I" . GetAssociatedIcon(A_ProgramFiles . "\Internet Explorer\iexplore.exe")
      . " P99 X" 15855 . " Y" . 1198) ;Changed this to get rid of the mouse tail
Sleep, 2000 ;And this to make it reload and so disappear
Reload
Return



WM_ACTIVATEAPP(wParam, lParam, msg, hWnd){
   global hwndtt,guihwnd
   MouseGetPos,,,win
   If (wParam=1 and hwnd=guihwnd and win=hwndtt){
      Run, E:\Music\ ;And this which opens explorer without treeview and the right location
      ToolTip(99,"","","GTTM_POP")
   }
}


One Req if possible, can you make it fade out? Would make my day


P.S. Will keep this page on my Bookmarks to see if you can get rid of that mouse tail :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 1:36 pm 
HotKeyIt:

Let me keep you busy today ;)

New Bug:
Im trying to make a new tooltip in the same script but for something else, I tried to make it do something else when clicked but then I get this error:

Image

How can you make it function for other things and do other thing?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 5:14 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
You must not include the function several times:!:
You need to check what hwnd you got when you click a ToolTip in WM_ACTIVATEAPP, post your script and I will help if you don't figure out your self.

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 5th, 2009, 5:47 pm 
Done, this part solved, thanks :)
All I did was to give the other one a different name (WM_ACTIVATEAPP3), was that the right way? It did the trick though :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2010, 12:48 pm 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
How can I make it display clipboard content?
I tried this but it wont work..

Code:
ToolTip(99,"%Clipboard%"
      , "Winamp"
      , "Q1 O1 T190 E2.2.50.25 J1 BWhite FBlack I" . GetAssociatedIcon("%ProgramFiles%\Winamp\winamp.exe")
      . " P99 X" (A_ScreenWidth-20) . " Y" . (A_ScreenHeight-125))
Sleep, 2000


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2010, 2:56 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Is should be:
Code:
ToolTip(99,Clipboard
...

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2010, 3:42 pm 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
Thanks, it works fine now :)

Just one thing, is it possible to get rid of the tail above tooltip?
Because in my case I want it to appear just above the system tray but without a tail, or at least get the tail to point to the corner.

Here is how it looks now..

Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2010, 6:04 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Try this
Code:
ToolTip(99,Clipboard
      , "Winamp"
      , "Q1 O1 T190 E2.2.50.25 J1 BWhite FBlack I1"
      . " P99 X" (A_ScreenWidth) . " Y" . (A_ScreenHeight+22))
Sleep, 2000
ExitApp

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 118 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi®, jrav and 14 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