Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (88 - 90 of 3871)

Ticket Resolution Summary Owner Reporter
#89 Fixed RunAs w/ Profile does not grant acess to user environment Valik DaveF
Description

Using beta 3.2.11.0 on XP SP2:

In a child process spawned by the RunAs function with the proper flag to force the as-yet unloaded run-as user's profile to load, the child process's environment is that of the Default User rather than the run-as user's, though the other run-as elements of the run-as user's profile (such as the system registry) can be accessed as desired.

Code to reproduce:

; declare yourself
Dim $ourPID, $ourRead
; Run child task with option to load run-as user's profile
$ourPID = RunAs("is", @ComputerName, "smack", 1, @ComSpec & " /c set", @SystemDir, @SW_HIDE, 2)
; Read the child task's STDOUT output
While 1
  $ourRead &= StdoutRead($ourPID)
  If @error Then ExitLoop
WEnd
; Display result
MsgBox(0, "Debug", @AutoItVersion & " yields:" & @CRLF & $ourRead)
#90 Fixed RunAs fails for a Limited User if run-as user's Profile is loaded Valik DaveF
Description

Using beta 3.2.11.0 on XP SP2:

If the RunAs function is called in a script by a limited user, the RunAs function will fail if the target run-as user's Profile is already loaded; as in the case that another process has already been invoked with the run-as user's credentials with the option to load the user's profile. The failure occurs whether or not RunAs is called with the flag to force-load the run-as user's profile, and whether or not AutoIt spawned the earlier process that loaded the run-as user's profile.

Example code:

; N.B. MUST BE RUN AS A LIMITED USER TO EXHIBIT FAILURE
; declare yourself
Dim $ourPID, $ourPID0, $ourRead
; Run an initial process as the desired user
; This is only significant in this example in that
; it pre-loads the target user's profile; we could
; have right-clicked a program and chosen to Run As...
; this user and achieved the same effect.
$ourPID0 = RunAs("is", @ComputerName, "smacksmack", 1, @SystemDir & '\notepad.exe', @SystemDir)
; Run child task with option to access STDOUT
$ourPID = RunAs("is", @ComputerName, "youwantanother?", 1, @ComSpec & " /c set", @SystemDir, @SW_HIDE, 2)
; Read the child task's STDOUT output
While 1
  $ourRead &= StdoutRead($ourPID)
  If @error Then ExitLoop
WEnd
; Display result
MsgBox(0, "Debug", @AutoItVersion & " yields:" & @CRLF & $ourRead)
#91 No Bug "_ScreenCapture_CaptureWnd" does not work on Win2k Gary Moto
Description

When I try to use "_ScreenCapture_CaptureWnd" function defined in "ScreenCapture.au3" on Windows 2000 OS, it produces following error

---------------------------
Fatal Error
---------------------------
AVector: []: Out of bounds.
---------------------------
OK   
---------------------------

However if I try the same thing on Windows XP, it takes screenshot properly. Following is the script which I run.

#include<ScreenCapture.au3>
_ScreenCapture_CaptureWnd("test.bmp", WinGetHandle(""))

I faced this problem in AutoIt version "3.2.10.0"

Note: See TracQuery for help on using queries.