Jump to content

ControlGetText = NULL?


Recommended Posts

While 1
   $var = ControlGetText("[CLASS:WindowsForms10.STATIC.app.0.378734a; INSTANCE:1]","termsrv.dll is patched","2756042")
   Sleep(300)
   MsgBox(0, "VAR", "Value is $var" & @CRLF & $var)
   If $var = "termsrv.dll is patched" Then
      WinClose("[CLASS:WindowsForms10.Window.8.app.0.378734a]")
      ExitLoop
   EndIf
WEnd

The MsgBox has no value for $var, so controlgettext returns null?

>>>> Window <<<<
Title:    Concurrent RDP Patcher
Class:    WindowsForms10.Window.8.app.0.378734a
Position:    523, 29
Size:    290, 236
Style:    0x16CB0000
ExStyle:    0x00050180
Handle:    0x00211262

>>>> Control <<<<
Class:    WindowsForms10.STATIC.app.0.378734a
Instance:    1
ClassnameNN:    WindowsForms10.STATIC.app.0.378734a1
Name:    Label2
Advanced (Class):    [NAME:Label2]
ID:    2756042
Text:    termsrv.dll is unpatched               #### This text changes, but the script doesnt notice?!
Position:    14, 39
Size:    118, 13
ControlClick Coords:    41, 3
Style:    0x5600000D
ExStyle:    0x00000000
Handle:    0x002A0DCA

Link to comment
Share on other sites

  • Developers

What program is giving this feedback?

By the way: I am not so sure this topic is legally sound..... is it?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

@Jos: Well, he already posted this on the german forum.

And this program he is trying to automate replaces a DLL to enable a feature in Windows which is (normally) only for the server version of Windows.

Which kinda violates the license terms of Windows, I think.

Edited by PainTain
Link to comment
Share on other sites

  • Developers

The question at hand is not about something being bad or not but simply: Is this Patch or also called Hack in violation with Microsoft's EULA.

Reading up about it, it seems it is which to me means this topic is in violation of our forum rules.

Closing this topic as such unless somebody proves this is legitimate.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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