Sign in to follow this  
Followers 0
Dellairion

mIRC addon (looking for war program)

1 post in this topic

#1 ·  Posted (edited)

I'm unable to recieve the instance of every channel in the chat program mIRC (it's the only way to keep them out of each other).

Any help or sugestions are appreciated.

Func get_channels_instances()
    $channels_tempf = StringSplit($channels, ";")
    $instances_loop = 1
    $channels_done = 0
    Dim $channels_instances[$channels_tempf[0]+1]
    
    Do
        $channels_loop = 1
        Do
            ConsoleWrite($channels_tempf[$channels_loop]&" - "&$instances_loop&@CR)
            If ControlGetHandle($irc_winname, "#"&$channels_tempf[$channels_loop]&" [", "[INSTANCE:"&$instances_loop&"; CLASS:"&$irc_channel_class&"]") <> "" Then
                $channels_instances[$channels_loop] &= $instances_loop
                ExitLoop
            EndIf
            $channels_loop += 1
        Until $channels_loop > $channels_tempf[0]
        $instances_loop += 1
    Until $channels_done >= $channels_tempf[0] Or $instances_loop > 50
    
    MsgBox(0, "", $channels_tempf[1]&" = "&$channels_instances[1]&@CR&$channels_tempf[2]&" = "&$channels_instances[2])
EndFunc

Full script:

Edited by Dellairion

Share this post


Link to post
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
Sign in to follow this  
Followers 0