Jump to content
Professor_Bernd

PSPad4AutoIt3 (editor IDE)

Recommended Posts

Hello.

PSPad4AutoIt3 consists of the Editor PSPad and the Improvement Kit, and can be used as an portable Editor IDE for AutoIt3.

The author of the PSPad Editor is Jan Fiala. I (Professor Bernd) am only the author of the Improvement Kit.

 

After months of work, PSPad4AutoIt3 version 1.0.0 beta is now ready. :party: 

I like to call it the "first real" version, because the Improvement Kit now handles a lot of things autonomously. So PSPad remains operable when an au3 script is started. Also there is now a setup that makes the installation easier. 👍 And for those who don't like/do not want an installer, there is a download without setup. Without setup, the user has to take care of the prerequirements himself. Only recommended for experienced users.

The core functionalities "Run, Check Syntax, Compile and Comile Dialog" are integrated and work very well. Thanks to @Jos for extending AutoIt3Wrapper! :) There are also a few more features that you can find in the main menu, menu item "Scripts" => "_AutoIt". These include "Debug to Console", "Debug to MsgBox" and the "Koda FormDesigner" as a helper for creating GUIs. In this menu there is also an item "_Tips and shortcuts". After a click the AutoIt-relevant shortcuts are displayed.

The language in the menu "_AutoIt" is English. The language for PSPad in general can be set for more than 40 languages (Main menu => Settings => Program Settings => Language).

PSPad4AutoIt3 is in a beta stage and does not have many features yet. But I am working on it! :P:construction:

More information (EN, DE) and the download can be found in my PSPad4AutoIt3 Projekt in the AutoIt.de forum.

I would be glad if you have a look at it and write me your opinion. Have fun! :)

 

2020-04-20 Note: The minimum version for AutoIt3 HAS TO BE 3.3.14.5!

I had hoped that the changes would not be so severe, so in the downloads the minimum version 3.3.14.0 is still indicated. Unfortunately, it has recently become apparent that with older versions the main functions, e.g. CompilerRunner, the AutoIt3 Help and the upcoming CallTipViewer, fail.

The downloads can be used so far, but everybody has to take care of the AutoIt3 version 3.3.14.5 by himself!

Thank you very much,
Bernd.

 

New version PSPad4AutoIt3 v1.2.0 beta (2020-08-03). Download in Posting # 1 , Info Details

Edited by Professor_Bernd

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks for asking.

Yes, there is a dark theme that can be applied: "PSPad dark". It was shipped with the latest PSPad version 5.0.4 (381), or can be found here:  PSPad dark.zip

In PSPad you can set up an own color scheme for each language (AutoIt, C++, Pascal, ...). In the main menu click on "Settings" / "Highlighter Settings".

Spoiler

1988731113_1MenuSettingsHighlighterSettings.thumb.png.0766984dbbb34babaa94c358ec2559e2.png

 

To choose a color scheme: In the dialog click on "AutoIt3" on the left side. The current color scheme for AutoIt3 will appear. Then you can choose one of the available themes. In the lower part of the dialog next to "Color Scheme" click on the arrow of the ComboBox and choose e.g. "PSPad dark". Then click on "Load" to load the theme, and click on "Apply".

Spoiler

2057641632_2Loadcolorscheme.png.d74efc71e6130df7b6e3ad736d7e9d51.png

 

To create your own theme, you can set each color according to your wishes. Then just enter a name in the ComboBox, for example argumentum1, and click "Save".

Spoiler

1741051164_3Savecolorscheme.png.5e2a221160a093e53292958abf137c86.png

 

To adopt the colors of SciTE, you can assign each color in SciTE to a corresponding color in PSPad. In the file "...\PSPad4AutoIt3\Syntax\AutoIt3.ini" you can see what is associated with "ReservedWords" [Macro], "KeyWords" [Funktion], "KeyWords2" [Standard UDF's], "KeyWords3" [Keyword]. SciTE equivalents in the square brackets.

Spoiler

1835403424_4adoptthecolorsofSciTE.thumb.png.38669ffcc3d973f8d7af01682fd2f118.png

 

I have created a theme "argumentum1 "  argumentum1.zip  based  on your screenshot. This theme is not accurate, because I picked the colors from the screenshot. If you send me your SciTE scheme, I can adjust the colors more precisely. ;)

