Jump to content
Professor_Bernd

PSPad4AutoIt3 (editor IDE)

Recommended Posts

On 3/12/2020 at 1:37 PM, argumentum said:

You should be able to run your setup, without necessarily having to have a full SciTE setup but just the components you actually use.

Now I have successfully integrated the AutoIt3Wrapper.au3 and its dependencies into PSPad for testing. I copied the needed files into the PSPad folder and adjusted the paths in the AutoIt3Wrapper.au3. Technically this works great, and the version checker doesn't care which version of SciTE4AutoIt3 is installed on a computer. In fact, there would be no need to install SciTE at all.

After that I checked the legal aspects. Unfortunately it seems that Jos doesn't agree to deliver the files in a foreign package. This is a pity, but I respect that. I'm glad that Jos gave me permission to use the AutoIt3Wrapper.au3 in the SciTE directory. So I go back to your idea:

On 6/10/2020 at 1:09 AM, argumentum said:

I would still insist on not looking at SciTE version and expectations the way you do but after changing the SciTE4AutIt3 4.2 check to 4.1 on your distro.

For the next release of PSPad4AutoIt3 I'll try to change the version checker to check the version of AutoIt3Wrapper.au3 instead of SciTE. Also it needs to check if SciTE4AutoIt3 is installed and the dependencies for AutoIt3Wrapper.au3. It's a bit complicated, but I think it could work.

Regards, Bernd.

 

Share this post


Link to post
Share on other sites
MsgBox(0, "WrapperVerGetter()", WrapperVerGetter(), 60)
Func WrapperVerGetter()
    Local $wrapperFN = StringLeft(@AutoItExe, StringInStr(@AutoItExe, "\", 0, -1)) & "SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3"
    Local $n, $chunk = StringSplit(FileRead($wrapperFN, 10240), @CRLF & "=")
    For $n = 2 To UBound($chunk) -1
        If $chunk[$n - 1] = "#AutoIt3Wrapper_Res_Fileversion" Then Return $chunk[$n]
    Next
    SetError(1, 0, "")
EndFunc

...if this returns the minimum version of the wrapper, the rest will be there too :) 

Share this post


Link to post
Share on other sites

@argument

An update of VersionsChecker is ready. As you suggested, it no longer checks the version number of SciTE, but AutoIt3Wrapper.au3. The check for SciTE is disabled. The minimum version numbers are now in a separate list "VersionsChecker.lst". So you can lie to the code much easier! :D

Can you test this? Copy the folder PSPad4Au3 into the PSPad directory (PSPad4AutoIt3) and overwrite existing files.

Bernd.

VersionsChecker v42b 2020-06-13 - Check for SciTE disabled..zip

Share this post


Link to post
Share on other sites
Posted (edited)
---------------------------
AutoIt3_CompilerRunner: - Error -
---------------------------
The process did not react. An abrupt termination was forced!
"C:\Users\Tester\Downloads\PSPad4AutoIt3 v1.1.0 beta without setup\PSPad4AutoIt3\PSPad4Au3\Au3 scripts\StringSize.au3"
---------------------------
OK
---------------------------

...so I Ctrl - F9, look at it for a few seconds and get the above error. The console output is:

>"C:\ProgFilesSelf\AutoIt3\AutoIt3.exe" "C:\ProgFilesSelf\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /prod /in "C:\Users\Tester\Downloads\PSPad4AutoIt3 v1.1.0 beta without setup\PSPad4AutoIt3\PSPad4Au3\Au3 scripts\StringSize.au3" /ShowGui
+>         PSPadDir => C:\Users\Tester\Downloads\PSPad4AutoIt3 v1.1.0 beta without setup\PSPad4AutoIt3\    SciTEDir => C:\ProgFilesSelf\AutoIt3\SciTE\   SCITE_USERHOME => C:\Users\Tester\AppData\Local\AutoIt v3\SciTE 
+>11:37:14 Starting AutoIt3Wrapper (19.1127.1402.0} from:PSPad.exe (5.0.4.505)  Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)
>Exit code:     Time: 11.8225

Maybe because I have almost no standard paths, or maybe something else. No clue. I'm just the "test guy". :) 

