Sign in to follow this  
Followers 0
Jayson

Box problem

19 posts in this topic

#1 ·  Posted (edited)

Sup guys ! Since i'm newbie in autoit, I would like some help on this code.

I got 2 problems.

First : Sometimes when i'm opening another msn by pressing shift+m it show a box if i'd like to open another msn but when i press no it bug at Case $msg = $choix

Second : The other one is when im opening msn by the GUI and closing msn & autoit everything works fine but when i'm doing it again no msn is openend but it ask me if i'd like to open another one.

I'd like some help pls !!

Btw, sorry for my english..

#include <GUIConstants.au3>
HotKeySet("+m","MSN")

Func MSN()
    If ProcessExists("msnmsgr.exe") = 0 Then
    GUICreate("Choose your account", 300, 200)
    $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
    GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
    $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
    GUISetState()
        ElseIf ProcessExists("msnmsgr.exe") Then
        $msn = MsgBox(4, "", "Are you sure to open another Msn Messenger ?")
            If $msn = 6 Then
        GUICreate("Choose your account", 300, 200)
        $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
        GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
        $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
        GuiSetState()
    EndIf
EndIf
While 1
    $msg = GuiGetMsg()
    
    Select
    Case $msg = $choix
        $compte = GUICtrlRead($c)
        Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
        WinWaitActive("Windows Live Messenger")
        Send(" "&$compte& "{TAB}")
    Case $msg = $GUI_EVENT_CLOSE
        GuiSetState(@SW_HIDE)
EndSelect
WEnd
EndFunc
Edited by Jayson

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Sup guys ! Since i'm newbie in autoit, I would like some help on this code.

I got 2 problems.

First : Sometimes when i'm opening another msn by pressing shift+m it show a box if i'd like to open another msn but when i press no it bug at Case $msg = $choix

Second : The other one is when im opening msn by the GUI and closing msn & autoit everything works fine but when i'm doing it again no msn is openend but it ask me if i'd like to open another one.

I'd like some help pls !!

Btw, sorry for my english..

#include <GUIConstants.au3>
    HotKeySet("+m","MSN")
    
    Func MSN()
        If ProcessExists("msnmsgr.exe") = 0 Then
        GUICreate("Choose your account", 300, 200)
        $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
        GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
        $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
        GUISetState()
            ElseIf ProcessExists("msnmsgr.exe") Then
            $msn = MsgBox(4, "", "Are you sure to open another Msn Messenger ?")
                If $msn = 6 Then
            GUICreate("Choose your account", 300, 200)
            $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
            GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
            $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
            GuiSetState()
        EndIf
    EndIf
    While 1
        $msg = GuiGetMsg()
        
        Select
        Case $msg = $choix
            $compte = GUICtrlRead($c)
            Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
            WinWaitActive("Windows Live Messenger")
            Send(" "&$compte& "{TAB}")
        Case $msg = $GUI_EVENT_CLOSE
            GuiSetState(@SW_HIDE)
    EndSelect
    WEnd
    EndFunc
In fact I think you have 3 problems because what you posted won't work at all :P

You need to have an idle loop or the function will never get called and the script will exit straight away

The problem is that you call the function but never leave it, then when you press +m again you call the function again and create another gui ut the old one is still there etc so total confusion.

I think that if you call a function with a hotkey then it's generally best to make sure you leave it. Then make sure you don't cretae a gui again unless you have deleted the previous one.

This might fix it

#include <GUIConstants.au3>
   HotKeySet("+m", "MSN")
   Global $madegui = False
   
   while 1;wait for something to happen
    sleep(50)
   wend
   
   Func MSN()
   
       If $madegui = False Then
           GUICreate("Choose your account", 300, 200)
           $c = GUICtrlCreateCombo("", 30, 65, 200, 21)
           GUICtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
           $choix = GUICtrlCreateButton("Choose", 30, 100, 130, 20)
           $madegui = True
       EndIf
       
       If ProcessExists("msnmsgr.exe") Then
           $msn = MsgBox(4, "", "Are you sure to open another Msn Messenger ?")
           If $msn = 6 Then
               GUISetState()
           EndIf
       Else
           GUISetState()
       EndIf
       While 1
           $msg = GUIGetMsg()
   
           Select
               Case $msg = $choix
                   $compte = GUICtrlRead($c)
                   Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
                   WinWaitActive("Windows Live Messenger")
                   Send(" " & $compte & "{TAB}")
               Case $msg = $GUI_EVENT_CLOSE
                   GUISetState(@SW_HIDE);if you hide the gui then don't create it again
                   return
           EndSelect
       WEnd
   EndFunc ;==>MSN