To import color schemes, just copy the desired color scheme file (e.g. "PSPad dark.ini") to the folder: "...\PSPad4AutoIt3\Colors\". After that you can select the imported theme in the highlighter dialog described above in "To choose a color scheme".

 

To change colors for "LOG parser" and "Brackets": In the program settings there seem to be 3 colors which are not changed in the highlighter. ("Spell Check", "LOG parser" (error highlighting) and "Brackets"). To set these 3 colors, click on "Settings" / "Program Settings" in the main menu. In the dialog window click on "Colors" in the left area. Note: The program settings apply to all highlighters.

Spoiler

         1497832093_5MenuSettingsSettings.png.cdd3548ceb4b8fb39b8c06715ae35386.png

 

416290042_6DialogProgramSettingsColors.png.bbf522f0e84b39bf19edd2cfaab25640.png

 

Bernd.

Edited by Professor_Bernd

Share this post


Link to post
Share on other sites
Posted (edited)

Choose a language for the PSPad interface

To select a language for the PSPad interface, click on "Settings" / "Program Settings" in the main menu. In the settings dialog on the left side click on "Language". On the right side you can now choose between more than 40 languages.

Spoiler

1699866022_7DialogProgramSettingsLanguage.png.5ea176e6a65798ff64ce7cdd7cc1c248.png

 

Associate file extensions ".au3" and ".ppr" (project files) with PSPad

To associate file extensions with PSPad, click on "Settings" / "Program Settings" in the main menu. In the settings dialog on the left side click on "Registered File Types". On the right side, ".au3" and ".ppr" are already entered. Now click on the button "Register all".

More file extensions can be added in the lower part of the dialog. In the text box at "Type" enter the desired file extension including the leading dot and click the button "Add New". Then click on the "Register all" button.

Spoiler

1909305008_8Associatefileextensions.png.c37ff39651825f2242561112eb7e8b18.png

 

Shortcuts (AutoIt related)

To see a list with a selection of AutoIt related shortcuts, click on "Scripts" / "_AutoIt" / "_Tips and shortcuts" in the main menu. The ReadMe.txt is displayed in PSPad. Many of the AutoIt related shortcuts are listed there.

Spoiler

1149211595_9Shortcuts(AutoItrelated).thumb.png.0d0c51530e3363b602c88ae7a2085c7f.png

 

Bernd.

Edited by Professor_Bernd

Share this post


Link to post
Share on other sites

I use My fine tuned High Contrast theme to set the colors for my desktop.
A dark mode has much less impact at the end of the day, than the common bright whites, all day, everywhere.
So the dark coloring is important to me.

The use of PSPad is interesting, as I also plan to do some HTML in AutoIt. Other than that, with the full SciTE distro. one can get at the AutoIt installer page, one can have a very specialized environment, that I personally prefer over an IDE,  like ISN AutoIt Studio for example. ( tho I have not seen another in the wild )

So, I don't know. I don't have a reason to use another environment to code AutoIt.

On the HTML unrelated note: I don't find an environment I feel comfortable in yet.
 

On 3/6/2020 at 3:48 PM, Professor_Bernd said:

Is anyone interested? 

I have the same opinion Alpine gave in the .de forum a while back, so, my, or anyone's use, or not use, should not be of consideration.
There are things we do, because we find it beautiful. Very many use stuff that the coder is never thank or aware of, yet is useful ( hence beautiful ).

And, thanks for sharing :)  

Share this post


Link to post
Share on other sites
Posted (edited)

I find the dark theme very interesting, and I think it is good for the eyes. I have downloaded your "My fine tuned High Contrast theme" and tested it for a short time. I like it very much. Also to you: Thanks for sharing. :)

Edited by Professor_Bernd

Share this post


Link to post
Share on other sites
Posted (edited)

