mIRC Homepage
Posted By: ATMA toolbars.... - 29/08/03 03:58 AM
ok i am having a bit of trouble toolbar docking stuff to the bottom right now this is my current code

Code:
dialog google {
  title "Google Search script"
  size -1 -1 1000 18
  option dbu
  text "Google Search:", 1, 1 4 50 11
  edit %google.lastserach, 2, 40 2 100 11
  button "Search", 3, 140 2 50 11, ok
}
on *:dialog:google:sclick:3: {
  echo Searching Google
  set %google.lastserach $did(google,2)
  run http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q= $+ $replace( $+ $did(google,2) $+ ,$chr(32),+)
}
on *:dialog:google:init:0: {
  dll dlls/mdx.dll SetMircVersion $version 
  dll dlls/mdx.dll MarkDialog $dname
  dll dlls/mdx.dll SetControlMDX $dname 1 ToolBar > dlls/bars.mdx
  dll dlls/mdx.dll SetDialog $dname style
  dll dlls/mdx.dll SetBorderStyle 1
  dll dlls/ktools.dll DockToolbar $dialog($dname).hwnd > bottom
}


im thinking i just might not have the updated kTools.dll idk =/
Posted By: pheonix Re: toolbars.... - 29/08/03 04:02 AM
blah, that url used to work :tongue:
Posted By: ATMA Re: toolbars.... - 29/08/03 04:07 AM
i get a 404 error if i try to goto that link...
Posted By: KingTomato Re: toolbars.... - 29/08/03 05:25 AM
just to let you know. I;d do that if it werent such a chore to change ur dll path to mine. if u wanna hind, whenever u plan to give out add-ons, (which i assume thats why ur making this), use an alias for a dll path because not everyone is the same. Some popel put dlls in scripts\dll\ script\dll scripts\dlls dll\ dlls\ etc etc. Just consider adding something to the effect of

alias -l mdx { return path\to\mdx.dll }

blah...code...
/dll $mdx <blah

EDIT: also on ur dll paths-- the /'s mean internet address, \ means local. just a heads up ur technically pointing to an internet location of dlls/mdx -- should really be dlls\mdx
© mIRC Discussion Forums