Jump to content

ByCode122

Active Members
  • Posts

    24
  • Joined

  • Last visited

ByCode122's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hm.. I know but get one help me Please
  2. I fail Do you Code Give ?
  3. WinSetState("Adsız - Not Defteri" ,"",@SW_MINIMIZE)
  4. Win7 : #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseUpx=n #AutoIt3Wrapper_UseX64=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** Global Const $EVENT_OPEN_DESKTOP_CHANGED = 0x0020 ; Undocumented? Found by trial&error...[/b] [b]$h_DLL_User32 = DllOpen("User32.dll") $h_WinEventHook_Proc = DllCallbackRegister("_WinEventHook_Proc", "none", "hwnd;int;hwnd;long;long;int;int") If @error Then MsgBox(16 + 262144, "Error", "DllCallbackRegister(_WinEventHook_Proc) did not succeed. FFH will exit now.") Exit EndIf $h_Hook = _WinEventHook_Set(0x0020, 0x0020, $h_DLL_User32) If @error Then MsgBox(16 + 262144, "Error", "_WinEventHook_Set() did not succeed. FFH will exit now.") Exit EndIf OnAutoItExitRegister("_WinEventHook_UnSet") #endregion ; WinEventHook[/b] [b]while 1 sleep(10) wend[/b] [b]#region ; WinEventHook Functions Func _WinEventHook_Proc($h_Hook, $iEvent, $hWnd, $idObject, $idChild, $iEventThread, $iEventTime) ;ConsoleWrite($hWnd & @TAB & $idObject & @CRLF) MsgBox(0,"","") EndFunc ;==>_WinEventHook_Proc[/b] [b]Func _WinEventHook_Set($iEventMin, $iEventMax, $hDLLUser32) Local $aRet Local Const $WINEVENT_OUTOFCONTEXT = 0x0 Local Const $WINEVENT_SKIPOWNPROCESS = 0x2 If Not $hDLLUser32 Or $hDLLUser32 = -1 Then $hDLLUser32 = "User32.dll" $aRet = DllCall($hDLLUser32, "hwnd", "SetWinEventHook", _ "uint", $iEventMin, _ "uint", $iEventMax, _ "hwnd", 0, _ "ptr", DllCallbackGetPtr($h_WinEventHook_Proc), _ "int", 0, _ "int", 0, _ "uint", $WINEVENT_OUTOFCONTEXT) ; BitOR($WINEVENT_OUTOFCONTEXT, $WINEVENT_SKIPOWNPROCESS) If @error Then Return SetError(@error, 0, 0) Return $aRet[0] EndFunc ;==>_WinEventHook_Set[/b] [b]Func _WinEventHook_UnSet() If $h_WinEventHook_Proc Then DllCallbackFree($h_WinEventHook_Proc) EndIf If $h_Hook Then DllCall($h_DLL_User32, "int", "UnhookWinEvent", "hwnd", $h_Hook) If $h_DLL_User32 Then DllClose($h_DLL_User32) EndFunc ;==>_WinEventHook_UnSet #endregion ; WinEventHook Functions[/b] [b]Func IsDesktopLocked() Local $hDesktop Local $iRet Local $iRC Local $sMsg Local Const $DESKTOP_SWITCHDESKTOP = 0x100 $hDesktop = DllCall("User32.dll", "int", "OpenDesktop", "str", "Default", "int", 0, "int", 0, "int", $DESKTOP_SWITCHDESKTOP) $iRet = DllCall("User32.dll", "int", "SwitchDesktop", "int", $hDesktop[0]) If IsArray($iRet) Then If $iRet[0] = 0 Then[/b] [b] $iRC = 1 ElseIf $iRet[0] = 1 Then[/b] [b] $iRC = 0 EndIf Else[/b] [b] EndIf DllCall("User32.dll", "int", "CloseDesktop", "int", $hDesktop[0]);<-- handle returned by "OpenDesktop" ;$iRet = DllCall("User32.dll", "int", "CloseDesktop", "int", $iRet[0]) Return ($iRC) EndFunc ;==>IsDesktopLocked[/b] [b]Func _Exit() EndFunc ;==>_Exit Windows + L screen XP detecting Code ? Help:S
  5. Yeah Problem Find Virüs why Have Thank You.....
  6. Yeah.. CPU RATE (%1,%2,%3) Some Computers Exe use CPU RATE (%30 , %50)
  7. Unfortunately all Tested Same Problem
  8. Compile x86 All Computers Distribute Give Program use User this so Say But Some Computers CPU Problem How fix ? To method ?
  9. Yeah.. Sleep(5000) CPU RATE (%30 - %50) Other Problem Must be Problem How uncoil ?
  10. This Large Problem Autoit For
  11. Sleep(2000) And Sleep(3000) CPU RATE Still %30 %40 %50 So little computers Do
  12. x86 compile No Only Autoit Exe Some Computer This Exe CPU Rate Maximum %30 , %40 , %50 Rise
×
×
  • Create New...