The Function list pane is something I miss very much while 'Autoitting' after using Geany in linux

--

Not sure how I feel about it trying to connect to the internet on startup

Feels like that is something it should ask for permission before trying

-- is there a way to point it at a different directory to find Scite and Autoit 

or is it hard coded to use the installed version @ C:\Program Files (x86)\AutoIt3\

--Nevermind found it PSPad4AutoIt3\PSPad4Au3\PSPad4AutoIt3.ini

it'd also be nice if you could dismiss that error window for the remainder of the program run

like 'don't show again this session'

 

In the Tool Panel Variable decaration should be Variable declaration

Edited by Bilgus

Share this post


Link to post
Share on other sites

Which part?

on first start it should ask 'Can I Check for updates?'

Needs an option to stop showing version errors with ArrayDisplay

Variable decaration is misspelled should be 'Variable declaration'

pspad.png

Share this post


Link to post
Share on other sites

One other thing I noticed..

the paths should be saved with quotes '' in case directory/filename has space

PSPad4AutoIt3\PSPad4Au3\PSPad4AutoIt3.ini

[Paths]
AutoIt3_Dir=C:\Autoit\Autoit 3.3.14.5\
SciTE_Dir='C:\Autoit\Autoit 3.3.14.5\SciTE4AutoIt3_Portable'
[General]
P4A3_VeryFirstStartIsDone=True

 

 

 

Share this post


Link to post
Share on other sites
Posted (edited)
On 3/10/2020 at 2:37 PM, Bilgus said:

Which part?

When I wrote that, there was only one line in your posting:

On 3/10/2020 at 1:28 PM, Bilgus said:

The Function list pane is something I miss very much while 'Autoitting' after using Geany in linux

 

Now there are more. :P  I thank you very much for your feedback! I will try to answer your questions as best as I can. Your screenshot is very helpful. Thanks for that. 👍

 

On 3/10/2020 at 1:28 PM, Bilgus said:

Not sure how I feel about it trying to connect to the internet on startup

Feels like that is something it should ask for permission before trying

PSPad4AutoIt3 consists of PSPad and Improvement Kit. The author of the great editor PSPad is Jan Fiala. I am just the author for the Improvement Kit. As you can see in your screenshot, this is the PSPad.exe, and it must have been an update request. You can disable updates in the PSPad settings. The Improvement Kit does not connect to the internet and there are currently no plans to do so.

I have decided to disclose all source codes. Therefore no script is compiled, all scripts are open in the following folders :

- "...\PSPad4AutoIt3\PSPad4Au3\" => All .au3 Scripts, Tools, Bak-, ReadMe- and similar files.

- "...\PSPad4AutoIt3\Script\VBScript\" => All VBScript files. Recognizable by "AutoIt3_" at the beginning of the file name.

You can control everything, there is no internet connection for the Improvement Kit. ;)

 

On 3/10/2020 at 1:28 PM, Bilgus said:

In the Tool Panel Variable decaration should be Variable declaration

Thanks for pointing that out. But this is part of PSPad, and you are welcome to report it on the PSPad forum.

 

On 3/10/2020 at 2:37 PM, Bilgus said:

Needs an option to stop showing version errors with ArrayDisplay

Sorry, but it doesn't make sense for me to turn off the version error message. If there are version errors, PSPad4AutoIt3 will not work. It can then only be used as a normal PSPad editor, but may generate errors with incomplete functions. In that case, you'd better download the normal version from the PSPad download page, without with little support for AuotIt3.

PSPad4AutoIt3 requires program parts that have a minimum version number. It also requires AutoIt3 and SciTE4AutoIt3 as preconditions, which have a minimum version number. Only when all parts meet the requirements can PSPad4AutoIt3 work. This is also indicated in the screenshot. For example, Jos rewrote the AutoIt3 wrapper to make it work for PSPad and other editors. Without the right AutoIt3Wrapper version, basic functions like "Run, Check Syntax, Compile and Comile Dialog" will not work.

 

On 3/10/2020 at 1:28 PM, Bilgus said:

