Jump to content
Sign in to follow this  
johnmcloud

F1 (Help) - Bug

Recommended Posts

johnmcloud

Hi guys,

I have just update to the new version of autoit, 3.3.8.0

On my virtual system ( Windows XP SP3 ) i have noticed that I can not open the Help ( F1 ) when I click on a function. If i open the guide from start menù working fine.

I have try to:

1) Save the file .au3

2) Install Full Scite ( EDIT: Full Scite work )

3) Use the portable version by guinness

4) Use the zipped version of autoit-v3-sfx

With the previus version ( 3.3.6.0 ) i don't have this problem. It's really annoying.

EDIT: Tested again to make sure:

1) Install v.3.3.6.0 --> Save .au3 with a function --> Guide work

1) Install v.3.3.6.1 --> open the same .au3 --> Guide work

2) Install v.3.3.8.0 --> open the same .au3 --> Guide NOT work

It's a virtual machine, so no previus installation on it. Every installation on a clean machine.

It's a problem of the new version.

Thanks for support

Edited by johnmcloud

Share this post


Link to post
Share on other sites
Jos

Run the below script in the setup that doesn't work and cut&paste the generated output back into this thread to see what is happening:

Opt("WinSearchChildren", 1)
#AutoIt3Wrapper_UseX64=n
Global $WM_COPYDATA = 74
Global $SciTECmd
; Get SciTE DirectorHandle
$Scite_hwnd = WinGetHandle("DirectorExtension")
; Get My GUI Handle
Global $My_Hwnd = GUICreate("AutoIt3-SciTE interface")
;Register COPYDATA message.
GUIRegisterMsg($WM_COPYDATA, "MY_WM_COPYDATA")
;
ConsoleWrite("+ Check Helpfile properties settings:" & @CRLF)
SendSciTE_Command($My_Hwnd, $Scite_hwnd, "askproperty:SciteDefaultHome")
$SciTEHome = StringReplace(StringMid($SciTECmd, StringInStr($SciTECmd, "stringinfo:") + 11), "\\", "\")
SendSciTE_Command($My_Hwnd, $Scite_hwnd, "askproperty:command.help.$(au3)")
SendSciTE_Command($My_Hwnd, $Scite_hwnd, "askproperty:command.help.subsystem.$(au3)")
ConsoleWrite("+ autoit3.chm Exists check:" & FileExists($SciTEHome & "\..\autoit3.chm") & @CRLF)
ConsoleWrite("+ Autoit3Help.exe Exists check:" & FileExists($SciTEHome & "\..\Autoit3Help.exe") & @CRLF)
ConsoleWrite("+ Run ""Autoit3Help.exe StringInstr"" Test." & @CRLF)
Run('"' & $SciTEHome & '\..\Autoit3Help.exe" "StringInstr"')
;
; Send command to SciTE
Func SendSciTE_Command($My_Hwnd, $Scite_hwnd, $sCmd)
Local $My_Dec_Hwnd = Dec(StringRight($My_Hwnd, 8))
$sCmd = ":" & $My_Dec_Hwnd & ":" & $sCmd
ConsoleWrite('-->' & $sCmd & @LF)
Local $CmdStruct = DllStructCreate('Char[' & StringLen($sCmd) + 1 & ']')
DllStructSetData($CmdStruct, 1, $sCmd)
Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr')
DllStructSetData($COPYDATA, 1, 1)
DllStructSetData($COPYDATA, 2, StringLen($sCmd) + 1)
DllStructSetData($COPYDATA, 3, DllStructGetPtr($CmdStruct))
DllCall('User32.dll', 'None', 'SendMessage', 'HWnd', $Scite_hwnd, _
   'Int', $WM_COPYDATA, 'HWnd', $My_Hwnd, _
   'Ptr', DllStructGetPtr($COPYDATA))
EndFunc   ;==>SendSciTE_Command
; Received Data from SciTE
Func MY_WM_COPYDATA($hWnd, $msg, $wParam, $lParam)
Local $COPYDATA = DllStructCreate('Ptr;DWord;Ptr', $lParam)
$SciTECmdLen = DllStructGetData($COPYDATA, 2)
Local $CmdStruct = DllStructCreate('Char[' & $SciTECmdLen + 1 & ']', DllStructGetData($COPYDATA, 3))
$SciTECmd = StringLeft(DllStructGetData($CmdStruct, 1), $SciTECmdLen)
ConsoleWrite('<--' & $SciTECmd & @LF)
EndFunc   ;==>MY_WM_COPYDATA
Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
johnmcloud

Thanks Jos.

I have copy-paste your script in Scite and click "Compile"

With Basic Scite give me this error:

>C:program filesautoit3autoit3.exe "C:Documents and SettingsWindows XpDesktopTest.au3"
'C:program' is not recognized as an internal or external command,
operable program or batch file.
>Exit code: 1 Time: 0.203

With Full Scite:

>"C:ProgrammiAutoIt3SciTEAutoIt3WrapperAutoIt3Wrapper.exe" /ShowGui /in "C:Documents and SettingsWindows XpDesktopTest.au3"
+>11:27:05 Starting AutoIt3Wrapper v.2.1.0.8    Environment(Language:0410  Keyboard:00000410  OS:WIN_XP/Service Pack 3  CPU:X64 OS:X86)
-> No changes made..
>Exit code: 0   Time: 1.617

I have start the script and now the help work, but the help work only if SciteFull is installed, for the basic version don't work, as you can see. I don't understand why say "No changes made..", before don't work.

Thanks again for support

EDIT: So the result is:

3.3.8.0 (autoit-v3-setup) --> Help NOT work

3.3.8.0 (SciTE4AutoIt3) --> Help work ( don't need any fix, my mistake )

3.3.6.1 (autoit-v3.3.6.1-setup) --> Help work

3.3.6.1 (SciTE4AutoIt3) --> Help work

3.3.6.0 (autoit-v3.3.6.0-setup) --> Help work

3.3.6.0 (SciTE4AutoIt3) --> Help work

The problem is only with basic version of SciTe ( autoit-v3-setup) in v3.3.8.0. The basic version of v3.3.6.0/v3.3.6.1 (autoit-v3.3.6.0-setup - autoit-v3.3.6.1-setup) the help working by clicking on a function, only with the basic SciTe of v3.3.8.0 not work.

Edited by johnmcloud

Share this post


Link to post
Share on other sites
Jos

You need to run it from the Full SciTE install with F5 and then there should be info in the SciTE Outputpane.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
johnmcloud

>"C:ProgrammiAutoIt3SciTEAutoIt3WrapperAutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:Documents and SettingsWindows XpDesktopTestFi.au3" /UserParams  
+>12:01:14 Starting AutoIt3Wrapper v.2.1.0.8    Environment(Language:0410  Keyboard:00000410  OS:WIN_XP/Service Pack 3  CPU:X64 OS:X86)
>Running AU3Check (1.54.22.0)  from:C:ProgrammiAutoIt3
+>12:01:14 AU3Check ended.rc:0
>Running:(3.3.8.0):C:ProgrammiAutoIt3autoit3.exe "C:Documents and SettingsWindows XpDesktopTestFi.au3"  
+ Check Helpfile properties settings:
-->:393586:askproperty:SciteDefaultHome
<--:393586:macro:stringinfo:C:ProgrammiAutoIt3SciTE
-->:393586:askproperty:command.help.$(au3)
<--:393586:macro:stringinfo:$(SciteDefaultHome)..Autoit3Help.exe "$(CurrentWord)"
-->:393586:askproperty:command.help.subsystem.$(au3)
<--:393586:macro:stringinfo:2
+ autoit3.chm Exists check:1
+ Autoit3Help.exe Exists check:1
+ Run "Autoit3Help.exe StringInstr" Test.
+>12:01:15 AutoIT3.exe ended.rc:0
>Exit code: 0   Time: 1.978

It's open the guide with StringInStr. The problem is with basic Scite, the guide with full version working fine

Edited by johnmcloud

Share this post


Link to post
Share on other sites
Jos

It's open the guide with StringInStr. The problem is with basic Scite, with full version working fine

Forget about Basic SciTE to work at this moment. I have done several modification for the upcoming release, but the current version will not work in none English or X64 environment as it hardcodes the Path to "c:program filesAutoit3".

Since you have an Italian installation, it won't work.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
johnmcloud

If i change the install dir to "C:Program FilesAutoit3" the guide working also on basic version, so it's only a path problem

So i need to wait a new version or install into this dir for the moment, or install the full Scite

Edited by johnmcloud

Share this post


Link to post
Share on other sites
Jos

If i change the install dir to "C:Program FilesAutoit3" the guide working also on basic version, so it's only a path problem

So i need to wait a new version or install into this dir for the moment, or install the full Scite

Correct, or you can use this version of SciTE-Lite which will be in the next AutoIt3 installer. Just run the AutoIt3 installer and replace SciTE with this version. Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
johnmcloud

Thanks for you help.

Just for curiosity, when will be released the next version?

Share this post


Link to post
Share on other sites
Jos

Thanks for you help.

Just for curiosity, when will be released the next version?

I will be releasing a new SciTE4AutoIt3 installer soon with the new SciTE v 3.xx after testing is successful, but have no idea when the next production version of AutoIt3 will be release.

So, did the Beta version of SciTE lite work for you when you have just AutoIt3 installed?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
johnmcloud

So, did the Beta version of SciTE lite work for you when you have just AutoIt3 installed?

Jos

No, give me error.

"Impossible to find MSVCR100D.dll etc..."

Share this post


Link to post
Share on other sites
Jos

No, give me error.

"Impossible to find MSVCR100D.dll etc..."

Guess I copied the wrong (debug) version... could you give it a try again with the current version?

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
johnmcloud

Guess I copied the wrong (debug) version... could you give it a try again with the current version?

Yes, work, i have instllaed the wrong version yesterday ( the setup has the same name for both version :) )

The Help work fine now

Thanks Jos for support, hope the new version coming soon.

Edited by johnmcloud

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
Sign in to follow this  

  • Similar Content

    • SC0U7
      By SC0U7
      Hello i have a text file which contain over 600KB of BASE64 strings like :
      TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA...
      Now what i need is divide this long string as autoit variable each max lenght (4000characters per line) example:
      Local $var
      $var &=  TVqQAAMAAAAEAAA..
      $var &=  VbAmejwqqqAACEE..
      and then how to i add encrypt function on every line ? how to i can xor it? example final will be :
      $var &=  XorEnc(TVqQAAMAAAAEAAA..)
      $var &=  XorEncVbAmejwqqqAACEE..)
       
      Thanks for any help and ideas 
    • VollachR
      By VollachR
      Hi,
      I'm looking for a way to take a number value from a Row2 of a 2D array and according to this check if files that appear in rows 3-11 in the array exists.
      For example, if the number in Row2 is 5 I need to check for the files in Row 3-6 only, if it is 6 than rows 3-7 and so on.
      I thought on using a FOR loop but I have very little experience with those.
      Can you suggest the best way to do what I need?
      BTW, the files in Rows 3-11 will usually have blank value for any row above the number in Row2 (e.g. Row2 = 5 so Rows3-6 will have values but 8-11 be empty), The values I need are in Column 1 of the array, the name of the key from the INI file that the array was created from is in Column 0.
      Full Example:
      Row2 of Array:
      Col0 = Games# - Col1 = 5
      Rows3-6
      Col0 = Exe2 - Col1 = Path To File
      Col0 = Exe3 - Col1 = Path To File
      Col0 = Exe4 - Col1 = Path To File
      Col0 = Exe5 - Col1 = Path To File
      I need that if Row2 is 5 to check these above for rows if the file exists, if it was 6 then the next row as well and so on up until number 10 in Row2 as it can't go above 10.
      So basically for whatever number in Row2 from 2-10 need to check 1-9 rows from 3-11 to see if the files in Col1 exists and if any of them don't exist it should call a function that shows an error message.
      I'm pretty sure I have the first line of the for look correct:
      For $i = 1 To $aAIO[2][1] Just not sure how to continue from there, also not sure if $i should be equal 1 or 2.
      Help will be appreciated.
    • VollachR
      By VollachR
      Hi,
      I've written a specialty INI file editor for a specific set of INI files related to a bigger script I'm working on.
      I'm trying to create a verification script that checks the ini files structure and format and gives an error if they are not in expected format.
      What I did so far is create a couple of custom arrays, each with the list of Sections expected in the files and I use IniReadSectionNames in order to read the sections from the selected INI file and compare it to the array.
      It works fine, excepts it only gives an error if one or more of the sections in the custom array is missing, if they all exist but there are other additional sections that shouldn't be there it doesn't give an error and continue to open the editor screen.
      Here are the relevant part of my script:
      The Custom Verification Arrays:
      ;Creating Arrays for INI Verification Global $aSettingsVerify[7] $aSettingsVerify[1] = "Conversion" $aSettingsVerify[2] = "AIO" $aSettingsVerify[3] = "Data" $aSettingsVerify[4] = "Redist" $aSettingsVerify[5] = "Split" $aSettingsVerify[6] = "Autorun" Global $aDataVerify[6] $aDataVerify[1] = "Compression" $aDataVerify[2] = "Exclude" $aDataVerify[3] = "LangExclude" $aDataVerify[4] = "PreCommands" $aDataVerify[5] = "PostCommands" The IniReadSectionNames verification part:
      Case $OK If StringInStr($ActiveConfig, "Settings.ini") Then $CheckArray1 = IniReadSectionNames($ActiveConfig) $CheckArray2 = _ArrayCompare($aSettingsVerify, $CheckArray1) $CheckArray3 = UBound($CheckArray2, 1) If $CheckArray3 = 1 Then GUIDelete($ConfigStart) SettingsGUI() EndIf If $CheckArray3 > 1 Then WrongIni() EndIf EndIf If StringInStr($ActiveConfig, "Data") Then $CheckArray1 = IniReadSectionNames($ActiveConfig) $CheckArray2 = _ArrayCompare($aDataVerify, $CheckArray1) $CheckArray3 = UBound($CheckArray2, 1) If $CheckArray3 = 1 Then GUIDelete($ConfigStart) DataGUI() EndIf If $CheckArray3 > 1 Then WrongIni() EndIf EndIf The Function that performs the compare: (Found it in another thread on this forums somewhere by using Google Search)
      ;Compares Imported INI file with the Verification array Func _ArrayCompare(ByRef $a1, ByRef $a2) Local $nOldSize = UBound($a2) Local $a3[$nOldSize], $nNewSize = $nOldSize For $i = 0 To UBound($a1) - 1 For $j = 0 To $nOldSize - 1 If Not $a3[$j] And ($a1[$i] = $a2[$j]) Then $a3[$j] = 1 $nNewSize -= 1 EndIf Next Next Local $a4[$nNewSize], $j = 0 For $i = 0 To $nOldSize - 1 If Not $a3[$i] Then $a4[$j] = $a2[$i] $j += 1 EndIf Next Return $a4 EndFunc ;==>_ArrayCompare  
      Any way to make a check if there are sections other than the ones in the Verification Array and produce an error?
      Thanks
    • VollachR
      By VollachR
      Hi,
      I'm using _FileListToArray to create an array listing .ini files in a specific folder, problem is, I want only the file named Settings.ini and any Files named Data#.ini where # is actually a number, I don't want any other .ini file that may be there even though it shouldn't be there to be included in the array.
      Is it possible to use multiple filters in _FileListToArray? or is there another way to do what I'm looking for?
      My current code:
      $IniList = _FileListToArray(@ScriptDir & "\Settings", "*.ini", 1, False) _ArraySort($IniList, 1, 1) _ArraySort($IniList, 0, 2) $IniOptions = _ArrayToString($IniList, "|", 1)  
      Thank you.
    • VollachR
      By VollachR
      Hi,
      I'm creating a tool to edit some ini files that belong to a program I'm working on...
      Basically everything work fine except I can't find a way to check if the if the WriteIniSection operation was successful...
      For Example, let's say the INI file is by mistake or some other reason Read Only, or the user don't have the right permission to write to the file or the folder it's in... Right now, in such a case The INI file, as expected, won't get updated, but I when I perform an if error or if not error checks I always get the msgbox for the if not error.
      Here's the relevant code part:
       
      IniWriteSection(@ScriptDir & "\Settings\Settings.ini", "Conversion", $aConversion, 1) IniWriteSection(@ScriptDir & "\Settings\Settings.ini", "AIO", $aAIO, 1) IniWriteSection(@ScriptDir & "\Settings\Settings.ini", "Data", $aData, 1) IniWriteSection(@ScriptDir & "\Settings\Settings.ini", "Redist", $aRedist, 1) IniWriteSection(@ScriptDir & "\Settings\Settings.ini", "Split", $aSplit, 1) IniWriteSection(@ScriptDir & "\Settings\Settings.ini", "Autorun", $aAutorun, 1) If Not @error Then MsgBox($MB_ICONINFORMATION, "Success", "Settings.ini Saved Successfully") Else If @error Then MsgBox($MB_ICONERROR, "Failure", "Settings.ini Could Not Be Saved!" & @CRLF & @CRLF & "Please Check If The File Is ReadOnly And That You Have Permission To Change It Or Its Location") EndIf EndIf  
      How can I perform a check to see if the ini file was written to successfully?
      Thanks.
×