Jump to content

Recommended Posts

Posted
  On 10/7/2018 at 2:55 AM, argumentum said:

I have a request: to add ["Language Neutral", "0000"]

Expand  

never mind. Based on https://docs.microsoft.com/en-us/windows/desktop/intl/language-identifier-constants-and-strings I'm using 0x1000 now and it works with the script by just adding the country code to the array.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Developers
Posted

So you've changed it something like this? :

Func Language_Code(ByRef $code, ByRef $CountryTable, ByRef $Country, $task = 1)
    Local $CountryArray[120][2] = [["Neutral", "0000"],["Afrikaans", "1078"],

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)
  On 10/7/2018 at 8:36 AM, Jos said:

something like this? :

Expand  

Nope. the 0x0000 don't work as the code interprets a zero as a missing value. So I used 0x1000

Func Language_Code(ByRef $code, ByRef $CountryTable, ByRef $Country, $task = 1)
    Local $CountryArray[121][2] = [["Afrikaans", "1078"], ["Albanian", "1052"], ["Arabic (Algeria)", "5121"], ["Arabic (Bahrain)", "15361"], _
    , ....... , ["Zulu", "1077"], ["Language Neutral", "1000"]]

Also added some variables I wanted:

; way up close to the top:
Global $g__FileVersion = VerMinuteOfMonth() ; mod. by argumentum
__ConsoleWrite("--- VerMinuteOfMonth >" & $g__FileVersion & "<" & @CRLF) ; mod. by argumentum

; then, lower down
Func VerMinuteOfMonth() ; mod. by argumentum
    $g__FileVersion = Int(@YEAR) & "." & Int(@MON) &"."& Int(_DateDiff("n", @YEAR & "/" & @MON & "/01 00:00:00", @YEAR & "/" & @MON & "/" & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC))
    Return $g__FileVersion
EndFunc

Func Convert_Variables($I_String, $text = 0)
    $I_String = StringReplace($I_String, "%scriptver%", $g__FileVersion) ; mod. by argumentum
    $I_String = StringReplace($I_String, "%YYYY.M.H%", $g__FileVersion) ; mod. by argumentum
    $I_String = StringReplace($I_String, "%YYYY.M.D%", Int(@YEAR)&"."&Int(@MON)&"."&Int(@MDAY)) ; mod. by argumentum

where I'd add like #AutoIt3Wrapper_Res_Fileversion=0.%scriptver% and that would build a timestamp that is very human readable  then use it as in

#AutoIt3Wrapper_Run_After="md "%scriptdir%\Versions" "
#AutoIt3Wrapper_Run_After="copy /Y "%scriptfile%_stripped.au3" "%scriptdir%\Versions\%scriptfile%_%scriptver%_SourceStripped.au3" "

and things like

If Not StringInStr($INP_Fileversion, "%") And $INP_Fileversion <> "" Then $INP_Fileversion = Valid_FileVersion($INP_Fileversion) ; mod. by argumentum

as to not replace the variable with the variable's value, after updating the script once compiled/saved. There are more tweaks ( not very elegant tho ) =)

My patch of the script is not a "most awesome", but is functional without having to bug you for my custom requests.

PS: I can give you the modded file if you'd like to look at it. I made a point to add "mod. by" on each area I've touched.

PS2: 

#AutoIt3Wrapper_Run_Au3Stripper=y
#Au3Stripper_Parameters=/MO
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_ProductName=%scriptfile%.exe

on my tweaks, to avoid replacing ProductName=%scriptfile%.exe by it's value, the entry falls bellow the #region =/

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

Why CTRL+F6 is not run AU3Info any more ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 10/10/2018 at 10:55 AM, mLipok said:

Why CTRL+F6 is not run AU3Info any more ?

Expand  

That never worked, but rather Ctrl+Shift+F6, which indeed is broken! 

Current config in au3.properties:

# 06 AU3Info program
command.6.$(au3)="$(SciteDefaultHome)\..\AutoIt3.exe" "$(SciteDefaultHome)\AutoIt3Wrapper\AutoIt3Wrapper.au3" /AU3info
command.name.6.$(au3)=AU3Info
command.shortcut.6.$(au3)=Ctrl+Shif+F6
command.subsystem.6.$(au3)=2
command.save.before.6.$(au3)=2
command.quiet.6.$(au3)=1

Which indeed is wrong now....   spot the issue?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

should be

command.shortcut.6.$(au3)=Ctrl+Shift+F6

instead

command.shortcut.6.$(au3)=Ctrl+Shif+F6

there is lack of letter "t" in word "Shift"

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 2 weeks later...
Posted (edited)

hmm.
Was there other change in SciTE v 4.1.2 which leed to this following problem:

Try this snippet:

#AutoIt3Wrapper_Run_Au3Check=Y
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7


_Example('Test')

Func _Example($test)
EndFunc   ;==>_Example

when you notice:

  Quote

c:\....\JumpInLine.au3"(7,20) : warning: $test: declared, but not used in func.
Func _Example($test)
~~~~~~~~~~~~~~~~~~~^
c:\....\JumpInLine.au3 - 0 error(s), 1 warning(s)

