Jump to content

Recommended Posts

Posted

hi.... i just wanna know abt how should i do theards ... in auto it u can't do theards but is there anyway to pass it? i just wanna a three msgbox to appear at the same time 

i tryied this code but the script looping three times why so pls kindly no bothring if anyone could help💬
 

#NoTrayIcon
#RequireAdmin
#include <Misc.au3>
#include <MsgBoxConstants.au3>


$userName = @UserName

MsgBox($MB_ICONWARNING + $MB_OK , "⋆。゚☁︎。⋆。 ゚☾ ゚。⋆" , "msg 1")


MsgBox($MB_ICONWARNING + $MB_OK, "⋆。゚☁︎。⋆。 ゚☾ ゚。⋆。゚☁︎。⋆。 ゚☾ ゚。⋆。゚☁︎。⋆。 ゚☾ ゚。⋆" , "msg 2")

;this code i codded it but it  loop the main 3 times script
If $CmdLine[0] = 0 Then
    
    Run(@AutoItExe & ' "' & @ScriptFullPath & '" 1')
    Run(@AutoItExe & ' "' & @ScriptFullPath & '" 2')
    Run(@AutoItExe & ' "' & @ScriptFullPath & '" 3')
    Exit
EndIf

Switch $CmdLine[1]
    Case "1"
        MsgBox(0, "Thread 1", "1")
    Case "2"
        MsgBox(0, "Thread 2", "2")
    Case "3"
        MsgBox(0, "Thread 3", "3")
EndSwitch

 

Posted

@Nine Thank you very much for your time and the detailed solution.
I realized this UDF is more advanced than what I actually need.
I appreciate your help 🙏

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
×
×
  • Create New...