Jump to content

Custom Windows


Dodge

Recommended Posts

;This will allow webchat without emot's or scroll with the mousewheel on 3 servers.
;Koachs, Buzzen and Sparkpea. I've made these as 3 seperate scripts.
;You must have the nHTMLn_2.95.dll In your mIRC main folder for this to work.
;Actually I don't see any reason these 3 scripts couldn't be Incorporated Into 1. I'll update that later.
;Remember Roomnames change. This was good at Aussie Date/time. June 7th 2009 3.48pm
;first Script Koachs www.koach.com
;--------------------==========--------------------==========--------------------
alias hd {
  window -p @HelpDesk
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@HelpDesk).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x =  $dll(nHTMLn_2.95.dll,navigate,http://www.koach.com/index.php?id=webchat&chan=%23HelpDesk&nick=CustomWindows&pass=0&emot=1&ts=0&fs=m)
}
alias roomlist {
  window -p @Roomlist
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@Roomlist).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x =  $dll(nHTMLn_2.95.dll,navigate,http://koach.com/index.php?id=chat)
}
alias kwshp {
  window -p @koachsWkshp
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@koachswkshp).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x =  $dll(nHTMLn_2.95.dll,navigate,http://www.koach.com/index.php?id=webchat&chan=%23KoachsWorkShop&nick=CustomWindows&pass=0&emot=1&ts=0&fs=m)
}
alias forum {
  window -p @Forum
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@Forum).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://koach.com/mb/YaBB.pl)
}
alias google {
  window -p @Google
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@Google).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.google.com/webhp)
}
menu channel,status,menubar {
  -
  -•CustomWindowsKoach•-
  .HelpDesk:/hd
  .Roomlist:/roomlist
  .KoachsWorkshop:/kwshp
  .MessageBoards:/forum
  .Google:/google
  -
}

;--------------------==========--------------------==========--------------------
;Second Script Bzn www.buzzen.com Don't do what I did and go to hd and ask to look at the desk.
;It will only get you banned.

alias hd {
  window -p @HelpDesk
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@HelpDesk).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.buzzen.net/chatui.aspx?rm=%25%23HelpDesk)
}
alias general {
  window -p @General
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@general).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.buzzen.com)
}
alias dodges {
  window -p @Dodges
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@Dodges).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.buzzen.net/chatui.aspx?rm=%25%23!%7e%7eFree%5cbBeer%5cband%5cbBongers%7e%7e!) | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•
}
alias sf {
  window -p @Soulfly
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@soulfly).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.buzzen.net/chatui.aspx?rm=%25%23_SoulFly_) | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•
}
alias google {
  window -p @Google
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@Google).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.google.com/webhp)
}
alias ms {
  window -p @Moschino
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@moschino).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.buzzen.net/chatui.aspx?rm=%25%23Moschino) | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•
}
alias irc {
  window -p @IRC
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@IRC).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.buzzen.net/chatui.aspx?rm=%25%23IRCommunity) | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•
}
alias df {
  window -p @DF
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@DF).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.buzzen.net/chatui.aspx?rm=%25%23%7e*%7e%5cbDragons%5cbFolly%5cb%7e*%7e) | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•

}
menu channel,status,menubar {
  -
  -•Custom WindowsBZN•-
  .HelpDesk:/hd
  .General:/general
  .Dodges:/dodges
  .Soulfly :/sf
  .Google:/google
  .Moschino:/ms
  .IRCommunity:/irc
  .Dragons:/df
  -
}

;--------------------==========--------------------==========--------------------
;Third Server Sparkpea
;www.sparkpea.com