Edit: the info. was misleading, as it was not all from the same script. It now is exact.

Edited by argumentum
..the info. was misleading

Share this post


Link to post
Share on other sites

Can you describe the steps to reproduce? From opening PSPad. Which script did you use, which commands were executed, etc.

What special features do you have? You once told me something about a protected zone, does PSPad have enough rights?

What is written in the "...\PSPad4AutoIt3\PSPad4Au3\PSPad4AutoIt3.ini", are the paths to AutoIt3_Dir and SciTE_Dir correct?

12 minutes ago, argumentum said:

I'm just the "test guy". :) 

Yes, I am happy to have a "test guy". :)

Share this post


Link to post
Share on other sites
2 minutes ago, Professor_Bernd said:

What is written in the "...\PSPad4AutoIt3\PSPad4Au3\PSPad4AutoIt3.ini"

[Paths]
AutoIt3_Dir=C:\ProgFilesSelf\AutoIt3\
SciTE_Dir=C:\ProgFilesSelf\AutoIt3\SciTE\
[General]
P4A3_FirstStartAfterInstallIsDone=True
[Config]
; ColorSchemes 2020-06-07: White_Black_Red, Gray_White_Blue
ColorScheme=White_Black_Red

 

2 minutes ago, Professor_Bernd said:

are the paths to AutoIt3_Dir and SciTE_Dir correct?

yes

2 minutes ago, Professor_Bernd said:

What special features do you have? You once told me something about a protected zone, does PSPad have enough rights?

should be all good.

3 minutes ago, Professor_Bernd said:

Can you describe the steps to reproduce? From opening PSPad. Which script did you use, which commands were executed, etc.

I opened PSPad, ... drag'n'drop a script ( StringSize.au3 was right there, so I used that ), ... Ctrl-F9 to bring up the wrapper,  ... look at it for a moment ...then I get the popup error.

On 6/11/2020 at 5:00 PM, argumentum said:

...if this returns the minimum version of the wrapper

That was a way of speech. What I mean is that, at times code can say, what words don't clearly explain.
But the code I posted was a simple example to explain what I meant. But a better code would be:

MsgBox(0, "WrapperVerGetter()", WrapperVerGetter(), 60)
Func WrapperVerGetter()
    Local $wrapperFN = StringLeft(@AutoItExe, StringInStr(@AutoItExe, "\", 0, -1)) & "SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3"
    
;~  Local $n, $chunk = StringSplit(FileRead($wrapperFN, 10240), @CRLF & "=")
;~  For $n = 2 To UBound($chunk) -1 ; simple
;~      If $chunk[$n - 1] = "#AutoIt3Wrapper_Res_Fileversion" Then Return $chunk[$n]
;~  Next
;~  SetError(1, 0, "")

    Local $b, $n, $chunk = StringSplit(FileRead($wrapperFN, 10240), @CRLF)
    For $n = 1 To UBound($chunk) -1 ; more thoughtful
        $b = StringSplit($chunk[$n], "=;")
        If UBound($b) < 3 Then ContinueLoop
        If StringStripWS($b[1], 3) = "#AutoIt3Wrapper_Res_Fileversion" Then
            Return StringStripWS($b[2], 3)
        EndIf ; #AutoIt3Wrapper_Res_Fileversion = 1.2.3.4 ; comment
    Next
    Return SetError(1, 0, "")
EndFunc

it is a more ( probably ) uselessly complicated code, but it takes into account possibilities. In this case, that of having spaces and comments.
So while coding, take into consideration what even not expected, possible.
This trend of thought/coding, makes a more stable product/script. :)

Share this post


Link to post
Share on other sites

30 minutes after you post, I get a notification from the forum. Sorry for the delay.

Do you mean with your code that the recognition of the wrapper MinVer fails? I took your first suggestion as a basis and developed my own routine to check the MinVer of the wrapper.

If _WinAPI_PathStripPath($_sFilePath) = "AutoIt3Wrapper.au3" Then

        $aChunks = StringSplit(FileRead($_sFilePath, 10240), @CRLF & "=") ; Die ersten 10.240 Zeichen auslesen.

        For $n = 2 To UBound($aChunks) -1

          ; There are beta versions in which "...Res_Fileversion" does not exist.
          ; If "Global Const $VERSION" is given, return VerNum and leave function.
          If StringStripWS($aChunks[$n - 1], $STR_STRIPALL) = "GlobalConst$VERSION" Then _
            Return StringStripWS(StringReplace($aChunks[$n], '"', ''), $STR_STRIPALL)

          ; If "...Res_Fileversion" is given, return VerNum and leave the function.
          If $aChunks[$n - 1] = "#AutoIt3Wrapper_Res_Fileversion" Then Return $aChunks[$n]
        Next
      Else ; Meine eigenen au3 Scripts.

Does VersionsChecker show that all MinVers are correct? Have you ever tried to compile another script? What could be the reason for the error? <_<

 

 

Share this post


Link to post
Share on other sites

..I, ... I am not a right to the point kind of person. I tend to ramble in my speech.
I was pointing to a trend in coding. As coded your script, regarding the line:
If $aChunks[$n - 1] = "#AutoIt3Wrapper_Res_Fileversion" Then Return $aChunks[$n]
should have no problem but shows that you code under exact expectations.
I believe that the style of coding can, if that is the way you code everything, lead to unexpected results.
So is more of a point of view in coding style than an error.
 

9 minutes ago, Professor_Bernd said:

What could be the reason for the error?

No clue. I would have to load the code in my head and debug. But is not as easy as in the movies.
I'm dealing with my projects but if you get stuck, like really stuck, then I guess I'll take a go at troubleshooting the code.

Share this post


Link to post
Share on other sites
Posted (edited)
24 minutes ago, argumentum said:

should have no problem but shows that you code under exact expectations.

I understand. Before your answer can came, (sorry for typo) I already had the same thought and had also changed the second check to that effect. :)

