Jump to content

Paulchen

Active Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by Paulchen

  1. Has someone any idee how can I detect the the Protected Mode of IE7/IE8 ? thanks
  2. How can I detect the difference between a Group, Checkbox Radiobox? Edit $Input Static $Label Button $Button Button $Group Button $Checkbox Button $Radio GUICreate("GUI") ;//////////////////////////////////////////////////////////////////////////// $TreeView = GUICtrlCreateTreeView(5, 5, 100, 100) $Input = GUICtrlCreateInput("", 96, 245, 57, 21) $Label = GUICtrlCreateLabel("Wait after", 177, 249, 50, 17) $Button = GUICtrlCreateButton("Get Pos", 311, 344, 57, 33, 0) $Group = GUICtrlCreateGroup("Run", 16, 176, 289, 57) $Checkbox = GUICtrlCreateCheckbox("Timeout", 118, 205, 65, 17) $Radio = GUICtrlCreateRadio("Shell", 23, 213, 57, 17) ;//////////////////////////////////////////////////////////////////////////// ConsoleWrite(_GetClassName(GUICtrlGetHandle($TreeView)) & @TAB & "$TreeView" & @CRLF) ConsoleWrite(_GetClassName(GUICtrlGetHandle($Input)) & @TAB & "$Input" & @CRLF) ConsoleWrite(_GetClassName(GUICtrlGetHandle($Label)) & @TAB & "$Label" & @CRLF) ConsoleWrite(_GetClassName(GUICtrlGetHandle($Button)) & @TAB & "$Button" & @CRLF) ConsoleWrite(_GetClassName(GUICtrlGetHandle($Group)) & @TAB & "$Group" & @CRLF) ConsoleWrite(_GetClassName(GUICtrlGetHandle($Checkbox)) & @TAB & "$Checkbox" & @CRLF) ConsoleWrite(_GetClassName(GUICtrlGetHandle($Radio)) & @TAB & "$Radio" & @CRLF) ;//////////////////////////////////////////////////////////////////////////// Func _GetClassName($hWnd) $pClassName = DllStructCreate("char[256]") DllCall("user32.dll", "int", "GetClassName", "hwnd", $hWnd, "ptr", DllStructGetPtr($pClassName), "int", 255) Return DllStructGetData($pClassName, 1) EndFunc ;==>_GetClassName
  3. How can i detect the type (Checkbox, button,label,input, combo etc) of a control? thanks for any hints
  4. How can I dedect the state of a windows? sample: if the windows hide, minimized, maximized, disabled oder enabled thanks
  5. Have you add a dollar sign "$" to the SamAccountName ?
  6. I use the DeleteProfile WinApi $nRet = DllCall("Userenv.dll", "int", "DeleteProfile", "str", $sid, "ptr", 0, "ptr", 0) More informationen about the API on http://msdn.microsoft.com/en-us/library/bb762273(VS.85).aspx
  7. Thanks for sharing. have you a sample, how I can read the calender form other persons?
  8. Nice work. Note:When you start this program with #RequireAdmin you get also information over the process with higher integritylevel
  9. good job
  10. Be careful, the WMI ODBC are not on all OS supportet. ... The WMI ODBC Adapter is not available in Windows Server 2003. When you upgrade to Windows Server 2003 from Windows 2000 Server, the WMI ODBC Adapter is not removed if already present on a computer. The ODBC Adapter may be unsupported in subsequent versions of Windows. ... http://msdn.microsoft.com/en-us/library/aa392726(VS.85).aspx
  11. Nice GUI ;-) Test: Single Core optimization Your time: 36.0148 sec π (pi) result: 3.14159265358979 Your CPU: Intel® Core2 Duo CPU T7500 @ 2.20GHz Test: Dual/Quad Core optimization Your time: 21.2709 sec π (pi) result: 3.14159265358979 Your CPU: Intel® Core2 Duo CPU T7500 @ 2.20GHz
  12. try for $i = 1 to 9999 ConsoleWrite(StringFormat("%04i",$i) & @CRLF) if mod($i,10) = 0 then ConsoleWrite("----" & @CRLF) Next
  13. You can find information over "COM Error Handling" in the help. Sample. $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ; Install a custom error handler
  14. Did you use Vista? With default configuration you lose the network connection when vista elevate to admin rights. You can check this by enter "net use" on a command line.
  15. Windows Mobile use RNDIS to sync. You can use netstat to check a connection
  16. For offline attach use a full harddisc encryption
  17. Sometimes the following regkey can help. But this key can be a securityrisk. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa limitblankpassworduse=dword:1
  18. Have you testet the OS function "runas.exe" with blank password Accounts? There are some limitations on XP and Vista with WMI, Scheduler, sharing and other function when you use accounts with blank passwords.
  19. Hi you can find a sample under #524939 n.b. this forum have a search function. you can search for ldap ;-)
  20. You can use WMI with __InstanceCreationEvent. Here a sample that based on #337058 ;~ WMI monitoring Dim $strQuery, $SINK, $objContext, $objWMIService Dim $Eventtime= 2 ;Create Object Sink_Start($sink) ;~ Set Sink _find_folders("C:\Temp") func _find_folders($path,$subtree=False) $monitordrive = stringleft($path,2) $monitorpath = StringReplace(stringtrimleft($path,2),"\","\\") & "\\" SINK_Add($monitordrive,$monitorpath,$sink) ConsoleWrite($path & @crlf) if $subtree=false then Return local $first=FileFindFirstFile($path & "\*.*") while 1 $fichier = FileFindNextFile($first) if @error then ExitLoop if stringinstr(FileGetAttrib($path & "\" & $fichier),"D") then _find_folders($path & "\" & $fichier) WEnd EndFunc While 1 Sleep(200) WEnd func Sink_Start(byref $Sink) $SINK = ObjCreate("WbemScripting.SWbemSink") ObjEvent($SINK, "SINK_") EndFunc func SINK_Add($wmidrive,$wmipath,$sinkref) $objContext = ObjCreate("WbemScripting.SWbemNamedValueSet") $strQuery = "SELECT * FROM __InstanceOperationEvent WITHIN " & $Eventtime & " WHERE TargetInstance ISA 'CIM_DataFile' and TargetInstance.Path = '" & $wmipath & "' and TargetInstance.drive = '" & $wmidrive & "'" $objWMIService = ObjGet("winmgmts:!\\.\root\cimv2") $objWMIService.ExecNotificationQueryAsync ($sinkref,$strQuery, Default, Default, Default, $objContext) EndFunc ;****************************************************************************** Func SINK_OnObjectReady ($objLatestEvent, $objAsyncContext) ;Trap asynchronous events. ;$objAsyncContextItem = $objAsyncContext.Item ("hostname") $filename= $objLatestEvent.TargetInstance.Properties_.item("Name").value ConsoleWrite($filename & @CRLF) EndFunc ;==>SINK_OnObjectReady
  21. I need the possibility to calc with big integers. Now I found a DLL on http://www.codeguru.com/cpp/com-tech/atl/a...icle.php/c10609 How can I use this DLL inside of AutoIt? Thank for your hints.
  22. I think, you have not the same zonesettings. Please check this settings.
  23. In my opinion it's wantonly negligent to store confidences in ads, but read self http://www.forensicfocus.com/dissecting-ntfs-hidden-streams
×
×
  • Create New...