alias hd {
  window -p @HelpDesk
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@helpDesk).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x =  $dll(nHTMLn_2.95.dll,navigate,http://www.sparkpea.net/chatroom.php?rhx=252348656c704465736b)
}
alias homepage {
  window -p @HomePage
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@homepage).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x =  $dll(nHTMLn_2.95.dll,navigate,http://www.sparkpea.net)
}
alias mshs {
  window -p @MSHS
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@mshs).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x =  $dll(nHTMLn_2.95.dll,navigate,http://www.sparkpea.net/chatroom.php?rhx=2523212121212121214D53485321212121212121)
}
alias forums {
  window -p @Forums
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@Forums).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.sparkpea.net/forum.php)
}
alias google {
  window -p @Google
  var %x = $dll(nHTMLn_2.95.dll,attach,$window(@Google).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x = $dll(nHTMLn_2.95.dll,navigate,http://www.google.com/webhp)
}
menu channel,status,menubar {
  -
  -•CustomWindowsSPCN•-
  .HelpDesk:/hd
  .HomePage:/homepage
  .MSHS:/mshs
  .Forums:/forums
  .Google:/google
  -
}
;--------------------==========---------End-----------==========--------------------

Edited by The Gate Keeper
please use the code tags when inserting code...
Link to comment
Share on other sites

Very long but you can remove repeated code, for example:

 

;---general alias
alias openwindow {
  if ($1 == $null || $2 == $null) return
  if ($window($1)) window -a $1
  else window -p $1
  var %x = $dll(nHTMLn_2.95.dll,attach,$window($1).hwnd)
  %x = $dll(nHTMLn_2.95.dll,margins,-2)
  %x =  $dll(nHTMLn_2.95.dll,navigate,$2)
}
;----

menu channel,status,menubar {
  -
  -•CustomWindowsKoach•-
  .HelpDesk: openwindow @HelpDesk http://www.koach.com/index.php?id=webchat&chan=%23HelpDesk&nick=CustomWindows&pass=0&emot=1&ts=0&fs=m
  .Roomlist: openwindow @Roomlist http://koach.com/index.php?id=chat
  .KoachsWorkshop: openwindow @koachsWkshp http://www.koach.com/index.php?id=webchat&chan=%23KoachsWorkShop&nick=CustomWindows&pass=0&emot=1&ts=0&fs=m
  .MessageBoards: openwindow @Forum http://koach.com/mb/YaBB.pl
  .Google: openwindow @Google http://www.google.com/webhp
  -
}

;--------------------==========--------------------==========--------------------
;Second Script Bzn www.buzzen.com Don't do what I did and go to hd and ask to look at the desk.
;It will only get you banned.

menu channel,status,menubar {
  -
  -•Custom WindowsBZN•-
  .HelpDesk: openwindow @HelpDesk http://www.google.com/webhp
  .General: openwindow @General http://www.buzzen.com
  .Dodges: openwindow @Dodges http://www.buzzen.net/chatui.aspx?rm=%25%23!%7e%7eFree%5cbBeer%5cband%5cbBongers%7e%7e! | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•
  .Soulfly : openwindow @Soulfly http://www.buzzen.net/chatui.aspx?rm=%25%23_SoulFly_ | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•
  .Google: openwindow @Google http://www.google.com/webhp
  .Moschino: openwindow @Moschino http://www.buzzen.net/chatui.aspx?rm=%25%23Moschino | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•
  .IRCommunity: openwindow @IRC http://www.buzzen.net/chatui.aspx?rm=%25%23IRCommunity | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•
  .Dragons: openwindow @DF http://www.buzzen.net/chatui.aspx?rm=%25%23%7e*%7e%5cbDragons%5cbFolly%5cb%7e*%7e | echo 4,15•WoOt.Hope That's Good. 12,15•Enjoy2,15•
  -
}

;--------------------==========--------------------==========--------------------
;Third Server Sparkpea
;www.sparkpea.com

menu channel,status,menubar {
  -
  -•CustomWindowsSPCN•-
  .HelpDesk: openwindow @HelpDesk http://www.sparkpea.net/chatroom.php?rhx=252348656c704465736b
  .HomePage: openwindow @HomePage http://www.sparkpea.net
  .MSHS: openwindow @MSHS http://www.sparkpea.net/chatroom.php?rhx=2523212121212121214D53485321212121212121
  .Forums: openwindow @Forums http://www.sparkpea.net/forum.php
  .Google: openwindow @Google http://www.google.com/webhp
  -
}
;--------------------==========---------End-----------==========--------------------

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...