Leaderboard
Popular Content
Showing content with the highest reputation on 04/27/2021 in all areas
-
I was able to get it to work. I didn't realize running the wrapper actually compiled the script instead of having to manually run Aut2Exe. I'll post my new CI yml in case anyone else ever experiences this issue (Yes, the sleeps ARE needed). name: lili on: push: paths-ignore: - '.github/**' - '!.github/workflows/**' - '*.md' jobs: build: runs-on: windows-latest steps: - name: Install Autoit run: | Invoke-WebRequest -Uri https://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe -OutFile autoit-v3-setup.exe ./autoit-v3-setup.exe /S Start-Sleep -s 10 - name: Checkout repo run: | cd C:\"Program Files (x86)"\AutoIt3\Aut2Exe git clone https://github.com/rcmaehl/LinuxLiveUSBCreator - name: Install Full Editor tools run: | Invoke-WebRequest -Uri https://www.autoitscript.com/cgi-bin/getfile.pl?../autoit3/scite/download/SciTE4AutoIt3.exe -OutFile SciTE4AutoIt3.exe ./SciTE4AutoIt3.exe /S Start-Sleep -s 10 - name: Wrap Code run: | cd C:\"Program Files (x86)"\AutoIt3\Aut2Exe\LinuxLiveUSBCreator\sources\LiLi\ ../../../../AutoIt3.exe "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "C:\Program Files (x86)\AutoIt3\Aut2Exe\LinuxLiveUSBCreator\sources\LiLi\LiLi USB Creator.au3" Start-Sleep -s 10 - name: Rename and Aggregate Files run: | cd C:\"Program Files (x86)"\AutoIt3\Aut2Exe mkdir build cd C:\"Program Files (x86)"\AutoIt3\Aut2Exe\LinuxLiveUSBCreator $ver= git rev-list --count HEAD cd C:\"Program Files (x86)"\AutoIt3\Aut2Exe\LinuxLiveUSBCreator\Sources\LiLi Move-Item "LiLi USB Creator.exe" C:\"Program Files (x86)"\AutoIt3\Aut2Exe\build cd C:\"Program Files (x86)"\AutoIt3\Aut2Exe Move-Item LinuxLiveUSBCreator\tools build cd build Rename-Item -Path "LiLi USB Creator.exe" -NewName LiLiUSBCreator-2.10alpha$ver.exe - name: Upload uses: actions/upload-artifact@v2 with: name: LinuxLiveUSBCreator path: C:\Program Files (x86)\AutoIt3\Aut2Exe\build if-no-files-found: error2 points
-
Creating a master item list
riceking reacted to pixelsearch for a topic
Hi riceking This seems to work : #include <Array.au3> #include <File.au3> Local $aLine[2] = ["Line1","Line2"] Local $aSize[5] = [1,2,3,4,5] Local $aThick[3] = [1,2,3] Local $aColor[6] = [1,2,3,4,5,6] Local $iNbCombi = Ubound($aLine) * Ubound($aSize) * Ubound($aThick) * Ubound($aColor) ; 180 Local $aCSV[$iNbCombi], $iCounter = - 1 For $i = 0 To Ubound($aLine) - 1 For $j = 0 To Ubound($aSize) - 1 For $k = 0 To Ubound($aThick) - 1 For $l = 0 To Ubound($aColor) - 1 $iCounter += 1 ; starts at 0 $aCSV[$iCounter] = $aLine[$i] & ",Size" & $aSize[$j] & ",Thick" & $aThick[$k] & ",Color" & $aColor[$l] Next Next Next Next _ArrayDisplay($aCSV, "$aCSV") Local $sFile = @ScriptDir & "\CSV Example.csv" _FileWriteFromArray($sFile, $aCSV) ; CSV will be comma delimited If Not @error Then ShellExecute("notepad.exe", $sFile) Else Msgbox(0, "Error", "@error = " & @error & " returned by _FileWriteFromArray") EndIf1 point -
Uploaded a new version of the SciTE4AutoIt3.exe v21.316.1639.1
seadoggie01 reacted to TheDcoder for a topic
@argumentum Too easy, I plan to make my own editor with all sorts of features... but I need to finish working on ECI before that, challenge accepted1 point -
Uploaded a new version of the SciTE4AutoIt3.exe v21.316.1639.1
TheDcoder reacted to argumentum for a topic
H&ypertext|html|$(keyHTML)|\ #&InnoSetup|iss||\ #&Java|java||\ Java&Script|js||\ #&Kix|kix||\ #Lisp|lisp||\ #Lot|lot||\ #Lout|lt||\ Lu&a|lua||\ #Matlab|m.matlab||\ So, a coder, "DCoder", can't find his way around a configuration file ? What would be cool, is for someone ( you ), to write a "patch", to enable/disable, and add whatever is needed for those that would like to use JS in our AU3 editor Challenge accepted ?.1 point -
Could you give the expected result based on the example you just provided. It will help us understanding what is the target you are aiming at.1 point
-
Oh I see. When getting stream out of DOS console you will need to convert the string into non-DOS characters using _WinAPI_OemToChar ($sStream).1 point
-
Try this _ConsoleWrite() UDF in stead of ConsoleWrite() to see if that fixes it for you as it is a known fact that the characters don't display properly: Func _ConsoleWrite($s) ConsoleWrite(BinaryToString(StringToBinary($s, 4), 1)) EndFunc ;==>_ConsoleWrite Jos1 point
-
Guess you mean AutoIt3? Is this a CodePage(Ansi) versus UTF8 (Unicode) issue? Check your File/Encoding setting for the scriptfile. Jos1 point
-
Just add whatever you like by modifying your SciteUser.properties with something like this: my.languages=\ &js|cpp|| menu.language=$(default.languages)$(my.languages) You can find the possible options in SciTEGlobal.properties where you each for: default.languages I don't like to have a long list with possible language options people like to have there as SciTE will use the extension anyway to detect the lexer&properties to use. ...but your original question was "but can we get JavaScript syntax highlighting support in SciTE? " .... which is the case already...right?1 point
-
@jugador See my Named Pipe IPC UDF in my signature for a complete example of the usage of _WinAPI_WaitForMultipleObjects with _WinAPI_CreateEvent. The basis is to use overlapped option of WinAPI (or other similar functions). Let me know if you have further questions.1 point
-
Still the code provided above will work. You just need to change the list of values you want to gather and adapt the size of the 2D array...1 point
-
For RTF file use ShellExecute()1 point
-
Not sure I understand the question as I only see the input (CI) which I guess I can interpret, but have no idea what you mean with "headers to be parsed". Could you explain please and maybe add the log of "what you do see" ? ... and arn't you missing the download for AutoIt3Wrapper from that Script? (Maybe you could start explaining what that CI exactly should accomplish for this noob when it comes to Github CI's) Jos1 point
-
Yeah I remember using LiLi wayyyyy back in the day because it was really easy persistent storage. Sad to see the original dev got busy, but it's understandable. Regardless, some of the original translators saw the thread on r/Linux so hopefully I'll have a 2.10 with updated translations out within a month or so. The original dev's coding style is quite a bit different than how I would code and I'm still getting used to it.1 point
-
1 point
-
[Solved] How to make a two dimensional array from this data? - (Moved)
DannyJ reacted to JockoDundee for a topic
Thats odd, if I run that in powershell i get totally different column names and data AccountExpires : Description : Built-in account for administering the computer/domain Enabled : False FullName : PasswordChangeableDate : PasswordExpires : UserMayChangePassword : True PasswordRequired : True PasswordLastSet : LastLogon : 1/16/2021 12:30:28 AM Name : Administrator SID : S-1-5-21-4204884644-104046959-XXXXXXXXXX-500 PrincipalSource : Local ObjectClass : User1 point -
1 point
-
Here SRE way : #include <Array.au3> Local $sOutput = "Username: User1" & @CRLF & _ @CRLF & _ "Type: Admin" & @CRLF & _ @CRLF & _ "RegDate: 1999" & @CRLF & _ @CRLF & _ @CRLF & _ "Username: User2" & @CRLF & _ @CRLF & _ "Type: User" & @CRLF & _ @CRLF & _ "RegDate: 2000" ; extract informations Local $aArray = StringRegExp($sOutput, "(?|Username|Type|RegDate)\h*:\h*(.*)", 3) _ArrayDisplay($aArray) ; convert 1d array into 2d array Local $aFinal[UBound($aArray)/3][3] For $i = 0 to UBound($aFinal) - 1 $aFinal[$i][0] = $aArray[$i*3] $aFinal[$i][1] = $aArray[$i*3+1] $aFinal[$i][2] = $aArray[$i*3+2] Next _ArrayDisplay($aFinal)1 point
-
I don't think the problem is in AutoIT version, try the following script: Global $dat = @YEAR & "-" & @MON & "-" & @MDAY & " - " & " " & @HOUR & ":" & @MIN Global $namn = "Unicode problem's" Global $Test1 = " Test1 = Å Ä Ö" ; should be Test1 = Å Ä Ö Global $test2 = "Test2 = å ä ö" ; Should be Test2 = å ä ö Global $dag = "Måndag Lördag Söndag" ; Should be Måndag, Lördag Söndag Global $sInputFile = @ScriptDir & "\Mall.htm" Global $sOutputFile = @ScriptDir & "\Result.htm" _Write_Example_HTML($sInputFile) ; Write the example file! Global $hFileIN = FileOpen($sInputFile, 0 + 16384) ; $FO_FULLFILE_DETECT (16384) Global $hFileOUT = FileOpen($sOutputFile, 2 + 16384) ; $FO_OVERWRITE (2) While 1 Local $line = FileReadLine($hFileIN) If @error = -1 Then ExitLoop If StringInStr($line, "%N") Then $line1 = StringReplace($line, "%N", $namn) FileWriteLine($hFileOUT, $line1) ElseIf StringInStr($line, "%Dag") Then $line1 = StringReplace($line, "%Dag", $dag) FileWriteLine($hFileOUT, $line1) ElseIf StringInStr($line, "%Dat") Then $line1 = StringReplace($line, "%Dat", $dat) FileWriteLine($hFileOUT, $line1) ElseIf StringInStr($line, "%Test1") Then $line1 = StringReplace($line, "%Test1", $Test1) FileWriteLine($hFileOUT, $line1) ElseIf StringInStr($line, "%Test2") Then $line1 = StringReplace($line, "%Test2", $test2) FileWriteLine($hFileOUT, $line1) Else FileWriteLine($hFileOUT, $line) EndIf WEnd FileClose($hFileIN) FileClose($hFileOUT) ShellExecute($sInputFile) ShellExecute($sOutputFile) ConsoleWrite("- FileGetEncoding Input File: " & $sInputFile & @CRLF & '->' & _FileGetEncoding($sInputFile) & @CRLF) ConsoleWrite("- FileGetEncoding Output File: " & $sOutputFile & @CRLF & '->' & _FileGetEncoding($sOutputFile) & @CRLF) Func _Write_Example_HTML($inputFilePath = "eg.htm") Local $iHTMLcontent = '<!DOCTYPE html>' & @CRLF & '<html>' & @CRLF & '<head>' & @CRLF & '<meta charset="UTF-8">' & @CRLF & '<title></title>' & @CRLF & '</head>' & @CRLF & '<table cellpadding=5 cellspacing=5 border=2 bordercolor=#666666 bgcolor="#C0C0C0">' & @CRLF & '<tr>' & @CRLF & '<td align=center colspan="2" bgcolor="#33CCCC">' & @CRLF & '<b>' & @CRLF & '<font size="5">%N</font><br>' & @CRLF & '<font color=#000080</font>' & @CRLF & '</b>' & @CRLF & '</td>' & @CRLF & '</tr>' & @CRLF & '<tr>' & @CRLF & '<td align=center bgcolor="#E41B17">' & @CRLF & '<b><font size="3" color="#FFFFFF"> å ä ö</font><br>' & @CRLF & '<b><font size="3" color="#FFFFFF"></font></b>' & @CRLF & '</td>' & @CRLF & '<td align=center bgcolor="#E41B17">' & @CRLF & '<b><font size="3" color="#FFFFFF"' & @CRLF & '<font color="#FFFFFF">%Dag</font><br>' & @CRLF & '<font color="#FFFFFF">%Dat</font>' & @CRLF & '</td>' & @CRLF & '</tr>' & @CRLF & '<tr>' & @CRLF & '<td align=right bgcolor="#33CCCC"color="#FFFFFF">Å Ä Ö</td>' & @CRLF & '<td align=left bgcolor="#33CCCC">' & @CRLF & '<font color="#000000">%Test1</font>' & @CRLF & '</tr>' & @CRLF & '<tr>' & @CRLF & '<td align=right bgcolor="#33CCCC">å ä ö</td>' & @CRLF & '<td align=left bgcolor="#33CCCC">' & @CRLF & '<font color="#000000">%Test2</font>' & @CRLF & '</tr>' & @CRLF & '<tr>' & @CRLF & '</table>' & @CRLF & '</body>' & @CRLF & '</html>' Local $hOpen = FileOpen($inputFilePath, 2 + 16384) ; $FO_FULLFILE_DETECT (16384) ; $FO_OVERWRITE (2) FileWrite($hOpen, $iHTMLcontent) Return (FileExists($inputFilePath) And FileClose($hOpen) > 0) EndFunc ;==>_Write_Example_HTML Func _FileGetEncoding($iFile) Local $Encoding = FileGetEncoding($iFile) If ($Encoding = 32) Or ($Encoding = 1024) Then Return "[32] UTF16 Little Endian" If ($Encoding = 64) Or ($Encoding = 2048) Then Return "[64] UTF16 Big Endian." If ($Encoding = 128) Then Return "[128] UTF8 (with BOM)." If ($Encoding = 256) Then Return "[256] UTF8 (without BOM)." Return "[512] ANSI" EndFunc ;==>_FileGetEncoding1 point
-
Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Moderation Team1 point
-
Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Moderation Team1 point
-
#include <Array.au3> _ArrayDisplay(_HowToChopSuey()) Func _HowToChopSuey() Local $sCommands1 = 'powershell.exe Get-ChildItem' Local $ArrayB, $sOutput = "", $iPid = run($sCommands1 , @WorkingDir , @SW_SHOW , 0x2) While 1 $sOutput &= StdoutRead($iPID) If @error Then ExitLoop WEnd $aOutput = stringsplit(StringReplace($sOutput, @CR, "") ,@LF , 2) Local $aReturn[UBound($aOutput)][6] For $i=0 To UBound($aOutput) - 1 ; Step 1 ConsoleWrite($i & @TAB & $aOutput[$i] & @CRLF) $aReturn[$i][0] = $i ; or not, no clue $aReturn[$i][1] = StringMid($aOutput[$i], 1, 7) $aReturn[$i][2] = StringMid($aOutput[$i], 14, 11) $aReturn[$i][3] = StringMid($aOutput[$i], 26, 11) $aReturn[$i][4] = StringMid($aOutput[$i], 36, 14) $aReturn[$i][5] = StringMid($aOutput[$i], 51) Next Return $aReturn EndFunc1 point
-
Run PowerShell Get-RDUserSession PowerShell command and get back it's value?
DannyJ reacted to argumentum for a topic
Get-Command : The term 'Get-RDUserSession' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. https://powershelladministrator.com/2015/12/01/get-logged-on-users-and-sessions/ Hope these help.1 point -
I think the mentioned function should do this automatically by calling function _SSNToDate. Just have a look at the source code. If it doesn't then you could call the function yourself.1 point
-
_Timer_SetTimer and AdlibRegister
Burgaud reacted to argumentum for a topic
not really. Use at will I owe you an apology. My assumption was based due to inexperience with timers. The only way to have a reliable timer is with WM_TIMER. So use Adlib unless, you must stop the world. Then, if you must, use _WinAPI_SetTimer/_WinAPI_KillTimer with WM_TIMER as shown in the link above. The reason is described here.1 point -
On Excel 2010 (XLSx File type)
beautifulsoup reacted to Juvigy for a topic
Excel 2010 template is .xltx You can saveas files as .XLSX : $oExcel.ActiveWorkbook.SaveAs ( "c:\filename.xlsx",51,"","",False,False)1 point -
It is already active for *.js , what is the file extension for the file you are working on?0 points