mIRC Home    About    Download    Register    News    Help

Print Thread
#255532 02/11/15 01:59 PM
Joined: Nov 2015
Posts: 16
Pikka bird
OP Offline
Pikka bird
Joined: Nov 2015
Posts: 16
Hello Everyone.

I've created an Nice Botoperator Tool for the Staff Members of our Network; now I want to add some additional settings.

I'm currently on creating a tab where the Settings you've set via Hash Tables are shown.



So, I want the Dialog to read the data from the Hash table; but to be honest I have no clue how to do that in dialogs.

edit "$hget(botopst,botchan)" 13, 47 29 48 11, tab 10

did not work at all (lol).

Any Ideas?


Chris 'DarkTexas' D.
Technical Administrator
ICQ-Chat IRC Services
http://icq-chat.com
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Hi! There are several dialog events which you can use to add/remove text
from edits, text
on *:dialog:name:init:
name = the dialogs name
init event triggers when the dialog is first opened (initial)
on *:dialog:name:sclick:
sclick triggere when you single click something in the dialog
on *:dialog:name:dclick:
Triggers when you double click something in the dialog
on *:dialog:name:edit:
triggers when you type on an edit
;;
You can use /did command to write in an edit:
the format of /did command is
did parameters name id text
The parameter that adds text is -a but there are a lot others that do a bunch of things.
name is the dialog name
id is the id of the item you wanna add text to.
Text is the text you wanna add.
;;
$did returns the id of the item that was edited/clicked.
$dname returns the dialog's name
;;
For more help try this tutorial

http://www.mirc.org/mishbox/tutorials/dialogs.htm

Last edited by OrFeAsGr; 02/11/15 03:28 PM.
Joined: Nov 2015
Posts: 16
Pikka bird
OP Offline
Pikka bird
Joined: Nov 2015
Posts: 16
uhm, well, the question was if I can make the hget showing up (the data in the hashtable) in the edit line by default =o

I know how to code etc these dialogs. I just got the problem with getting hash tables data.

Originally Posted By: OrFeAsGr
Hi! There are several dialog events which you can use to add/remove text
from edits, text
on *:dialog:name:init:
name = the dialogs name
init event triggers when the dialog is first opened (initial)
on *:dialog:name:sclick:
sclick triggere when you single click something in the dialog
on *:dialog:name:dclick:
Triggers when you double click something in the dialog
on *:dialog:name:edit:
triggers when you type on an edit
;;
You can use /did command to write in an edit:
the format of /did command is
did parameters name id text
The parameter that adds text is -a but there are a lot others that do a bunch of things.
name is the dialog name
id is the id of the item you wanna add text to.
Text is the text you wanna add.
;;
$did returns the id of the item that was edited/clicked.
$dname returns the dialog's name
;;
For more help try this tutorial

http://www.mirc.org/mishbox/tutorials/dialogs.htm

Last edited by DarkTexas; 02/11/15 05:40 PM.

Chris 'DarkTexas' D.
Technical Administrator
ICQ-Chat IRC Services
http://icq-chat.com
Joined: Feb 2015
Posts: 243
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Feb 2015
Posts: 243
Well if you read all my post you'll see i'm talking about /did command which can add/delete text to an item.
so if you use this...
Code:
on *:dialog:name:init: {
did -a Name ID TEXT
}

Replace the NAME with the name of the dialog, the ID with the ID of the edit you wanna add text to and TEXT with the $hget(bla,bla)
When you open that dialog it will have the output on that edit.

Last edited by OrFeAsGr; 02/11/15 11:55 PM.

Link Copied to Clipboard