; There are beta versions in which "...Res_Fileversion" does not exist.
          ; If "Global Const $VERSION" is given, return VerNum and leave function.
          If StringStripWS($aChunks[$n - 1], $STR_STRIPALL) = "GlobalConst$VERSION" Then _
            Return StringStripWS(StringReplace($aChunks[$n], '"', ''), $STR_STRIPALL)

          ; If "...Res_Fileversion" is given, return VerNum and leave the function.
          If $aChunks[$n - 1] = "#AutoIt3Wrapper_Res_Fileversion" Then _
            Return StringStripWS(StringReplace($aChunks[$n], '"', ''), $STR_STRIPALL)

 

I'm sorry that checking the MinVer for AutoIt3Wrapper.au3 does not work. I will run some more tests, but if I don't find the error, I will have no choice but to go back to the old state and check the MinVer of SciTE.

In any case, thank you very much for sharing your information and I am very happy that you tested my code! :thumbsup:

Edited by Professor_Bernd

Share this post


Link to post
Share on other sites
2 minutes ago, argumentum said:

It does work. Never meant to say that it did not.

My understanding is that the error occurs when the MinVer for AutoIt3Wrapper.au3 is checked, but that the error does not occur when the MinVer for SciTE is checked. Is this wrong?

Share this post


Link to post
Share on other sites
Posted (edited)

Now I have tested it on my test PC and the error does not occur there. On my test PC AutoIt 3.3.14.5 is installed and only SciTE Lite. In the SciTE folder I have copied the AutoIt3Wrapper folder, the AutoIt3Wrapper.au3 and the Directives.au3.

Do you also have the Directives.au3 in the AutoItWrapper folder?

2080272156_SciTELite1.png.3283e5f3e978242dfa366e79867c3dc5.png

Ok, that was the last question, I don't want to bother you too much. You were a really good "test guy". :) Thanks a lot!

Edited by Professor_Bernd
Edit: Image inserted.

Share this post


Link to post
Share on other sites
3 hours ago, argumentum said:
---------------------------
AutoIt3_CompilerRunner: - Error -
---------------------------
The process did not react. An abrupt termination was forced!
"C:\Users\Tester\Downloads\PSPad4AutoIt3 v1.1.0 beta without setup\PSPad4AutoIt3\PSPad4Au3\Au3 scripts\StringSize.au3"
---------------------------
OK
---------------------------

