Ok i started a new script that allows me to do an ON *:TEXT event
I have made the script no problems and tested it, however im now stuck
on defining variables for
On or
Off using a combo box
menu channel {
Is Running:dialog -m isrun isrun
}
dialog isrun {
title "New Project"
size -1 -1 115 76
option dbu
text "Utilites Running Config", 1, 3 3 110 8
combo 2, 33 15 23 30, size drop
text "UT Server", 3, 3 15 30 8
combo 4, 33 25 23 30, size drop
text "Roger Wilco", 5, 3 25 30 8
combo 6, 33 35 23 30, size drop
text "WinAmp", 7, 3 35 30 8
combo 8, 33 45 23 30, size drop
text "UT", 9, 3 45 30 8
button "OK", 11, 73 11 40 18, ok cancel
icon 12, 86 30 16 16, mirc.ico, 0
}
[color:green]
on *:dialog:isrun:init:0:{
did -a isrun 2 On
did -a isrun 2 Off
did -a isrun 4 On
did -a isrun 4 Off
did -a isrun 6 On
did -a isrun 6 Off
did -a isrun 8 On
did -a isrun 8 Off
}
[/color]
ON *:TEXT:!isrun:#utca {
if (%serveron == on) {
msg $chan 9UT Game Server Running
}
else {
msg $chan 4UT Game Server Not Running
}
if (%rogeron == on) {
msg $chan 9Roger Wilko Running
}
else {
msg $chan 4Roger Wilko Not Running
}
if (%winampon == on) {
msg $chan 9Winamp Running
}
else {
msg $chan 4Winamp Not Running
}
if (%uton == on) {
msg $chan 9Unreal Tournament Running
}
else {
msg $chan 4Unreal Tournament Not Running
}
}
I made the variables
%serveron,
%rogeron,
%winampon and
%uton and placed them manually into
my bots remote.ini file in the section for variables, then manually altered the variable
by maybe placing a
%serveroff,
%serveron and such, then tested the script by using the !isrun command, this works, what i`m stuck on is actually using the combo box in the dialog to set the status of the variable to
On, or
Off, could someone tell me how i can do this, i`v read the help file and searcehd the internet (again)
(I hope this is clear to whoever is reading this, as my descriptions aint none to clever.)
If you need a pic, just ask
Also is there a way that i can load the dialog on my mirc (shadowdemon) and select the state of the variables BUT pass and save them to the bots ini file where the variables are kept, that way i dont have to keep switching mIRCs so i can enable and disable the running apps, and still be able to type !isrun and have the bot inform me on my mirc (shadowdemon) what apps are running ?
I did read a bit about the /writeini command, but i`m unsure about how it works
ShadowDemon
mIRC V6.03