Development
: K-Meleon Forum
K-Meleon development related discussions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=siria] [quote=JamesD] 1. In the KM macrolanguage under Special Global Variables, I would like two new items. The first would be $WindowID and the second would be $TabID. I don't care if they are integer or string. They would have a unique value for the tab and window in focus and be read only. 2. If the macrolanguage could have a sort of array system for variable names, some things could be coded better. I mean the variable names could be like $_variable[(var)] where the (var) is a positive integer variable. A reasonable upper limit to var would be OK.[/quote] Yep, both would be quite helpful :) For example I often use one of my minimacros to "move tab to previous window". The trouble starts if there are more than 2 open windows, it's pure luck in which of the other 2 the tab lands. Then I have to call it again, so that it finally lands in the right one. Bit bothersome ;-) Also for [b]flexible variable names à la variable("xy")[/b], working like the macros("xy") solution. Am just currently struggling again with a lousy and very restricted semi-workaround that goes like this: Have predefined words in variables named $_v1, $_v2, ... $_v9 Now a function gives me a number, and I want the matching word, basically something like $_word=variab(_v.$nr) But that doesn't exist, so must first define own macros for each number: _SmRp_v1{$_word=$_v1;} _SmRp_v2{$_word=$_v2;} _SmRp_v3{$_word=$_v3;} etc. for 0-9 And later get the $_word value with: macros("_SmRp_".$nr); $_sometext="blabla ".$_word." blabla";[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development