mIRC Home    About    Download    Register    News    Help

Print Thread
help #89270 05/07/04 10:12 AM
Joined: Jul 2004
Posts: 2
G
glad Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Jul 2004
Posts: 2
how can i call colormenu (ctrl+k) by command?
if i cant, how can i made dialog with color selection?

thanks


Re: help #89271 05/07/04 10:25 AM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
here is an alias the would alow you to call keys

Code:
 
alias keysend { 
  var %#,%& 
  if ($1 == ALT) { var %# %# $+ % | tokenize 32 $2- } 
  if ($1 == CTRL) { var %# %# $+ ^ | tokenize 32 $2- } 
  if ($1 == SHIFT) { var %# %# $+ + | tokenize 32 $2- } 
  if ($1 == ALT) { var %# %# $+ % | tokenize 32 $2- } 
  if ($1 == CTRL) { var %# %# $+ ^ | tokenize 32 $2- } 
  if ($1 == SHIFT) { var %# %# $+ + | tokenize 32 $2- } 
  while ((!%&) || ($com(%&))) { 
    var %& = key- $+ $rand(a,z) $+ $rand(a,z) $+ $rand(a,z) 
  } 
  .comopen %& WScript.Shell 
  if (!$comerr) var %z = $com(%&,SendKeys,3,bstr,%# $+ $1-) 
  .comclose %& 
} 

 


;Usage:
/keysend ctrl k
/keysend alt k
etc..


Re: help #89272 05/07/04 10:51 AM
Joined: Jul 2004
Posts: 2
G
glad Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
G
Joined: Jul 2004
Posts: 2
thakns smile
another problem laugh

Code:
dialog test {
  title "lalalala"
  size 50 50 80 30
  option dbu
  text "nick color:", 1, 10  15  25 10
  button  "choose color",     2, 10  15 50 10
}
; ??? on 1:dialof:hui:sclick:557: {
; ???//keysend ctrl k
; ???}


then i push button colormenu activate, i choose color (by mouseclick) and this color need to be saved to variable

is it possible?

ps: congrats laugh nice games @ euro2004

Re: help #89273 05/07/04 11:28 AM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
Normal not becuse ctrl+k works with edit

Code:
 
dialog test {  
  title "lalalala"  
  size 100 100 80 30  
  option dbu  
  text "nick color:", 1, 10  15  25 10  
  edit  "", 2, 10  15 50 10
  check "color",3,10 5 50 10,push
}

on 1:dialog:test:edit:2:{ 
  if ($did(3).state = 1)  { keysend ctrl k | did -u $dname 3 }
}
prees the color button and try to write somthing in the edit box
 

Re: help #89274 05/07/04 11:36 AM
Joined: Feb 2004
Posts: 54
Cyclone Offline
Babel fish
Offline
Babel fish
Joined: Feb 2004
Posts: 54
button "choose color", 2, 10 15 50 10, result %result

this will save the value of the ID as %result when you close the dialog by clicking the OK button. You set an OK button like this:

dialog test {
title "lalalala"
size -1 -1 80 35
option dbu
text "nick color:", 1, 2 10 25 10
button "choose color", 2, 30 9 48 10, result %mycolor
button "OK", 3, 30 22 30 10, ok
}

or you could set it when you click the select colour button:

on *:DIALOG:lalalala:sclick:2: {
.set %my_color <value>
}


Re: help #89275 05/07/04 12:00 PM
Joined: Mar 2004
Posts: 130
T
tsoglanos Offline
Vogon poet
Offline
Vogon poet
T
Joined: Mar 2004
Posts: 130
Maby you sould folow cyclones way or making a drop down combo box with nubers
a send key ctrl +k pressing a button would only be posibel when you close the dialog
on 1:dialog:test:sclick:3:{ dialog -x test | keysend ctrl k }

But this would go into the mIRC editbox smile also result: ctrl+k is desint for editboxes

and if you wane work with editboxes and crtl+k preesing ctr+k manuel would be the best way ,another souliton would be on some botton sclick did -a $dname ID $chr(3) $+ N

Last edited by tsoglanos; 05/07/04 12:01 PM.
Re: help #89276 05/07/04 07:24 PM
Joined: Dec 2002
Posts: 1,922
O
Online Offline
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Quote:
how can i made dialog with color selection


ColorCombo.dll