but this might be a simpler way to do it

#include <GUIConstants.au3>
   HotKeySet("+m", "MSN")
   
  ;create the gui so that it's always there when you need it
   GUICreate("Choose your account", 300, 200)
   $c = GUICtrlCreateCombo("", 30, 65, 200, 21)
   GUICtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
   $choix = GUICtrlCreateButton("Choose", 30, 100, 130, 20)
   GuiSetState(@SW_HIDE);added after note by Valuater. It makes it obvious we haven't forgotten the state and that we want it hidden for now so I agree.
 
   while 1;wait while nothing happens
       sleep(50)
   WEnd
   
   
   
   Func MSN()
   ConsoleWrite("kihuhuj" & @CRLF)
       If ProcessExists("msnmsgr.exe") Then
           $msn = MsgBox(4, "", "Are you sure you want to open another Msn Messenger ?")
           If $msn <> 6 Then  Return
       EndIf
   
       GUISetState()
   
       While 1
           $msg = GUIGetMsg()
   
           Select
               Case $msg = $choix
                   $compte = GUICtrlRead($c)
                   Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
                   WinWaitActive("Windows Live Messenger")
                   Send(" " & $compte & "{TAB}")
               Case $msg = $GUI_EVENT_CLOSE
                   GUISetState(@SW_HIDE)
                   Return;to wait for next +m
           EndSelect
       WEnd
   EndFunc ;==>MSN

Neither script tested!

EDIT: but the first one corrected and in the second one I added the GuiSetState after the GuiCreate thanks to Valuater and his eagle eyes (though not bird brain :unsure: ).

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

@martin

in script #1 it needs the True/False Variable to have the same name

If $madegui = False Then
        ...
        $guiCreated = True
    EndIfoÝ÷ Ùh^*Þjا¡ ky÷«¶^iÈi§"axeIëRµ«^jÛayéÝ¡ûaxer·¶*'jëh×6GUICreate("Choose your account", 300, 200)
$c = GUICtrlCreateCombo("", 30, 65, 200, 21)
GUICtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
$choix = GUICtrlCreateButton("Choose", 30, 100, 130, 20)
GUISetState(@SW_HIDE)

And use the hide and show later

.... just thought I would chime in...lol

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>
HotKeySet("+m","MSN")

Func MSN()
    If ProcessExists("msnmsgr.exe") = 0 Then
gui()
        Else
        $msn = MsgBox(4, "", "Are you sure to open another Msn Messenger ?")
            If $msn = 6 Then
gui()
               Elseif $msn = 7 Then
    EndIf
EndIf
While 1
    $msg = GuiGetMsg()
    
    Select
    Case $msg = $choix
        $compte = GUICtrlRead($c)
        Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
        WinWaitActive("Windows Live Messenger")
        Send(" "&$compte& "{TAB}")
                guidelete($msngui)
    Case $msg = $GUI_EVENT_CLOSE
        Guidelete($msngui)
EndSelect
sleep(10)
WEnd
EndFunc
func gui()

    $msngui = GUICreate("Choose your account", 300, 200)
    $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
    GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
    $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
    GUISetState()
endfunc

Not tested but looks right to me.


Giggity

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

#include <GUIConstants.au3>
HotKeySet("+m","MSN")

Func MSN()
    If ProcessExists("msnmsgr.exe") = 0 Then
gui()
        Else
        $msn = MsgBox(4, "", "Are you sure to open another Msn Messenger ?")
            If $msn = 6 Then
gui()
               Elseif $msn = 7 Then
    EndIf
EndIf
While 1
    $msg = GuiGetMsg()
    
    Select
    Case $msg = $choix
        $compte = GUICtrlRead($c)
        Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
        WinWaitActive("Windows Live Messenger")
        Send(" "&$compte& "{TAB}")
                guidelete($msngui)
    Case $msg = $GUI_EVENT_CLOSE
        Guidelete($msngui)
