Jump to content

z3r0c00l12

Active Members
  • Posts

    42
  • Joined

  • Last visited

z3r0c00l12's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. No, I haven't. I'll give that a try next time. Your set function might have to account for Windows 8 requiring a "~ " at the beginning of the compatibility flags. EDIT: More info on option 3 here: http://www.eightforums.com/tutorials/6832-compatibility-mode-use-windows-8-a.html
  2. Nice work. Haven't tried it out yet, but it looks good. Are you working on a function to set the flags? I found that sometimes setting the registry key will change the settings but they don't take effect unless I manually interact with the compatibility tab.
  3. Can you try this? I put the 64 after HKLM so that it doesn't go in wow6432node. I'm not sure what the "~" at the beginning does, so I left it out. RegWrite("HKLM64\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers", "C:\Program Files (x86)\OpenVPN\bin\openvpn-gui.exe", "REG_SZ", "RUNASADMIN") Give this a try and let us know if it worked. I think this compatibility setting is a good candidate for a UDF if a developer is willing to take it on. EDIT: Looks like the tilde at the beginning is required for Windows 8 and above. http://www.eightforums.com/tutorials/6832-compatibility-mode-use-windows-8-a.html (See option 3)
  4. Can you try this manually? Go to C:Program Files (x86)OpenVPNbin Right-click on openvpn-gui.exe, select Properties and the compatibility tab Click "Change settings for all users" Check "Run this program as an administrator" Check both of these to see what is set: HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers HKEY_LOCAL_MACHINESoftwareWow6432NodeMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers Let me know what you find.
  5. No Problem. Can you provide me the fixed version?
  6. You can use BinaryToString to get the string or BinaryMid to get the last 4 bytes and check for "0D0A0D0A"
  7. My guess is that your string is too long, you'll need to split that data. Here's an example: (This is modified from a WebServer.au3 script, I'm not the author) $bData = Binary("Bleh!") ;Insert long string here While BinaryLen($bData) ; Send data in chunks (most code by Larry) $a = _TCP_Send($hSocket, $bData) ; TCPSend returns the number of bytes sent If @Error Then ExitLoop $bData = BinaryMid($bData, $a+1, BinaryLen($bData)-$a) WEnd On the receiving end, you need to check that you received everything, so maybe add @CRLF & @CRLF at the end of your string and check for it to make sure the string is completed. Note that the _TCP_Server_Broadcast function won't work with long strings, you'll have to make your own loop through the sockets and use code like above for each.
  8. Here's how I fixed it: Local $aCursor = _WinAPI_GetCursorInfo() If @Error = 0 AND $aCursor[1] Then Can someone make similar changes to the UDF for the next release?
  9. I do this via registry keys. Although you have to use the target of the .lnk file and not the lnk file itself. Find the target of your shortcut, I'll use "C:Windowsnotepad.exe" for this example. If you want to apply to all users on the computer, use the registry key: HKLMSOFTWAREMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers If you want to apply only to your user account, use the registry key: HKCUSOFTWAREMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers The name of the value will be the target, so in this case "C:Windowsnotepad.exe" (without the quotes). The value type is a REG_SZ. The data is a space-delimited collection of the following flags: (without the quotes) "DISABLETHEMES","640X480","HIGHDPIAWARE","256COLOR","DISABLEDWM","RUNASADMIN" And one of the following: (you can't use 2 of these together) "WIN98","WIN4SP5","WIN2000","WINXPSP2","WINXPSP3","WINSRV03SP1","WINSRV08SP1","VISTARTM","VISTASP1","VISTASP2","WIN7RTM"
  10. I've come across a problem by pure randomness, took me a while to find how to reproduce the issue, so here goes. I have a script that takes screenshots during the installation to document the process. I happened to lock my workstation while the script was running and the script crashed with "Subscript used on non-accessible variable". The line number provided was irrelevant due to being compiled with includes (if there is a way to see the complete .au3 file before compilation, please let me know). #Include <ScreenCapture.au3> Sleep(10000) ;Lock your workstation during the sleep _ScreenCapture_Capture("C:\test.jpg") With the code above, you should receive the following error: I looked at the ScreenCapture.au3 and found that on line 60 as the error above mentions, there is no error checking that $aCursor is an array or that _WinAPI_GetCursorInfo() returned sucessfully. Here is line 59 and 60 of ScreenCapture.au3 Local $aCursor = _WinAPI_GetCursorInfo() If $aCursor[1] Then What is the best way to correct this?
  11. Can you post the new version of _GetIP() either here or in your _GetIP() thread so I can update mine right away?
  12. I searched on Google. I searched for "what is my ip", "what is my ip raw", "what is my ip text", "what is my ip plain text".
  13. Thank you. http://wtfismyip.com/text http://www.telize.com/ip http://www.networksecuritytoolkit.org/nst/tools/ip.php http://services.packetizer.com/ipaddress/?f=text http://corz.org/ip http://ip.jsontest.com/ http://ip.eprci.net/text Only works with "d{1,3}.d{1,3}.d{1,3}.d{1,3}": http://www.milonic.com/myipaddress.php I'll stop searching now.
×
×
  • Create New...