scite4能否dataframe 设置索引引

From AutoIt Wiki
SciTE4AutoIt3 is a specialist editor package based on the excellent
SciTE has been set up to compile AutoIt scripts and has been extended with a multitude of Lua scripts.
SciTE4AutoIt3 may be downloaded here: .
Keep in mind that SciTE4AutoIt3 is not an official package.
Direct any bug reports or feature requests to the AutoIt3 forum and not the bug tracker.
SciTE4AutoIt3 comes with a customized AutoIt3 lexer which enables syntax highlighting.
Syntax highlighting enables the colorization of various code elements such as variables, strings, operators, comments etc.
Syntax highlighting allows one to differentiate the various code elements such as keywords, variables, strings, control flow structures etc. quickly without having to specifically identify the element.
To load a custom theme a user may press [Ctrl] + [1] to bring up .
When the Color Settings tab is selected a button labeled 'New Scheme' will appear at the bottom.
Alternatively, the colors may be customized individually.
Some options that are available for customization include: White Space, Comment Line, Comment Block, Number, Function, Keyword, Macro and String.
For anyone not familiar with SciTE, here are a few tips and tricks to help easily customize the installation.
For any advanced info, visit the .
To access the AutoIt3 helpfile the user may press [F1].
For the full article see:
To quickly access help information on a specific function, simply click or highlight the desired function and press the [F1] key to bring up the help file on the relevant page.
To access the SciTE4AutoIt3 helpfile the user may press [ctrl] + [F1].
Minor editing of SciTE's configuration files will be required to make use of the information in this section.
It is important to be familiar with the hierarchy of SciTE's configuration files.
There are four properties files used:
SciTE.properties
Local properties file which may be present in the same directory as the file being edited. This file overrides any other properties files settings below. This file is user created.
SciTEDirectory.properties
Directory properties file which may be present in the same or in a parent directory as the file being edited.
This file overrides all properties setting of the files below, but not the local properties settings aka SciTE.properties.
This file is user created.
SciTEUser.properties
User properties file, this file's settings override only the global properties settings aka SciTEGlobal.properties.
This file is found under the current logged on users profile directory.
SciTEGlobal.properties
All settings in this file can be overridden by any of the above files.
Typically this file should not be edited.
Use any of the above methods to implement a setting change.
This file can be found in SciTE's installation directory.
Intentional error prone code used to display the "Inline Error" feature.
In the latest version of SciTE, there exists a new feature called "Inline Errors".
Inline Error marks are error messages that will appear in the source code within the Scintilla window.
The feature may be toggled and customized by using SciTEConfig.
Selection highlighting is a new feature which highlights other instances of the currently highlighted word or string.
Due to the colors, sometimes it is hard to tell the selection apart.
The default colors may be changed.
The feature may be toggled and customized by using SciTEConfig.
SciTE has a console window which can be used to output information from running scripts.
The function
may be used in an AutoIt script to output text to the console.
The colors of the text may be altered by prepending a string with special characters.
For example:
ConsoleWrite(&This is plain text& & @LF)
ConsoleWrite(&& This text will have a different color.& & @LF)
ConsoleWrite(&+ This text will have a different color.& & @LF)
ConsoleWrite(&- This text will have a different color.& & @LF)
ConsoleWrite(&! This text will have a different color.& & @LF)
AutoIt3Wrapper directives allow for in depth control of the compilation and interpretation of AutoIt scripts.
Some of these can be very useful under different circumstances.
for a full list of directives and their descriptions.
may be used to strip away unused
from the script prior to compilation.
Functions and variables may be renamed to shorter three character names to save space and to provide some measure of obscurity.
For instance, in a script that has several includes Au3Stripper can often strip thousands of lines from the script.
#AutoIt3Wrapper_Run_Au3Stripper=y
#Au3Stripper_Parameters=/sf /sv /rm
On a medium sized script, results are often like this:
&Running Au3Stripper (1.2.0.6)
from:C:\Program Files\AutoIt3\SciTE cmdline:
- Iteration 1 Strip Functions result: Output
2580 lines and stripped 6741 lines
- Iteration 2 Strip Variables result: Output
1585 lines and stripped 950 lines
- Iteration 3 Strip Variables result: Output
1566 lines and stripped 19 lines
- Iteration 4 Start the actual Obfuscation.
26190 lines 1447980 Characters.
+& Stripped
7710 Func/Var lines and
16862 comment lines, Total 1373871 Characters.
93% lines 94% Characters.
+& Au3Stripper v1.0.27.0 finished obfuscating 1566 lines, created:C:\MyScript_stripped.au3
Often a build is performed as a testing procedure and so to have to continually open up Windows Explorer to find the exe is repetitive.
Furthermore, if the script writes to the console using the function
then the messages will not be written to SciTE's console pane.
The solution is simple:
#AutoIt3Wrapper_Run_After="%out%"
This will run the program and read the console output to the SciTE debug frame.
When compiling, it is very possible that you want to go back to a previous version.
If so, then it is neat to have a directory which will store all previous builds, without the need for you to manually copy and paste every time.
Make sure you add these directives in last (after adding resources) as they might not be included in the copied result.
#AutoIt3Wrapper_Run_After=md "%scriptdir%\Versions\%fileversion%"
#AutoIt3Wrapper_Run_After=copy "%in%" "%scriptdir%\Versions\%fileversion%\%scriptfile%%fileversion%.au3"
#AutoIt3Wrapper_Run_After=copy "%out%" "%scriptdir%\Versions\%fileversion%\%scriptfile%%fileversion%.exe"
ResHacker is a very important programming tool for extracting and adding resources into executables.
It has a very simple command line interface that allows it to be used easily using the "Run_After" directive.
Adding a picture to an executable could be done like this:
#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, MyPicture.bmp, BITMAP, RESOURCENAME, 0
NB: Reshacker.exe must be copied into the script directory for this to work.
If you then want to use the resources in your code, there is an excellent
which will allow you to access the resources from within the exe.
When using the above tip on stripping excess code, the new source is not readable.
As a result, using the standard directive for saving the source:
#AutoIt3Wrapper_Res_SaveSource=y
Would add the obfuscated code to the exe, which is not the desired result.
The solution is to add it in manually.
This code does not require any editing, so you can just copy and paste it in:
#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, %scriptfile%.au3, RCDATA, SOURCE, 0
ResHacker doesn't always return with a return code (rc) of not 0 if it fails, to get that info you need to read the ResHacker.log file that is created. This is also pretty simple to do:
#AutoIt3Wrapper_Run_After=ResHacker.exe -add %out%, %out%, MyPicture.bmp, BITMAP, RESOURCENAME, 0
#AutoIt3Wrapper_Run_After=TYPE ResHacker.log
The new output now looks like this:
&Running:ResHacker.exe -add C:\MyScript.exe, C:\MyScript.exe, MyPicture.bmp, BITMAP, RESOURCENAME, 0
&ResHacker.exe -add C:\MyScript.exe, C:\MyScript.exe, MyPicture.bmp, BITMAP, RESOURCENAME, 0 Ended
&Running:TYPE ResHacker.log
[19 Jan :22]
ResHacker.exe
-add C:\MyScript.exe, C:\MyScript.exe, MyPicture.bmp, BITMAP, RESOURCENAME, 0
Added: BITMAP,RESOURCENAME,0
Commands completed
&TYPE ResHacker.log Ended
And an example of it showing an error:
&ResHacker.exe -add C:\MyScript.exe, C:\MyScript.exe, MyPicture.bmp, BITMAP, RESOURCENAME, 0 Ended
&Running:TYPE ResHacker.log
[19 Jan :10]
ResHacker.exe
-add C:\MyScript.exe, C:\MyScript.exe, MyPicture.bmp, BITMAP, RESOURCENAME, 0
Error: "MyPicture.bmp" does not exist
&TYPE ResHacker.log Ended
As you can see, Reshacker on its own returns rc: 0, usually indicating no error. This would have gone completely unnoticed except for the log file, which shows the error and an explanation.
You can use any commands you like in the Run_After and Run_Before directives. Examples such as "TYPE" have been shown above.
For a more complete list the following website is very useful:SciTE4AutoHotKey 中文显示怪异 ,有没有办法解决?【autohotkey吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:2,576贴子:
SciTE4AutoHotKey 中文显示怪异 ,有没有办法解决?收藏
用的SciTE? 是的话在 左上角File--Encoding---UTF-8 with BOM
@舊損友不行啊
say no more , 我知道了, 它需要重新输入文字
登录百度帐号SciTE4AutoHotkey
SciTE distribution designed for AutoHotkey - made by fincs - Original SciTE made by Neil Hodgson
Quick Reference
Editing features:
Extending the editor:
Tool documentation:Sign in anonymously
New SciTE4AutoIt3 available with updated SciTE v3.4.4
New SciTE4AutoIt3 available with updated SciTE v3.4.4
August 1, 2014 in
This topic is now closed to further replies.
New SciTE4AutoIt3 available with updated SciTE v3.4.4

我要回帖

更多关于 pandas 重新设置索引 的文章

 

随机推荐