EndSelect
sleep(10)
WEnd
EndFunc
func gui()

    $msngui = GUICreate("Choose your account", 300, 200)
    $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
    GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
    $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
    GUISetState()
endfunc

Not tested but looks right to me.

Seems good but ain't working :P

Still have 2 same errors.

Edited by Jayson

Share this post


Link to post
Share on other sites

@martin

in script #1 it needs the True/False Variable to have the same name

If $madegui = False Then
        ...
        $guiCreated = True
    EndIfoÝ÷ Ùh^*Þjا¡ ky÷«¶^iÈi§"axeIëRµ«^jÛayéÝ¡ûaxer·¶*'jëh×6GUICreate("Choose your account", 300, 200)
$c = GUICtrlCreateCombo("", 30, 65, 200, 21)
GUICtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
$choix = GUICtrlCreateButton("Choose", 30, 100, 130, 20)
GUISetState(@SW_HIDE)

And use the hide and show later

.... just thought I would chime in...lol

8)

Thanks Valuater I'll correct it. If I imagined you were watching I would make fewer mistakes. I'll try it :P

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

In fact I think you have 3 problems because what you posted won't work at all :P

You need to have an idle loop or the function will never get called and the script will exit straight away

The problem is that you call the function but never leave it, then when you press +m again you call the function again and create another gui ut the old one is still there etc so total confusion.

I think that if you call a function with a hotkey then it's generally best to make sure you leave it. Then make sure you don't cretae a gui again unless you have deleted the previous one.

This might fix it

#include <GUIConstants.au3>
   HotKeySet("+m", "MSN")
   Global $madegui = False
   
   while 1;wait for something to happen
    sleep(50)
   wend
   
   Func MSN()
   
       If $madegui = False Then
           GUICreate("Choose your account", 300, 200)
           $c = GUICtrlCreateCombo("", 30, 65, 200, 21)
           GUICtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
           $choix = GUICtrlCreateButton("Choose", 30, 100, 130, 20)
           $madegui = True
       EndIf
       
       If ProcessExists("msnmsgr.exe") Then
           $msn = MsgBox(4, "", "Are you sure to open another Msn Messenger ?")
           If $msn = 6 Then
               GUISetState()
           EndIf
       Else
           GUISetState()
       EndIf
       While 1
           $msg = GUIGetMsg()
   
           Select
               Case $msg = $choix
                   $compte = GUICtrlRead($c)
                   Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
                   WinWaitActive("Windows Live Messenger")
                   Send(" " & $compte & "{TAB}")
               Case $msg = $GUI_EVENT_CLOSE
                   GUISetState(@SW_HIDE);if you hide the gui then don't create it again
                   return
           EndSelect
       WEnd
   EndFunc;==>MSN

but this might be a simpler way to do it

#include <GUIConstants.au3>
   HotKeySet("+m", "MSN")
   
;create the gui so that it's always there when you need it
   GUICreate("Choose your account", 300, 200)
   $c = GUICtrlCreateCombo("", 30, 65, 200, 21)
   GUICtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
   $choix = GUICtrlCreateButton("Choose", 30, 100, 130, 20)
   GuiSetState(@SW_HIDE);added after note by Valuater. It makes it obvious we haven't forgotten the state and that we want it hidden for now so I agree.
 
   while 1;wait while nothing happens
       sleep(50)
   WEnd
   
   
   
   Func MSN()
   ConsoleWrite("kihuhuj" & @CRLF)
       If ProcessExists("msnmsgr.exe") Then
           $msn = MsgBox(4, "", "Are you sure you want to open another Msn Messenger ?")
           If $msn <> 6 Then  Return
       EndIf
   
       GUISetState()
   
       While 1
           $msg = GUIGetMsg()
   
           Select
               Case $msg = $choix
                   $compte = GUICtrlRead($c)
                   Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
                   WinWaitActive("Windows Live Messenger")
                   Send(" " & $compte & "{TAB}")
               Case $msg = $GUI_EVENT_CLOSE
                   GUISetState(@SW_HIDE)
                   Return;to wait for next +m
           EndSelect
       WEnd
   EndFunc;==>MSN