-- is there a way to point it at a different directory to find Scite and Autoit or is it hard coded to use the installed version @ C:\Program Files (x86)\AutoIt3\

The paths are not hardcoded. First the default paths are checked, if they are not available, the user is asked ... You CAN enter the paths yourself in PSPad4AutoIt3.ini, but there is no need to do so.

If you downloaded the PSPad4AutoIt3 installation package with setup, all preconditions and version checks for it are done. For AutoIt and SciTE, you can specify existing paths, or perform a fresh install. If desired, the correct versions will be downloaded from the Internet.

If you downloaded the PSPad4AutoIt3 installation package WITHOUT setup, you have to take care of the preconditions with the correct versions yourself. When you start PSPad, the Improvement Kit will help you with the setup. If AuotIt or SciTE are not found, an input box is shown where you can enter the paths. This is done via VBScript, so it should work without AutoIt. (I will post a note on the PSPad4AutoIt3 download page in the German AutoIt forum).

Can you please post a screenshot where the version errors are shown with ArrayDisplay? :)

 

On 3/10/2020 at 2:51 PM, Bilgus said:

the paths should be saved with quotes '' in case directory/filename has space

PSPad4AutoIt3\PSPad4Au3\PSPad4AutoIt3.ini

You are right that paths with spaces need quotes. In the INI they are stored without quotes. The quotes are handled within the scripts of the Improvement Kit.

 

I hope I could answer your questions so far. Thanks for your questions, criticism and information! Further feedback is welcome! :)

Bernd.

Edited by Professor_Bernd

Share this post


Link to post
Share on other sites

Ah Sorry I wasn't aware you weren't in charge of PSpad as well

15 hours ago, Professor_Bernd said:

Sorry, but it doesn't make sense for me to turn off the version error message. If there are version errors, PSPad4AutoIt3 will not work. It can then only be used as a normal PSPad editor, but may generate errors with incomplete functions. In that case, you'd better download the normal version from the PSPad download page, without support for AuotIt3.

PSPad4AutoIt3 requires program parts that have a minimum version number. It also requires AutoIt3 and SciTE4AutoIt3 as preconditions, which have a minimum version number. Only when all parts meet the requirements can PSPad4AutoIt3 work. This is also indicated in the screenshot. For example, Jos rewrote the AutoIt3 wrapper to make it work for PSPad and other editors. Without the right AutoIt3Wrapper version, basic functions like "Run, Check Syntax, Compile and Comile Dialog" will not work.

 

 

The only issue is that it then proceeds to pop up that display anytime you change a setting

It also tries to overwrite my paths I've set in PSPad4AutoIt3.ini -- but you say the installer version takes care of this 

 

Here is the array display that comes after the error message

pspad1.png

Share this post


Link to post
Share on other sites
9 hours ago, Bilgus said:

The only issue is that it then proceeds to pop up that display anytime you change a setting

Unfortunately this is not the only problem: PSPad4AutoIt3 will not work if a part does not meet the minimum version. To make it clear: It is NOT that it works less then, or slower, it doesn't work at all then! :(

As you can see in your screenshot, one important component is missing: The AutoIt3Wrapper, which Jos has extended for use with PSPad and other editors. Without this important component, the basic functions "Run, Compile, ..." won't work.

You can easily fix the error message by updating SciTE4AutoIt3 to the latest version. This will give you the full functionality of PSPad4AutoIt3. :)

 

10 hours ago, Bilgus said:

It also tries to overwrite my paths I've set in PSPad4AutoIt3.ini -- but you say the installer version takes care of this

The Improvement Kit should not overwrite the paths in PSPad4AutoIt3.ini. Now I have an idea that might explain the problems. Where did you place PSPad4AutoIt3? PSPad4AutoIt3 is designed as a portable program and needs write permission. That's why it can't work in the Windows programs folders, for example.

The installation package with setup will help you set up preconditions, paths, and much more. 👍 (To avoid complications, you can delete the existing PSPad4AutoIt3 folder beforehand.)

 

10 hours ago, Bilgus said:

Ah Sorry I wasn't aware you weren't in charge of PSpad as well

Many thanks for this information! This is very important and I will emphasize it better in the first posting. I thank you. 👍

 

Bernd.

Share this post


Link to post
Share on other sites
Posted (edited)
3 hours ago, Professor_Bernd said:

important component is missing: The AutoIt3Wrapper, which Jos has extended for use with PSPad

You should look for the AutoIt3Wrapper version instead of the SciTE version. The reason is that many, just like yourself, fiddle with the default code, so, look at the wrapper for the version ;) 

Side note: I also have a customized the wrapper, so I patch each version to add the extra touches I like :) 

Edited by argumentum
link to the beta Wrapper

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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Aelc
      Hey there!
      I'm gonna try to get access to an RichEdit Control in PSPad with Autoit which is scripted with Delphi. I wrote the commands out ouf the RichEdit.au3 UDF to can change them, because it always fails or crashs, when i call it. I Just want to set the Textcolor for the RichEdit.
      It seems to be a Problem with $EM_SETCHARFORMAT... (maybe protected?) I can use e.g. $EM_SETBKGNDCOLOR or other messages with no error. Sadly it doesn't exist a message constant to just set the textcolor... This is what i already tried:
      use $EM_GETCHARFORMAT but it crashs/doesn't work too. I saw the riched20.dll is linked to GDI+ but i couldn't make something work with it... (GetDc and so on but maybe there is another way?) Tried to set some other style on it (setWindowLong) I read the MSDN about $EM_SETCHARFORMAT up and down, but i can't find any other solution.
      The RichEdit should be version 2 ( error message point to riched20.dll )
       
      Here is the PSPad that will be required for testing:
      https://autoit.de/wcf/attachment/87712-pspad4autoit3-v1-0-0-beta-without-setup-zip/
      You need to start PSPad.exe first!
      ; = Info =========================================================================================== ; Title : RichEdit_Test ; -------------------------------------------------------------------------------------------------- ; ; Version (vnots) : 0.0.1 ; Date : 2020-05-13 ; Author(s) : Aelc ; ; ================================================================================================== #include <File.au3> #include <Misc.au3> #include <Date.au3> #include <String.au3> #include <GuiListBox.au3> #include <WinAPI.au3> #include <MsgBoxConstants.au3> #include <Color.au3> #include <GuiRichEdit.au3> #include <EditConstants.au3> AutoItSetOption("MustDeclareVars", 1) RichEdit_Test_Main() Func RichEdit_Test_Main() Local $hPSPad = Null Local $tLogCtrls Local $hLB_hwnd Local $hLB_ID $hPSPad = _WinAPI_GetForegroundWindow() If Not WinExists("[CLASS:TfPSPad]") Then MsgBox ( 48,"","PSPad not found." ) Exit EndIf Sleep(1000) $hPSPad = WinGetHandle("[CLASS:TfPSPad]") ;~ If $hPSPad = Null Then ;~ MsgBox($MB_SYSTEMMODAL + $MB_ICONWARNING, 'AutoIt3_CompilerRunner: - Error -', 'No handle found for PSPad!') ;~ Exit (2) ; 2 = PSPad-hwnd not found ;~ EndIf If _WinAPI_IsClassName($hPSPad, "TfPSPad") Then ; -------------------------------------------------------------------------- If _Singleton("PSPad->RichEdit_Test " & String($hPSPad), 1) = 0 Then MsgBox($MB_SYSTEMMODAL + $MB_ICONERROR, "RichEdit_Test: - Error -", _ '"RichEdit_Test" is already running') Exit EndIf ; -------------------------------------------------------------------------- $tLogCtrls = PSPad_GetLogControls($hPSPad, 'Log') $hLB_hwnd = $tLogCtrls.hWnd_ListBox $hLB_ID = $tLogCtrls.ID_ListBox If $hLB_hwnd > 0 Then _SendMessage($hLB_hwnd, 0xCF,False) ;Set $READONLY to False Local $tagCHARFORMAT_changeable = "struct;uint cbSize;long dwMask;long dwEffects;long yHeight;long yOffset;INT crTextColor;" & _ "byte bCharSet;byte bPitchAndFamily;wchar szFaceName[32];endstruct" Local $aColor[3] = [0xFF, 0x00, 0xFF] Local $nColor = _ColorSetCOLORREF($aColor) Local $tCharFormat = DllStructCreate($tagCHARFORMAT_changeable) DllStructSetData($tCharFormat, 1, DllStructGetSize($tCharFormat)) DllStructSetData($tCharFormat, 2, $CFM_COLOR) DllStructSetData($tCharFormat, 6, $nColor) MsgBox ( 64,"",_SendMessage($hLB_hwnd, $EM_SETCHARFORMAT, $SCF_SELECTION, $tCharFormat, 0, "wparam", "struct*")) Else ; Log-Fenster konnte nicht gefunden werden. MsgBox($MB_SYSTEMMODAL + $MB_ICONERROR, "AutoIt3_CompilerRunner: - Error -", _ "The log window of PSPad could not be found.") Exit EndIf Else EndIf EndFunc ;==>RichEdit_Test_Main ;~ Func _RichEditGetTextLength($hWnd) ;~ If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) ;~ Local $bChars = True ;~ Local $bExact = True ;~ Local $tGetTextLen = DllStructCreate($tagGETTEXTLENGTHEX) ;~ Local $iFlags = BitOR($GTL_USECRLF, ($bExact ? $GTL_PRECISE : $GTL_CLOSE)) ;~ $iFlags = BitOR($iFlags, ($bChars ? $GTL_DEFAULT : $GTL_NUMBYTES)) ;~ DllStructSetData($tGetTextLen, 1, $iFlags) ;~ DllStructSetData($tGetTextLen, 2, ($bChars ? $CP_ACP : $CP_UNICODE)) ;~ Local $iRet = _SendMessage($hWnd, $EM_GETTEXTLENGTHEX, $tGetTextLen, 0, 0, "struct*") ;~ Return $iRet ;~ EndFunc ;==>_RichEditGetTextLength ;~ Func _RichEditGetBKColor($hWnd) ;~ If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) ;~ Local $iBkColor = _SendMessage($hWnd, $EM_SETBKGNDCOLOR, False, 0) ;~ _SendMessage($hWnd, $EM_SETBKGNDCOLOR, False, $iBkColor) ;~ Return $iBkColor ;~ EndFunc ;==>_RichEditGetBKColor ;~ Func _RichEditSetBKColor($hWnd, $iBkColor) ;~ If Not _WinAPI_IsClassName($hWnd, $__g_sRTFClassName) Then Return SetError(101, 0, 0) ;~ _SendMessage($hWnd, $EM_SETBKGNDCOLOR, False, $iBkColor) ;~ Return $iBkColor ;~ EndFunc ;==>_RichEditSetBKColor Func PSPad_GetLogControls($_hPSPad, $_sSheetText = 'Log') Local $sStruct_LogCtrls = _ 'hwnd hWnd_PageControl;' & _ ; TPageControl 'int ID_PageControl;' & _ 'hwnd hWnd_TabSheet;' & _ ; TTabSheet 'int ID_TabSheet;' & _ 'hwnd hWnd_ListBox;' & _ ; TListBox 'int ID_ListBox;' Local $tResult = DllStructCreate($sStruct_LogCtrls) Local $aEnum Local $sSheet Local $i, $x $aEnum = _WinAPI_EnumChildWindows($_hPSPad, False) If IsArray($aEnum) Then For $i = 1 To $aEnum[0][0] If $aEnum[$i][1] = "TTabSheet" Then $sSheet = ControlGetText($_hPSPad, '', _WinAPI_GetDlgCtrlID($aEnum[$i][0])) If $sSheet = $_sSheetText Then ; TabSheet gefunden. $tResult.hWnd_TabSheet = $aEnum[$i][0] $tResult.ID_TabSheet = _WinAPI_GetDlgCtrlID($tResult.hWnd_TabSheet) $tResult.hWnd_PageControl = _WinAPI_GetParent($tResult.hWnd_TabSheet) $tResult.ID_PageControl = _WinAPI_GetDlgCtrlID($tResult.hWnd_PageControl) For $x = $i + 1 To $aEnum[0][0] If $aEnum[$x][1] = "TRichEdit" Then $tResult.hWnd_ListBox = $aEnum[$x][0] $tResult.ID_ListBox = _WinAPI_GetDlgCtrlID($tResult.hWnd_ListBox) Return $tResult ; Wenn gefunden, dann raus aus der Funktion. EndIf Next EndIf EndIf Next EndIf Return $tResult EndFunc ;==>PSPad_GetLogControls I don't have any ideas anymore  But maybe someone else has?
      I would be happy for every idea  
       
      Thanks in advance
    • By Fenzik
      Hello All!
      i suggest to set default encoding in Scite4 for Autoit 3 to UTF 8 with Bom encoding, format recommended also in Autoit Help.
      In last editor version, when i open new script, for example Czech characters (č, ř, ž) aren't correct.
      So when i change Encoding to UTF 8 with Bom from Default Code page property state, everithing seems to be OK.
      Thank you and sorry for potentialy duplicated content.
      Fenzik
    • By UnknownUser
      Hello,
      I'm programming an automated email and have a line that is really long.  I am using SciTE as my console.   Here is that line in test.  
      $rc = _INetSmtpMailCom($SmtpServer, $FromName, $FromAddress, $aArray2[$i][3], $Subject, "This is a form letter meant for " & $aArray2[$i][1] &" "& $aArray2[$i][2]&"." & @CRLF & "The letters in "& $aArray2[$i][1] &" "& $aArray2[$i][2] & "'s first name are " &  $aArray2[$i][4] &" " & $aArray2[$i][5] &" "&$aArray2[$i][6] &" "& $aArray2[$i][7] &" "&$aArray2[$i][8] &" "& $aArray2[$i][9] & @CRLF & chr(13) & "Thank you." & chr(13) & " ", $AttachFiles, $CcAddress, $BccAddress, $Importance, $Username, $Password, $IPPort, $ssl)  The body of the email that the $rc function is creating begins after $Subject and ends after chr(13) & " ",. That body is the primary cause of the length.  When this goes live, I can easily see adding 3000+ characters to this line.  Is there a line limit?  Is there a way to wrap text in SciTE?  Do you have a trick to break that line up into multiple lines for ease of coding and reading?
      "Ideally I would like to be able to type text like this " & @CRLF & "so that I could read what I am writing easily " & @CRLF & "without having to keep scrolling to the right or " & @CRLF & "to the left.  Scrolling is quite a pain in the neck " & @CRLF & "and with 5000 characters, it might even become  " & @CRLF & "a programming showstopper." I am not able to pass this entire string as a variable because this string contains variables embedded in a for loop.  Thus, in so doing, I would multiplicate the loop.    I'll take any help I can get!
    • By Xandy
      What's new section:
      Snowman_Sky is game using MapIt engine.  MapIt will evolve here for a little bit.
      Download: [ http://songersoft.com/programming/Snowman_Sky.zip ]
      Video demonstrating new sprite_sheet class and weather effect.
      Working on the Class section of the Character Sheet.
      Which is what makes multiclassing possible.

      Changing the value of Class will load the stored value for XP.  Lvl will be updated to the XP tier.
      Hit points are then rolled for each level of all learned classes.  Hit dice are specific to each class and a Constitution modifier is added to each roll of hit die.
       
    • By AnonymousX
      So I just got a new computer, and instantly went and installed Autoit onto it. I selected run script as default action when clicking on an au3 file, however every time I do this it opens the script in the editor. I can from there run the script no problem.
      I've tried reinstalling and checking the settings by hitting "Ctrl+1" and have confirmed it is set to run, but yet it just continues to open in the editor.
      Any ideas why this is happening or how to solve?
      New system is windows 10, old was windows 7
×
×
  • Create New...