Jump to content

Forum - copy contents - script from forum to SciTE


Go to solution Solved by Melba23,

Recommended Posts

Posted (edited)

Today I want to check script from this post

'?do=embed' frameborder='0' data-embedContent>>

pointed out a script copied to clipboard
and I try to paste into SciTE

Here's what I have seen in SciTE

Func _GetAVInfo()     Dim $lArray[4]     $oWMI = ObjGet("winmgmts:\\localhost\root\SecurityCenter2")     $colItems = $oWMI.ExecQuery("Select * from AntiVirusProduct")     For $objAntiVirusProduct In $colItems         $lArray[0] = $objAntiVirusProduct.displayName         $lArray[1] = $objAntiVirusProduct.productstate         $lArray[2] = $objAntiVirusProduct.pathToSignedProductExe         $lArray[3] = $objAntiVirusProduct.pathToSignedReportingExe     Next     Dim $AvStatus = Hex($lArray[1])     If StringMid($AvStatus, 5, 2) = "10" Or StringMid($AvStatus, 5, 2) = "11" Then         $lArray[1] = "Enabled"     ElseIf StringMid($AvStatus, 5, 2) = "00" Or StringMid($AvStatus, 5, 2) = "01" Then         $lArray[1] = "Disabled"     EndIf     Return $lArray EndFunc   ;==>_GetAVInfo

The strange thing is that while copying is not transferred correctly marks the end of the line.
Even stranger is that the problem I noticed for the first time, and has repeatedly acted in this way.

It may issue computer (Win7Pro64Bit) can browser (FireFox 22.0).

Does anyone have any suggestions how to solve this problem?

EDIT:

Copy the contents of the IE is correct

 

Edited by mlipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Moderators
  • Solution
Posted

mlipok,

Already discussed here - it seems to be a FireFox problem in the main and if you use the "popup" box to copy it works normally. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

  On 8/7/2013 at 8:13 AM, Melba23 said:

mlipok,

Already discussed here - it seems to be a FireFox problem in the main and if you use the "popup" box to copy it works normally. :)

M23

 

Thank you,

This is exactly the same problem.

Your solution "to the popup box" would be good provided that the key would be available in this case.

As you can see in the example, however, does not have this button, there is no EXPAND button.

The question is why these two buttons are not always available despite the use of formatting using tags AutoIT, or simply click on a icon editor available online.

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

It seems that when the box contains few lines under a given limit like 12 or so, the expand button is not shown. Larger contents trigger the appearance of the expand and popup buttons.

Edited by jchd
  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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
×
×
  • Create New...