Neither script tested!

EDIT: but the first one corrected and in the second one I added the GuiSetState after the GuiCreate thanks to Valuater and his eagle eyes (though not bird brain :unsure: ).

First time i tried it, it was working perfectly but when I open and close it with msn it bug and show again the Case $msg = $choix error

Edited by Jayson

Share this post


Link to post
Share on other sites

First time i tried it, it was working perfectly but when I open and close it with msn it bug and show again the Case $msg = $choix error

I'm not sure why. Maybe the line

WinWaitActive("Windows Live Messenger")

is causing the problem so the function is hanging here when it gets called again.

Does it make any difference if you try this?

#include <GUIConstants.au3>
   HotKeySet("+m", "MSN")
  
;create the gui so that it's always there when you need it
   GUICreate("Choose your account", 300, 200)
   $c = GUICtrlCreateCombo("", 30, 65, 200, 21)
   GUICtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
   $choix = GUICtrlCreateButton("Choose", 30, 100, 130, 20)
   GuiSetState(@SW_HIDE);added after note by Valuater. It makes it obvious we haven't forgotten the state and that we want it hidden for now so I agree.

   while 1;wait while nothing happens
       sleep(50)
   WEnd
  
  
  
   Func MSN()
       HotKeySet("+m")
       If ProcessExists("msnmsgr.exe") Then
           $msn = MsgBox(4, "", "Are you sure you want to open another Msn Messenger ?")
           If $msn <> 6 Then  Return
           
       EndIf
  
       GUISetState()
  
       While 1
           $msg = GUIGetMsg()
  
           Select
               Case $msg = $choix
                   $compte = GUICtrlRead($c)
                   Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
                   WinWaitActive("Windows Live Messenger")
                   Send(" " & $compte & "{TAB}")
               Case $msg = $GUI_EVENT_CLOSE
                   GUISetState(@SW_HIDE)
                   HotKeySet("+m", "MSN")
                   Return;to wait for next +m
           EndSelect
       WEnd
   EndFunc;==>MSN

BTW, it's not a good idea to start 2 threads on the same topic.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Any luck with this?

#include <GUIConstants.au3>
HotKeySet("+m","MSN")


Func MSN()
    If ProcessExists("msnmsgr.exe") = 0 Then
        $gui = GUICreate("Choose your account", 300, 200)
        $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
        GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
        $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
        GUISetState()
    ElseIf ProcessExists("msnmsgr.exe") <> 0 Then
        $msn = MsgBox(4, "", "Are you sure to open another Msn Messenger ?")
        If $msn = 6 Then
            $gui = GUICreate("Choose your account", 300, 200)
            $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
            GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
            $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
            GuiSetState()
        Else
            Return
        EndIf
    EndIf
    While 1
        $msg = GuiGetMsg()
        
        Select
        Case $msg = $choix
            $compte = GUICtrlRead($c)
            Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
            WinWaitActive("Windows Live Messenger")
            Send(" "&$compte& "{TAB}")
            Guidelete($gui)
        Case $msg = $GUI_EVENT_CLOSE
            Guidelete($gui)
        EndSelect
    WEnd
EndFunc

Share this post


Link to post
Share on other sites

I'm not sure why. Maybe the line

WinWaitActive("Windows Live Messenger")

is causing the problem so the function is hanging here when it gets called again.

Does it make any difference if you try this?

#include <GUIConstants.au3>
   HotKeySet("+m", "MSN")
  
