Jump to content

Recommended Posts

Posted (edited)

Hello,

I am trying to design a very basic GUI with the MsTscAX.MsTscAX control, but having some issues with re-draw. I tried all the standard GUI tricks to get the control to clip / redraw correctly, but nothing seems to be making a dent in the issue.

Basicaly, if I run the GUI, the control displays fine, but any sort of resizing just covers a portion of the control in white or gray. Also, if I drag anything over the control or the control itself off the screen and then back, I also get just the white/gray.

See my code below, any help you could give me would be greatly appreciated.

$Base = GUICreate("Amici Server Connection (" & $Logon & "@" & $Server  & ")", 1024, 768, -1 , -1, $WS_OVERLAPPEDWINDOW )

    $oRDP = ObjCreate("MsTscAx.MsTscAx")
    $GUIActiveX = GUICtrlCreateObj($oRDP, 0, 0, 1024, 768)
    GUICtrlSetStyle ( $GUIActiveX, $WS_CLIPSIBLINGS )   
    GUICtrlSetResizing ($GUIActiveX,$GUI_DOCKSIZE)
    $oRDP.AdvancedSettings.BitmapPeristence = 1
    $oRDP.FullScreen = True
    $oRDP.AdvancedSettings2.RedirectDrives = True
    $oRDP.AdvancedSettings2.RedirectPrinters = True
    $oRDP.Server = $Server
    $oRDP.Domain = ""
    $oRDP.UserName = $Logon
    $oRDP.AdvancedSettings2.ClearTextPassword = $Password 
    $oRDP.DesktopWidth = 1024
    $oRDP.DesktopHeight = 768
    $oRDP.Connect()
                GUISetState()

        While $oRDP.Connected <> 1
            Sleep(100)
        WEnd


        While 1
            $msg = GUIGetMsg()
                _API_UpdateWindow($Base)
                If $oRDP.Connected <> 1 Then
                    ExitLoop
                EndIf
            
            Select
                Case $msg = $GUI_EVENT_CLOSE
                $oRDP.RequestClose()
                ExitLoop
            EndSelect
        WEnd

    GUIDelete()
    Sleep(1000)
    Exit
Edited by LeftclicK
  • 2 weeks later...
Posted

Hi,

i have the same problem.

I played around with HTA (html application) and there is the same problem, too.

But if the HTA-Tag is NOT placed theres no problem.

A workaround or solutions for this problem in AutoIt would be very nice.

Greets,

Andy

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...