Expand  

Just hit F4 and you should be moved to line 7 and column 20
but SciTE move cursor to line 7 column 1

I also have the same problem with:

#include <Array.au3>

_Example()

Func _Example()
    MsgBox(0, '', StringRegExp(@AutoItExe, '.+\\', $STR_REGEXPARRAYMATCH)[0] & "Include\Array.au3")
    _SciTE_OpenFile(StringRegExp(@AutoItExe, '.+\\', $STR_REGEXPARRAYMATCH)[0] & "Include\Array.au3")
    _SciTE_GoTo(5, 10)
EndFunc   ;==>_Example

Func _SciTE_OpenFile($sFileFullPath)
    $sFileFullPath = StringReplace($sFileFullPath, "\", "\\")
    Local $vRet = __SciTE_SendCommand('open:' & $sFileFullPath)
    Return SetError(@error, @extended, $vRet)
EndFunc   ;==>_SciTE_OpenFile

Func _SciTE_GoTo($iLine, $iColumn)
    Local $vRet = __SciTE_SendCommand("goto:" & $iLine & ":" & $iColumn)
    Return SetError(@error, @extended, $vRet)
EndFunc   ;==>_SciTE_GoTo

Func __SciTE_SendCommand($sCommand)
    Opt("WinSearchChildren", 1)
    ; Get SciTE DirectorHandle
    Local $SciTE_hwnd = WinGetHandle("DirectorExtension")
    Local $CmdStruct = DllStructCreate('Char[' & StringLen($sCommand) + 1 & ']')
    DllStructSetData($CmdStruct, 1, $sCommand)
    Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr')
    DllStructSetData($COPYDATA, 1, 1)
    DllStructSetData($COPYDATA, 2, StringLen($sCommand) + 1)
    DllStructSetData($COPYDATA, 3, DllStructGetPtr($CmdStruct))
    Local $WM_COPYDATA = 74
    DllCall('User32.dll', 'None', 'SendMessage', _
            'HWnd', $SciTE_hwnd, _
            'Int', $WM_COPYDATA, _
            'HWnd', 0, _
            'Ptr', DllStructGetPtr($COPYDATA) _
            )
EndFunc   ;==>__SciTE_SendCommand

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted (edited)

Looks like this is an issue since version of SciTE since v 3.6 (2015) so broken for about 3 years already..... funny nobody noticed including me. :)

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

I'm unsure how many people use VisualUIAVerify for finding UI attributes for UI automation, but if you're in Hover Mode for it and move to SciTE, it crashes with code 1.

 

fail.png

Posted

You, me, and entire AutoItForum community.

I just checked here:
https://www.scintilla.org/SciTEDoc.html

goto: line number[,column number]

So solution was to change:
 

__SciTE_SendCommand("goto:" & $iLine & ":" & $iColumn)

to:

__SciTE_SendCommand("goto:" & $iLine & "," & $iColumn)

but using: 

_SciTE_GoTo(5, 10)

is jumping to Col=30

And answer for this I found here:

https://sourceforge.net/p/scintilla/bugs/516/

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 10/18/2018 at 7:34 PM, mLipok said:

You, me, and entire AutoItForum community.

Expand  

I know.. :)

I had actually fixed that way back when but with one of the merges this change was lost. Have it now better marked in the source so should be fine going forward.
Try the current Beta.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted (edited)
  On 10/18/2018 at 7:33 PM, Zein said:

I'm unsure how many people use VisualUIAVerify for finding UI attributes for UI automation, but if you're in Hover Mode for it and move to SciTE, it crashes with code 1.

Expand  

No idea as I am not using this. So does the original SciTE distributed by Neil also have this issue or is it just my version?

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted
  On 10/18/2018 at 7:42 PM, Jos said:

No idea as I am not using this. So does the original SciTE distributed by Neil also have this issue or is it just my version?

Jos

Expand  

I will check when I get home and get back to you on that. 

Posted
  On 10/18/2018 at 7:40 PM, Jos said:

Try the current Beta.

Expand  

Currently I'm using version from here:

https://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/SciTE.exe

from 2018-10-01 13:07

Do you plan to update them or you wanted to be sure which version I use ?

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 10/18/2018 at 8:04 PM, Jos said:

They are there now.... 10/18  21:19

Expand  

Checked ... fixed.

Thanks.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 2 weeks later...
  • Developers
Posted (edited)

There is an update for AutoIt3Wrapper v18.708.1148.5 available in Beta which: 

  Quote

    - 18.708.1148.5 Added logic to be able to display Console Output of script that have #RequireAdmin while SciTE runs at normal level.

Expand  

This is one of those other many requested features that wasn't possible till now. Let me know when there are questions.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted (edited)

There is an update for AutoIt3Wrapper v18.708.1148.6 available in Beta which

- 18.708.1148.5 Added logic to be able to display Console Output of script that have #RequireAdmin while SciTE runs at normal level.
- 18.708.1148.6 Also allows to Stop Execution or Restart for  #RequireAdmin while SciTE runs at normal level. 
                It won't hang anymore when you reply No on the UAC and detect the elevated process didn;t start.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...