...so I Ctrl - F9, look at it for a few seconds and get the above error.

That is the error.

Share this post


Link to post
Share on other sites
Posted (edited)

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

The highlights of the new features:

Improvement kit

The biggest innovation is the "killer feature" CallTips for OUDFs .

The CallTipViewer has only shown Au3Api functions so far, now CallTips are also implemented for OUDFs!

Au3Api functions are the official AutoIt functions, which are either "built in" or delivered with AutoIt. In short, all functions that can be found in the au3.api or the AutoIt help.

OUDF stands for "own user defined function", which is NOT found in the AutoIt help, but is in an Au3 script that you are currently working with, or which are in the included Au3 scripts. These can be functions that you or someone else wrote, everything that is not in the AutoIt help is displayed in the CallTipViewer as OUDF. Even volatile functions are displayed.

 

Display in the CallTip

A CallTip has two lines. For Au3Api functions, the syntax of the corresponding function is displayed in the first line and a description of this function in the second line. For OUDFs, the first line also shows the syntax of the corresponding function, but the second line shows the path to the Au3 script in which this function is located.

 

Invalid functions

Valid functions and also most invalid functions are displayed in the CallTip. There are only a few criteria with which invalid functions are filtered out and therefore no CallTip is displayed. It is e.g. checked whether there is an associated function foot for a function head and whether there is an opening and an associated closing parenthesis after the function name. But don't worry, the compiler takes care of invalid functions! 8o

 

Monitoring

CallTips for OUDFs are only displayed for saved files! That means, if you are working in a script and e.g. have just written a new function, it will not be displayed in the CallTip until you have saved the script. This is because the files are monitored for changes via folder monitoring. This means that the CallTips are automatically updated when a file is saved, even live* while a CallTip is currently visible. (* Delay by Windows ShellChangeNotify of about 1 second.) Also external changes, thus outside PSPad, are detected. So the CallTips for OUDFs are always up-to-date!

 

Color Scheme "auto"

The Color Scheme of the CallTip is now automatically adapted to the current PSPad skins. If a light skin is selected the CallTip will also be shown with the light color scheme, if a dark skin is selected the CallTip will automatically be shown with a dark color scheme.

88527-calltip-with-color-scheme-light-pn

88528-calltip-with-color-scheme-dark-png

 
The previous features for Au3Api functions also apply to OUDFs.
 
Spoiler

- Call CallTipViewer with Shift + Ctrl + Space if the caret is behind an opening parenthesis of a valid function.

- There are 2 color schemes: 1 light, 1 dark (and "auto").

- Multiline-capability: CallTip is also displayed for function calls over several lines, which logically belong to the FuncName by line continuation characters.

- A hint is shown if there are too many parameters in the function call. "Too many params".

- If a CallTip is displayed and current parameters change, the new current parameter is automatically displayed in red.

- If a CallTip is displayed and the function changes in the current line, the CallTip also changes automatically. (Even with function-in-function.)

 

Credits

Spoiler

This time my thanks go to:

Bitnugger (suggestions, ideas and code snippets) - Your demos and tips were very helpful especially in folder monitoring!: thumbup:

AspirinJunkie (RegExp pattern, ideas and code snippets) - Your tireless work on RegEx patterns, some of which you took from the bottom of your bag of tricks, and your explanations were super helpful!: thumbup:

alpines (suggestions, ideas, testing, develop routines) - Your ideas and suggestions and especially your help with debugging were invaluable!: thumbup:

BugFix - Your explanations were also very useful, especially your confirmation when I wasn't sure if my intended path was going in the right direction.: thumbup:

For all those mentioned, there was a lot more, for which I am grateful. But that would go beyond the scope of this article ;) If I have forgotten someone, please let me know. : saint:

 

And as always: I would be happy if you have a look at the program and write your opinion about it. Praise, criticism, ideas, tips and hints on bugs are welcome. Have fun with the new features! :)

Prof Bernd.

Edited by Professor_Bernd

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...