mIRC Homepage
Posted By: glad help - 05/07/04 10:12 AM
how can i call colormenu (ctrl+k) by command?
if i cant, how can i made dialog with color selection?

thanks

Posted By: tsoglanos Re: help - 05/07/04 10:25 AM
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..

Posted By: glad Re: help - 05/07/04 10:51 AM
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
Posted By: tsoglanos Re: help - 05/07/04 11:28 AM
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
 
Posted By: Cyclone Re: help - 05/07/04 11:36 AM
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>
}

Posted By: tsoglanos Re: help - 05/07/04 12:00 PM
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
Posted By: Online Re: help - 05/07/04 07:24 PM
Quote:
how can i made dialog with color selection


ColorCombo.dll
© mIRC Discussion Forums