;create the gui so that it's always there when you need it
   GUICreate("Choose your account", 300, 200)
   $c = GUICtrlCreateCombo("", 30, 65, 200, 21)
   GUICtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
   $choix = GUICtrlCreateButton("Choose", 30, 100, 130, 20)
   GuiSetState(@SW_HIDE);added after note by Valuater. It makes it obvious we haven't forgotten the state and that we want it hidden for now so I agree.

   while 1;wait while nothing happens
       sleep(50)
   WEnd
  
  
  
   Func MSN()
       HotKeySet("+m")
       If ProcessExists("msnmsgr.exe") Then
           $msn = MsgBox(4, "", "Are you sure you want to open another Msn Messenger ?")
           If $msn <> 6 Then  Return
           
       EndIf
  
       GUISetState()
  
       While 1
           $msg = GUIGetMsg()
  
           Select
               Case $msg = $choix
                   $compte = GUICtrlRead($c)
                   Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
                   WinWaitActive("Windows Live Messenger")
                   Send(" " & $compte & "{TAB}")
               Case $msg = $GUI_EVENT_CLOSE
                   GUISetState(@SW_HIDE)
                   HotKeySet("+m", "MSN")
                   Return;to wait for next +m
           EndSelect
       WEnd
   EndFunc;==>MSN

BTW, it's not a good idea to start 2 threads on the same topic.

I wasn't sure if i posted at the right place that's why i started 2 threads and i still have the same error.

Run the program, open 2 msn and close the program and both msn. Start it again and it will ask if i want to open another one since there no msn open.

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Any luck with this?

#include <GUIConstants.au3>
HotKeySet("+m","MSN")


Func MSN()
    If ProcessExists("msnmsgr.exe") = 0 Then
        $gui = GUICreate("Choose your account", 300, 200)
        $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
        GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
        $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
        GUISetState()
    ElseIf ProcessExists("msnmsgr.exe") <> 0 Then
        $msn = MsgBox(4, "", "Are you sure to open another Msn Messenger ?")
        If $msn = 6 Then
            $gui = GUICreate("Choose your account", 300, 200)
            $c = GuiCtrlCreateCombo("", 30, 65, 200, 21)
            GuiCtrlSetData($c, "test@hotmail.com|test1@hotmail.com|test2@hotmail.com")
            $choix = GuiCtrlCreateButton("Choose", 30, 100, 130, 20)
            GuiSetState()
        Else
            Return
        EndIf
    EndIf
    While 1
        $msg = GuiGetMsg()
        
        Select
        Case $msg = $choix
            $compte = GUICtrlRead($c)
            Run("C:\Program Files\Windows Live\Messenger\msnmsgr.exe")
            WinWaitActive("Windows Live Messenger")
            Send(" "&$compte& "{TAB}")
            Guidelete($gui)
        Case $msg = $GUI_EVENT_CLOSE
            Guidelete($gui)
        EndSelect
    WEnd
EndFunc
Still have 1 program remaining. Second time i open run it, it ask to open another msn even if there no msn open. Edited by Jayson

Share this post


Link to post
Share on other sites

Are you sure the process isn't actually named "msmsgs.exe"?

Share this post


Link to post
Share on other sites

Are you sure the process isn't actually named "msmsgs.exe"?

Yes i'm sure. Its named msnmsgr.exe

Share this post


Link to post
Share on other sites

Are you sure the process msnmsgr.exe isn't running? Like under the task manager's process list, because it I really have no idea how the msgbox could trigger. =/ And was just making sure, because I checked the one on my computer and it's process is msmsgs,exe :P

Share this post


Link to post
Share on other sites

I wasn't sure if i posted at the right place that's why i started 2 threads and i still have the same error.

Run the program, open 2 msn and close the program and both msn. Start it again and it will ask if i want to open another one since there no msn open.

I haven't tried it but the script only asks if you want to run anothere msn if ProcessExists("msnmsgr.exe"), so probably that is the wrong test. When you have closed both msn check with the task manager if msnsgr.exe is still running. I expect that it is.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Are you sure the process msnmsgr.exe isn't running? Like under the task manager's process list, because it I really have no idea how the msgbox could trigger. =/ And was just making sure, because I checked the one on my computer and it's process is msmsgs,exe :P

Yeah I'm sure the process isn't running when the error appear. Maybe you have an older version of msn or it's the one that came with windows.

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

I haven't tried it but the script only asks if you want to run anothere msn if ProcessExists("msnmsgr.exe"), so probably that is the wrong test. When you have closed both msn check with the task manager if msnsgr.exe is still running. I expect that it is.

Msn isn't running when I run the script.

Edited by Jayson

Share this post


Link to post
Share on other sites

I merged your double threads... please stop double posting in multiple threads...

Jos

I wasn't sure about what section was the right one. Sorry.

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