Jump to content
Sign in to follow this  
mLipok

Forum - copy contents - script from forum to SciTE

Recommended Posts

mLipok

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:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API Forum Rules *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

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

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library
 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-10-31

Share this post


Link to post
Share on other sites
Melba23

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Edano

try this fantastic script here:

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

will make you happy E. :)

Edit: i have an updated version, if you like it

Edited by Edano

[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
mLipok

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:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API Forum Rules *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

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

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library
 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskScheduler

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2018-10-31

Share this post


Link to post
Share on other sites
jchd

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

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)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Similar Content

    • spikespaz
      By spikespaz
      The rule against game automation is misguided and unhelpful for the following reasons.
       
      I am a developer, using AutoIt to automate testing for a game that I am developing. Singleplayer games can be mundane and sometimes cheating can be overlooked. Multiplayer games usually have anticheat against repetitive robotic actions anyways. People want to override the control schemes of games with bad customization. Eg. Axiom Verge, Fortnite (Crouching). Game automation is not always bad. If the user feels the need to automate a singleplayer game for boring or mundane tasks, that is their choice. Similarly, if I wish to use scripts to automate testing, that is my choice.
      Game automation can be a problem for online multiplayer games, giving players a competitive advantage. This could be countered by common sense; ask OP what game they are automating, and is it an online game? What is this script for, and what does it seem to do?

      Please revise the rule as it seems very unnecessary and harmful to people seeking help with innocent attempts at game automation.
    • QuickWhiteWolf
      By QuickWhiteWolf
      Hi everyone,
       
      I was previously a member of this forum under the username Wombat. It's been years and multiple email accounts closed since then so I decided to start fresh and take a moment to thank you all... (Admins/Mods let me know if we need to discuss this...)
       
      I started programming with AutoIT while working as a scrap catcher for a machine that chopped scrap into pieces for easier moving, I learned styles and gained strengths from some of the best members on this forum by reverse engineering their code. I gained the confidence of our IT manager by making a boast that I could write an application to replace a p.o.s. cobalt based app we were using on the floor at that time, needless to say I was way in over my head but he saw that I had potential and I luckily had built several other apps on the side that were of equal or greater value to the company. I've been working as help-desk for the past 3 years and writing software as well to facilitate the help desk and solve recurring issues with our users. I was given an office and moved out of help-desk about a year ago, after 5 years of hard work I've actually landed the title of Jr. Developer moving into mid level title/pay this year! The company has already set out an improvement path that sees me with 4 certs and a bachelors in 4 more years making great money. Before this I had only ever worked at gas stations, fast food and manual labor jobs. If you're ever worried about your life, want something more, or just want a change you can do it. It's not easy, not at all, but it's possible and software programming is a very rewarding field if you like to make things and see how others interact with them.

      I utilized AutoIT to bring a company into the twenty-first century, away from paper trails and sticky notes improving the quality of life for the employees on the floor (where I started before learning AutoIT). I was given the go ahead to purchase visual studio and I learned VB.Net and built an awesome piece of Zebra labeling software (Utilizing ZPL code translated froma graphical editor) for our shipping department. Now I'm diving head first into C# and we have another programmer on board as we move on to MS Team Services and begin to tackle a sweet new project involving real time awareness of our product on the factory floor utilizing RFID and windows 10 tablets.

      That's a long way to come in just 4 years, and I couldn't have done it without the gigantic heart this community has and the mentorship provided for people looking to get into programming.

      So from the bottom of my heart, with immense respect.... Thank you so much AutoIT community
    • xerxes300
      By xerxes300
      Hello guys
      I think Stackoverflow Documentation is a really good idea and i want to contribute to my favourite language. We need 4 more contributors to get it accepted in the documentations forum. You need a Stack Overflow account and at least gained 1 positive awnser in the topic AutoIt. If thats the case, you can read more about stackoverflow documentation here:
      http://stackoverflow.com/tour/documentation
      And contribute here:
      http://stackoverflow.com/documentation/autoit
    • JamesPTG
      By JamesPTG
      Hi people, Sorry to post this Topic in this section, but I don't find any Section about the Autoit forum/website. (Moderator fell free to moved it to the right place) I have notice that under Opera 12.17 the Richtext(html) toolbar of the forum do not appear. Cheers, (btw: I still use Opera 12.17 Because I don't find other Browser with is all features !)

    • TheSaint
      By TheSaint
      Hi folks, this is a simple little program I whipped up, due to losing two postings in 24 hours some days ago.
      Normally, like many of you, when I know I'm gonna write more than a few lines, for safety, I do my writing in Notepad, and then paste into a post. Same scenario for Facebook, etc.
      Sometimes, I forget or I end up writing far more than I initially foresaw ... or like those two incidents, I was pretty tired as well. I also had an issue where my Netbook was giving my Mouse lag from time to time, so that when I thought I was only clicking on a Firefox tab, it moved at the last millisecond and I clicked on a button, that took me to another site. Once upon a time, when not tired, and with a big red STOP button in the browser, I could react quick enough not to lose everything ... unfortunately that is no longer the case.
      Anyway, enough dribble.
      Here is a little simple basic Text Editor program/window, that has several advantages over Notepad for Forum posting, etc. No doubt it could be improved by clever enterprising minds, but it has enough nifty features to suit me, and possibly be useful to others. Source is included in zip, but be aware, it was crafted with AutoIt v3.3.0.0 so will need updating if you want to modify and not use my exe.
      Also be aware, that UPX was used to reduce the size of the EXE for here.
      The program has Autosave and remembers it's size and position, plus a floating button for quick access. Text is exported to clipboard or an active field with a few clicks. See Info menu.
      WARNING! WebPad uses the clipboard, to achieve elements like Case Change, Quotes, Code, Link & Tab insertion or surround. This is to speed up the process and look less clunky than using SEND. This could potentially interfere with any fancy multi-entry Clipboard program you may actively use. This issue could be coded around.

      NOTE - v1.3 has two more buttons (TAB and COPY), one each side of the ON TOP one.
      Floating restore button.

      Web Pad v1.3.zip
      (76 downloads previously)
      NEWER VERSION (v2.5) also available - See below.
      See Post #14 for update detail.
      NOTE - If you want to keep things simple, then probably stick to the version of the program above, though there are some important bugfixes.
      Later versions increase in complexity, and are more targeted to my requirements.
      WARNING - Created and updated with AutoIt v3.3.0.0, so the script may have issues running or compiling with later versions of AutoIt.
      Web Pad v2.5 downloads (open the re-direction html page with your browser, don't save)
       Web Pad v2.5.zip
       Web Pad.au3
      Details here.
      Later Screenshots
      (v2.0)

      (v2.5) Latest

×