Hotstring
mIRC Code
+ 2 likes
Please Register to submit score.
| Average Score | 5.5 (of 4 scores) |
| Date Added | Feb 06, 2009 |
| Last Updated | Feb 22, 2009 |
| Tags | hotstring macro |
Description
HotString v0.1
Type /hotstring to start it.
This script basically acts, well like the title says, a hotstring.
I'll show a screenie so you can see it better:

On the bottom-left you can add a hotstring (No Spaces!). Click add to add it, and you should see it come up in the list on the left side.
The edit box on the right lets you change the text you want to replace. To do so, first click a hotstring and then type the text to replace.
Type /hotstring to start it.
This script basically acts, well like the title says, a hotstring.
I'll show a screenie so you can see it better:

On the bottom-left you can add a hotstring (No Spaces!). Click add to add it, and you should see it come up in the list on the left side.
The edit box on the right lets you change the text you want to replace. To do so, first click a hotstring and then type the text to replace.
mIRC Snippet:
Hotstring
Posted on Feb 6, 2009 12:39 am
Posted on Feb 6, 2009 12:39 am
7/10 :D Now Answer to mine:D http://www.hawkee.com/snippet/5725/ :D lol
mIRC Snippet:
Hotstring
Posted on Feb 7, 2009 6:50 pm
Posted on Feb 7, 2009 6:50 pm
It didnt work for me, i would type in the hotstring,
and click 'Add'
but it wouldnt add it.
plz help if you can
and click 'Add'
but it wouldnt add it.
plz help if you can
mIRC Snippet:
Hotstring
Posted on Feb 7, 2009 9:01 pm
Posted on Feb 7, 2009 9:01 pm
Some things I would like to note:
That's really all I have to say.
Keep on going; I like the idea of this script.
- Radios
Code: if ($did == 7) { set %hs 1 }
if ($did == 10) { set %hs 0 }
You can use $did(id).state and some $iif's to see whether something is checked or not, and perform various actions on each check, without the use of variables. Also note that those variables can easily be unset. So normally, you wouldn't need to perform an action when you sclick on those $did's (radios, checkboxes, etc).
- Aliases
The first alias that I see is:
Code: alias hs { dialog $iif($dialog(hs),-v,-dom) hs hs hs | if (!%hs) { set %hs 0 } }
As I said earlier, you wouldn't need variables for radios. Also, to open a dialog, you only need two dialog id's after the $iif. So you can basically recode this as:
Code: alias hs dialog $iif($dialog(hs),-v,-dom) hs hs
This might be my habit, but I find it awkward to have multiple aliases pertaining to the script that perform different functions.
I see three different aliases:
Code: alias hs.load, hs.replace, hs.txt
Kinda confused me, but I guess you can ignore me on this part and leave it alone.
- Dialog
No offense but, this dialog is f&(@#$.
I am sorry, I apologize.
You said earlier that you don't want to use DSTUDIO (for unknown reasons to me), but I'll say some things:
- DSTUDIO makes dialogs look much nicer and it's easier to edit.
- DSTUDIO saves you time.
You may disagree with me because this is a small dialog, but if you were to code a larger dialog as I did with my Microsoft Agent dialog, DSTUDIO significantly lowers the time to create a dialog by several minutes...even hours.
On the bright side, you can improve upon things.
In my opinion, I didn't like the edit box directly underneath the list box.
I also didn't like the initiation text event; I thought it was a little useless, and you can cut that large space out.
This is only one opinion, and you can reject this idea if you wish.
Below I've recoded the dialog to what fits me the best, but again, you can ignore me if you want.
Code: dialog hs {
title "Hotstring v0.2"
size -1 -1 151 84
option dbu
text "Resulting text:", 1, 86 9 37 8
text "Hotstring(s):", 2, 16 9 31 8
list 3, 7 19 51 57, size
edit "", 4, 67 19 74 11, read
button "Add", 5, 64 40 35 10
button "Remove", 6, 109 40 35 10
radio "On", 7, 81 60 18 10
radio "Off", 8, 110 60 19 10
box "Hotstring Configuration", 9, 4 1 144 80
}
I just thought this made it look a little "cleaner".
- Aliases
That's really all I have to say.
Keep on going; I like the idea of this script.
mIRC Snippet:
Hotstring
Posted on Feb 7, 2009 10:29 pm
Posted on Feb 7, 2009 10:29 pm
rofl @ kirbeh ffs
why not just recode the whole thang, and stop doing a Napa however the dialog is abit f&(@#$ ;p
also you should make it so that we cant keep entering the same hotstring.....
anyhow I like this code
/me rates 7
why not just recode the whole thang, and stop doing a Napa however the dialog is abit f&(@#$ ;p
also you should make it so that we cant keep entering the same hotstring.....
anyhow I like this code
/me rates 7
mIRC Snippet:
Hotstring
Posted on Feb 22, 2009 2:56 pm
Posted on Feb 22, 2009 2:56 pm
alias "/hs" is an alias for "/msg hostserv x" on some servers. i suggest you change it (:
and btw, i disagree. i quite like the dialog, from the screenshot.
If i was to be REALLY picky, move the radios down a few px. and make them a bit closer together. and make the edit box as long as the longest part of text (:
and btw, i disagree. i quite like the dialog, from the screenshot.
If i was to be REALLY picky, move the radios down a few px. and make them a bit closer together. and make the edit box as long as the longest part of text (:
mIRC Snippet:
Hotstring
Posted on Feb 22, 2009 5:58 pm
Posted on Feb 22, 2009 5:58 pm
Ahh forgot about that, thanks. I was just too lazy to type /hotstring each time to test (and too stupid to make a menu at that time), so I put /hs. Forgot to change it at end.
And yeah, I usually do dialogs like without DStudio or anything so that's why it looks a little less aesthetically pleasing :)
*Updates alias
And yeah, I usually do dialogs like without DStudio or anything so that's why it looks a little less aesthetically pleasing :)
*Updates alias
mIRC Snippet:
Hotstring
Posted on Feb 23, 2009 11:24 am
Posted on Feb 23, 2009 11:24 am
Wuuut
The IDs are the only thing that sometimes bugs me about DStudio. And it's much easier to get it pixel perfect with DStudio. :P
*Will never manually make a dialog ever again*
The IDs are the only thing that sometimes bugs me about DStudio. And it's much easier to get it pixel perfect with DStudio. :P
*Will never manually make a dialog ever again*
mIRC Snippet:
Hotstring
Posted on Feb 23, 2009 12:31 pm
Posted on Feb 23, 2009 12:31 pm
I like how Jonesy put it. I like how easy it is to use DStudio, but I just don't like it.
I would use it for the huge dialogs that I might ever need (and even then, probably just to get a look on things, not actually making it).
DStudio just helps get a better visual representation of the dialog.
I would use it for the huge dialogs that I might ever need (and even then, probably just to get a look on things, not actually making it).
DStudio just helps get a better visual representation of the dialog.
mIRC Snippet:
Hotstring
Posted on Feb 23, 2009 2:04 pm
Posted on Feb 23, 2009 2:04 pm
Eh, usually when I'm making a dialog I can think of what it should look like and then use DStudio to actually make it. :S















