Jump to content

Recommended Posts

Posted

hello,

I'm a newbie with autoit. i want to make a script to put Windows Live Messenger to system tray or bring up messenger if it is minimized.

after that, i will call this script with hotkey.

Can you help me please!!!

thank you for your help.

Posted

Messenger Plus does that, and you get tons of other cool features.

And with AutoIT:

Messenger always go to system tray when you Hit "X".

So, use WinClose command, and to bring it back again Run command can work.

For the hotkey there are plenty of post about that in forum.

Posted (edited)

hello,

I'm a newbie with autoit. i want to make a script to put Windows Live Messenger to system tray or bring up messenger if it is minimized.

after that, i will call this script with hotkey.

Can you help me please!!!

thank you for your help.

Please be more specific,,,, i could done something better if i knew what excacly you want...

this is an example of what you want:

$maingui = GUICreate("TEST", 500, 400)
GUISetState(@SW_HIDE, $maingui)

HotKeySet("a", "_restore")

While 1
    if WinExists("Windows Live Messenger") Then
  WinSetState ("Windows Live Messenger", "", @SW_RESTORE)
Else
    WinClose("Windows Live Messenger")
EndIf   
  WEnd

Func _restore()
    GUISetState(@SW_SHOW, $maingui)
EndFunc
Edited by c4nm7
Posted

Ok !, i'm gonna be more specific.

i already have my hotkey software.

i want an autoit script that minimize or restore windows live messenger.

the script require no gui.

when a run the script, "messenger" will pop-up or goes to the system tray.

after that, i will assign a hotkey (with my hotkey software) to that script.

i hope it is enough specific for you.

i have tested your code, i saved to an au3 script. i run the script. press de "a"" button but it will do nothing accept to bring a empty window named "TEST"

thanks for you help!

and sorry for my bad english. i'm french for canada (québec)

bye.

Posted

yeah!!!

it work great!!!

thanks a lot.

Some tweak....

there is possibility to hide the script icon that appear 1 seconde during de execution of the script? if yes how to do that.

To restore "Windows Live Messenger" you run the application again, there is a possibility to simply tell the wlm to simpye restore instead of rerun app.?

thanks!

Posted (edited)

sorry misunderstood what u said , and i thought that hotkey is only for making your custom GUI visible...

#NoTrayIcon
If ProcessExists("msnmsgr.exe") = 0 Then
    Sleep(100)
Else
    If WinExists("Windows Live Messenger") Then
        WinClose("Windows Live Messenger")
    Else
        Run(@ProgramFilesDir & "\MSN Messenger\msnmsgr.exe")
    EndIf
EndIfoÝ÷ ÙÈ^rH¶¬Â䱫­¢+Ø9½QÉå%½¸()!½Ñ-åMÐ ÅÕ½ÐíÅÕ½Ðì°ÅÕ½Ðí¡¬ÅÕ½Ðì¤()]¡¥±Ä(M±À ÄÀÀ¤)]¹()Õ¹¡¬ ¤)%AɽÍÍá¥ÍÑÌ ÅÕ½ÐíµÍ¹µÍȹáÅÕ½Ðì¤ôÀQ¡¸(%M±À ÄÀÀ¤)±Í(%%]¥¹á¥ÍÑÌ ÅÕ½Ðí]¥¹½ÝÌ1¥Ù5Í͹ÈÅÕ½Ðì¤Q¡¸(%]¥¹
±½Í ÅÕ½Ðí]¥¹½ÝÌ1¥Ù5Í͹ÈÅÕ½Ðì¤(%±Í(%IÕ¸¡Aɽɵ¥±Í¥ÈµÀìÅÕ½ÐìÀäÈí5M85Í͹ÈÀäÈíµÍ¹µÍȹáÅÕ½Ðì¤(%¹%)¹%)¹Õ¹

this might be the completed

Edited by c4nm7

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...