Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sel and matchw
#1
how to use sel on this:

Code:
Copy      Help
Acc c=acc(mouse)
int hwnd=win(mouse)
if matchw(c.Name "Papier*")
,key Adr
if matchw(c.Name "m.g.germany*")
,key CSc
if matchw(c.Name "g.c.w.power-pro*")
,key CSc
if matchw(c.Name "g.c.w.gui4cli*")
,key CSc

btw. its a subscript of FF_middleclick, in thunderbird i middle click on trash(german->papierkorb) to delete all mails in an account.
middle click on a newsgroup sets all posts to read.
pi
#2
Code:
Copy      Help
sel c.Name 2
,case "Papier*" key Adr
,case ...
,...
#3
Code:
Copy      Help
flags - string comparison options. Combination of the following values: 1 - case insensitive, 2 use wildcard characters in a, b, etc. Default: 0.

my code is now very smaller and because of thunderbirds way to name newsgroups internal i even can use a *.*.* mask for default newsgroup clicks.

Confusedhock:

Code:
Copy      Help
Acc c=acc(mouse)
int hwnd=win(mouse)
sel c.Name 2
,case "Papier*" key Adr
,case "*.*.*" key CSc
pi


Forum Jump:


Users browsing this thread: 1 Guest(s)