Jump to content

Paulchen

Active Members
  • Posts

    61
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Paulchen's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

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