Jump to content

gesher

Members
  • Posts

    6
  • Joined

  • Last visited

gesher's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. requirement is the shared code? Just as no one is obligated to help ....
  2. and to get started? 89 50 4E 47 0D 0A 1A 0A 00 00 00 0D 49 48 44 52 .PNG........IHDR 00 00 00 01 00 00 00 01 08 02 00 00 00 90 77 53 ..............wS DE 00 00 00 0E 49 44 41 54 78 DA 62 F8 CF C0 00 Þ....IDATxÚbøÏÀ. 10 60 00 03 01 01 00 66 FD 9F 24 00 00 00 00 49 .`.....fý.$....I 45 4E 44 AE 42 60 82 END®B`. I have no idea how to read, these data
  3. thanks Func _Singleton($sOccurenceName, $iFlag = 0) Local Const $ERROR_ALREADY_EXISTS = 183 Local Const $SECURITY_DESCRIPTOR_REVISION = 1 Local $handle, $lastError, $pSecurityAttributes = 0 If BitAND($iFlag, 2) Then Local $structSecurityDescriptor = DllStructCreate("dword[5]") Local $pSecurityDescriptor = DllStructGetPtr($structSecurityDescriptor) Local $aRet = DllCall("advapi32.dll", "int", "InitializeSecurityDescriptor", _ "ptr", $pSecurityDescriptor, "dword", $SECURITY_DESCRIPTOR_REVISION) If Not @error And $aRet[0] Then $aRet = DllCall("advapi32.dll", "int", "SetSecurityDescriptorDacl", _ "ptr", $pSecurityDescriptor, "int", 1, "ptr", 0, "int", 0) If Not @error And $aRet[0] Then Local $structSecurityAttributes = DllStructCreate("dword;ptr;int") DllStructSetData($structSecurityAttributes, 1, DllStructGetSize($structSecurityAttributes)) DllStructSetData($structSecurityAttributes, 2, $pSecurityDescriptor) DllStructSetData($structSecurityAttributes, 3, 0) $pSecurityAttributes = DllStructGetPtr($structSecurityAttributes) EndIf EndIf EndIf $handle = DllCall("kernel32.dll", "int", "CreateMutex", "ptr", $pSecurityAttributes, "long", 1, "str", $sOccurenceName) $lastError = DllCall("kernel32.dll", "int", "GetLastError") If $lastError[0] = $ERROR_ALREADY_EXISTS Then If BitAND($iFlag, 1) Then Return SetError($lastError[0], $lastError[0], 0) Else Exit -1 EndIf EndIf Return $handle[0] EndFunc if _Singleton("test",1) = 0 Then Msgbox(0,"Warning","An occurence of test is already running") Exit EndIf Msgbox(0,"OK","the first occurence of test is running")
  4. hello I would like to know is to not allow more than 1 process at a time ? hola quisiera saber como se hace para no permitir mas de 1 proceso a la vez ? This-aplicaion.exe if ProcessExists("This-aplicaion.exe") Then MsgBox(0,"","1") Exit Else MsgBox(0,"","2") EndIf ????
  5. es posible usar un png animado con autoit??? asi como el gif it is possible to use an animated PNG with AutoIt??? like the gif
  6. ejecutar con parametros un programa ej: Run("myapp.exe /s") funciona pero Run("myapp.exe $var & $string") no funciona, es posible ejecutar una aplicacion con parametros desde una veriable, como? translate: run a program with parameters such as: Run ( "myapp.exe / s") works But Run ( "myapp.exe string $ var & $") is not working, it is possible to run an application with parameters from a veriable like?
×
×
  • Create New...