AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: October 25th, 2011, 8:28 pm 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
Just a very small issue:

It's currently not possible within AHK to find out which tooltip number is "free" (= not currently showing a tooltip). It would be nice to have if one needs to dynamically show them. It would also add consistency with other functions/commands like OnMessage.


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

Joined: June 4th, 2010, 9:04 pm
Posts: 1347
Location: california
should be possible to create a wrapper function around the tooltip command that would hold a list of 20 (the current limit in AHK Basic) with their numbers (locations and text also if if required) and a display status flag (0=off, 1=0 for example). You could also have the function clear all current tooltips, display the current list of active tooltips (or just the open ones).
something like...
Code:
fnTT(cmdcode="",ttnr="",txt="",ttx="",tty="")
{
; do function stuff here
; if cmdcode is blank then set or clear the individual tooltip based on the other inputs

     ; if ttnr is blank or zero then ttnr = 1
     ; if ttnr is >20 then ttnr = 1
     ; if txt is blank then turn off tooltip based on ttnr
     ; if ttx is blank and tty is blank then position tooltip at cursor
     ; if ttx is set and tty is blank then position at ttx, 0
     ; if ttx is blank and tty is set then position at 0,tty
     ; if txt is nonblank then set display flag = ON and show the tooltip

; if cmdcode is "list" then list all active/inactive tooltips
; if cmdcode is "clear" then clear all current tooltips
}

I know this probably isn't what you had in mind but making modifications to the actual tooltip code may not be something the maintainer has as a priority item and this could be a reasonable interim solution.

_________________
Image


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

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
That's a possibility of course. As I said this is only a very minor issue and I just wanted to mention it for completeness of the language ;)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 3 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