
Paulchen
Active Members-
Posts
61 -
Joined
-
Last visited
Everything posted by Paulchen
-
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
-
How can i detect the type (Checkbox, button,label,input, combo etc) of a control? thanks for any hints
-
How can I dedect the state of a windows? sample: if the windows hide, minimized, maximized, disabled oder enabled thanks
-
Have you add a dollar sign "$" to the SamAccountName ?
-
Delete User Profiles from Vista
Paulchen replied to Smitro's topic in AutoIt General Help and Support
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 -
Thanks for sharing. have you a sample, how I can read the calender form other persons?
-
_WinAPI_GetCommandLineFromPID() - From any process!
Paulchen replied to Manko's topic in AutoIt Example Scripts
Nice work. Note:When you start this program with #RequireAdmin you get also information over the process with higher integritylevel -
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
-
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
-
You can find information over "COM Error Handling" in the help. Sample. $oMyError = ObjEvent("AutoIt.Error","MyErrFunc") ; Install a custom error handler
-
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.
-
Autoit and AActiveSync / Windows Mobile Center
Paulchen replied to ml1969's topic in AutoIt General Help and Support
Windows Mobile use RNDIS to sync. You can use netstat to check a connection -
For offline attach use a full harddisc encryption
-
BG-Info w/ RunAS and UNC Paths
Paulchen replied to netjunkie247's topic in AutoIt General Help and Support
Which OS, Vista? -
RunAS() and non-password users
Paulchen replied to Morteza's topic in AutoIt General Help and Support
Sometimes the following regkey can help. But this key can be a securityrisk. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa limitblankpassworduse=dword:1 -
RunAS() and non-password users
Paulchen replied to Morteza's topic in AutoIt General Help and Support
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. -
How to convert this VB Script to autoit?
Paulchen replied to SpecialK's topic in AutoIt General Help and Support
Hi you can find a sample under #524939 n.b. this forum have a search function. you can search for ldap ;-) -
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
-
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.
-
I think, you have not the same zonesettings. Please check this settings.
-
Store (hidden) User & Pass with your script.
Paulchen replied to Michel Claveau's topic in AutoIt Example Scripts
In my opinion it's wantonly negligent to store confidences in ads, but read self http://www.forensicfocus.com/dissecting-ntfs-hidden-streams