mIRC Homepage
Posted By: CandC open a query on desktop - 02/05/04 12:49 PM
i need to open a query window on desktop, but the /window command i don't know.

help me pls
Posted By: Mentality Re: open a query on desktop - 02/05/04 01:06 PM
There is a "display on desktop" option in mIRC options for various types of windows, including queries. This opens query windows that you receive and that you open on the desktop. If you use Windows XP or 2K then you can also set 'Transparency' for how transparent the window should be (so you can see what goes on in the background too).

The option can be found in ALT+O > Display > Options > [Windows] - check the box 'Query'. Press 'OK' to get out of the dialogs and then simply type /query nickname to open a new desktop query window. When you receive a PM query window, the same thing will happen.

A lot of help with the window command is found by typing /help /window.

Hope this helps smile

Regards,
Posted By: CandC Re: open a query on desktop - 02/05/04 01:15 PM
yes, but....

/query Mentality
/window -d mentaly

these commands not function

i can not use alt + o ... ecc ecc
Posted By: Mentality Re: open a query on desktop - 02/05/04 02:11 PM
I don't know of a command to open a query window on the desktop via a command, and not with /window.

If you enable the option I said, and press 'OK' then you can just type /query nickname and the window will open on the desktop, it just requires activation of that function...why can you not use ALT+O?

I think if you change the mirc.ini file to say: wquery=140,851,140,477,0,1,1 under [window] (use CTRL+F) then it might change the options accordingly without having to use ALT+O...might be useful for a script and the like.

There might well be a scripting way to do it, but if there is I don't know it, keep checking back to see if some other clever person has posted smile

Regards,
Posted By: tidy_trax Re: open a query on desktop - 02/05/04 02:19 PM
afaik mIRC rewrites the ini file if changes have been made without mirc doing it.
Posted By: Mentality Re: open a query on desktop - 02/05/04 02:31 PM
Yeah, it does, but I mean if they are planning to distribute the mIRC.ini file with a script they might want this preset in the ini file so that when the user who downloads the script puts the mIRC.exe into the script folder, it should activate the desktop query message windows option.

When this is done I don't think mIRC rewrites anything otherwise I wouldn't see so many scripts with these awful preset colours in wink

Regards,
Posted By: Hammer Re: open a query on desktop - 02/05/04 05:26 PM
alias query {
  • query $$1
    var %WSH = WSH $+ $ticks
    .comopen %WSH WScript.Shell
    .comclose %WSH $com(%WSH, SendKeys, 3, *bstr, % $+ -D)
}
Posted By: Soul_Eater Re: open a query on desktop - 02/05/04 05:33 PM
you can also use DmU dll (located at my site) to make any window a desktop window.
Posted By: CandC Re: open a query on desktop - 02/05/04 08:44 PM
tks Soul_Eater
this dll is wonderful! :-)
Posted By: CandC a problem with dmu.dll - 02/05/04 11:39 PM
Example 1
_____________________________________________
scon 2 query Mentality
scon 2 dll dmu.dll Desktop $window(mentality).hwnd
____not function________________________________


Example 2
_____________________________________________
scon 2 query Mentality
dll dmu.dll Desktop $window(mentality).hwnd
____not function_________________________________________

this dll is good only on single connection?

Posted By: Soul_Eater Re: a problem with dmu.dll - 03/05/04 04:33 AM
the dll makes whatever HWND you specify desktopped. It just means youll have to find a better way to get the hwnd.
Posted By: Iori Re: a problem with dmu.dll - 03/05/04 08:55 AM
Try these.
  • scon 2 query Mentality
    scon 2 dll dmu.dll Desktop $!window(mentality).hwnd
  • scon 2
    query Mentality
    dll dmu.dll Desktop $window(mentality).hwnd
Posted By: CandC Re: a problem with dmu.dll - 03/05/04 05:50 PM
uau...
scon 2 query Mentality
scon 2 dll dmu.dll Desktop $!window(mentality).hwnd

it's fantastic!!!
© mIRC Discussion Forums