: K-Meleon Forum
K-Meleon development related discussions.
[quote=JamesD] Let me try to explain the programming problem that I have and perhaps need for a tab identifier and window identifier will be clearer. Some user asked if there was a way to return a zoomed page to its default size. I made a copy of zoom.kmm and did some work with counters. I added an ALT+SHIFT+0 accelerator to run the new code. This worked very well until I tested with more than one tab. For each type of zoom; text, images, and page; I changed the count for each zoom. When the user presses ALT+SHIFT+0 (zero) the macro zooms each type until the count is zero. The problem is that all the zooming back happens in the current tab (with focus). If some of the user’s zooms have been in other tabs then those counts are included. The page will be returned to a wrong size. I need to segregate the zooms by the tab and window so that I can un-zoom only the ones which were done in the current tab and window. That is also why I asked about an array. Maybe array is the wrong word. What I need is a variable whose name is variable. Where I now have $zoom_text_cnt, I need a variable whose name is $zoom_text_cnt[$_zoom_source]. $_zoom_source is equal to WindowID.”&”.TabID. If this is impossible I can get around it by constructing a user-perf name with WindowID.”&”.TabID. I have a copy of my version of zoom.kmm here: http://dl.dropbox.com/u/1522294/zoom.7z[/quote]
K-Meleon forum is powered by