Jump to content

Recommended Posts

Ok. A good reason to merge my "add both script sources" with your beta. But F7 is not enough. I had once to use the GUI with CTRL+F7 for updating current script.

But there maybe is a little "confusion". Inside current script I get now returned:

#AutoIt3Wrapper_Res_Field=Compile Date|20.02.2018 16:51:28

I thought it is better to have:

#AutoIt3Wrapper_Res_Field=Compile Date|%date% %time%

But then I realized that the Compile Date field inside th PE header is updated, but not inside current au3. But if I do one little change inside wrapper GUI it will add all existing Res_Fields again. The Compile Date with the actual timestamp. Now I do have two of them. So Res_Fields are not updated but added inside current script. (But again: only when running wrapper gui and making some little change.)

I know how to handle that and satisfied. Thanks and regards, Conrad


SciTE4AutoIt = 3.7.3.0   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE     H:\...\AutoIt3      H:\...\AutoIt3\Include     (H:\ = Network Drive)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

Open to change proposals when you feel it can work better. ;)
Just send me the modification back and I will have a look and merge them back into my version in case I agree.

Thanks,
Jos

Share this post


Link to post
Share on other sites

Hi. made some changes. Maybe you will agree:

$INP_FieldValue1 = IniRead($ScriptFile_In & ".ini", "Res", "Field1Value", "") ; #552 reverted back to old one
$INP_FieldValue2 = IniRead($ScriptFile_In & ".ini", "Res", "Field2Value", "") ; #554 reverted back to old one
If $INP_FieldValue1 = "" Then $INP_FieldValue1 = IniRead($AutoIt3WapperIni, "Res", "Field1Value", "") ; #595 reverted back to old one
If $INP_FieldValue2 = "" Then $INP_FieldValue2 = IniRead($AutoIt3WapperIni, "Res", "Field2Value", "") ; #597 reverted back to old one

; #1649ff
For $U = 1 To $INP_Res_FieldCount ; changed order with $INP_FieldName1 & $INP_FieldValue1 & $INP_FieldName2 & $INP_FieldValue2
    If $INP_FieldName[$U] <> "" And $INP_FieldValue[$U] <> "" Then
        $INP_FieldValue[$U] = Convert_Variables($INP_FieldValue[$U])
        $Res_StringTable_Children &= _Res_Create_RTVersion_BuildStringTableEntry($INP_FieldName[$U], $INP_FieldValue[$U])
    EndIf
Next
If $INP_FieldName1 & $INP_FieldValue1 <> "" Then $Res_StringTable_Children &= _Res_Create_RTVersion_BuildStringTableEntry($INP_FieldName1, Convert_Variables($INP_FieldValue1)) ; converting here
If $INP_FieldName2 & $INP_FieldValue2 <> "" Then $Res_StringTable_Children &= _Res_Create_RTVersion_BuildStringTableEntry($INP_FieldName2, Convert_Variables($INP_FieldValue2)) ; converting here

; about #4060ff
If $INP_FieldName1 <> "" Then
    If Not StringInStr($INP_FieldNameEdit, $INP_FieldName1) Then ; excluding if field name is equal
        $INP_FieldNameEdit &= $INP_FieldName1 & " = " & $INP_FieldValue1 & @CRLF
    EndIf
EndIf
If $INP_FieldName2 <> "" Then
    If Not StringInStr($INP_FieldNameEdit, $INP_FieldName2) Then ; excluding if field name is equal
        $INP_FieldNameEdit &= $INP_FieldName2 & " = " & $INP_FieldValue2 & @CRLF
    EndIf
EndIf

Now no duplicates are written to current au3 script and macros like %date% and %time% in wrapper.ini will be written in current au3 script as macros. That's important for me as to see what is inside wrapper.ini.

This I changed too:

; about #4580ff
If $Changes > 0 Then
    __ConsoleWrite('-> ' & $Changes & ' Change(s) made.' & @CRLF)
    ; the whole update routine deleted here and putted after the EndIf
Else
    __ConsoleWrite('-> No changes made..' & @CRLF)
EndIf
...

because I think "Save Only" should update source with wrapper.ini directives - otherwise I have "Cancel" to cancel.

Fixed a missing AU3Check parameter:

'     -w 7      : warn when passing Const or expression on ByRef param(s) (on)' & @CRLF & _ ; ~#4190ff
'     -v 3      : show unreferenced UDFs and global variables (off)'

Conrad


SciTE4AutoIt = 3.7.3.0   AutoIt = 3.3.14.2   AutoItX64 = 0   OS = Win7Pro SP1   OSArch = X64   Language = 0407/german
H:\...\AutoIt3\SciTE     H:\...\AutoIt3      H:\...\AutoIt3\Include     (H:\ = Network Drive)

   88x31.png  Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind.

Share this post


Link to post
Share on other sites

Hello Everyone

Made a new au3 file. It's empty.  Go to Tools > Make UDF Header and I get this in the console...

Function or struct definition not found, unable to insert header.

No Header :(

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\AutoIt\Example_Gui_Child\Gui_child_windows.au3" /UserParams    
+>18:16:03 Starting AutoIt3Wrapper v.18.708.1148.0 SciTE v.4.1.0.0   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\x\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\x\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.5)  from:C:\Program Files (x86)\AutoIt3  input:C:\AutoIt\Example_Gui_Child\Gui_child_windows.au3
+>18:16:03 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\AutoIt\Example_Gui_Child\Gui_child_windows.au3"    
--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
+>18:16:05 AutoIt3.exe ended.rc:0
+>18:16:05 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 3.262

This is a new install.

Am I missing something?

Skysnake

 

 


Skysnake

Why is the snake in the sky?

Share this post


Link to post
Share on other sites

Why are you showing this console output in stead of the output that contains the error?
... but give the current beta version of AutoitTools.lua a try as I think I've fixed this in that version.

Jos

Share this post


Link to post
Share on other sites

Comments on the Beta.

Beta documentation refers to version 3.3.16.0 (xxxx, xxxx) (Release)

\Beta\AutoIt.chm::/html/history.htm

version 3.3.15.0 MIA?

 

My problem with creating a Header inside a new au3 file using the Scite shortcut returns the same console message as above.  I think this is a Scite config issue...  As far as I can tell, everything else works fine :)

Thx


Skysnake

Why is the snake in the sky?

Share this post


Link to post
Share on other sites

Click the link in my post to get the file as it is NOT in the AutoIt3 Beta directory but in the SciTE4AutoIt3 !

Jos

Share this post


Link to post
Share on other sites

Master,

I did the following

  1. Clicked link in your post
  2. Copied content
  3. Search AutoIt\Scite for the relevant file
  4. Found it, opened it with NotePad++
  5. Pasted content
  6. Saved as Administrator
  7. Restarted

When I use the Windows right-click context menu to create a new au3 file it correctly creates a script header

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.15.0 (Beta)
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

But when I click Make UDF Header, I still get this message

Function or struct definition not found, unable to insert header.

  Guidance please?


Skysnake

Why is the snake in the sky?

Share this post


Link to post
Share on other sites

You do have to place your cursor on a FUNC line for this option to work!
If will create a header based on what it finds on the Func XYZ($param) line.

Jos

 

Edited by Jos

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

  • Similar Content

    • By nooneclose
      Good morning, I am trying to figure out if it is possible to check if these invoice lines exist or not. 
      Here are the table and column name: INVOICELINE.INVOICELINENUM (a required field if created)
      Here is a picture of what I am talking about. (Do not worry about security. the picture is from a demo test site so all information is fake)
       
      is there any way to check if these fields exist or not? (they do not exist unless the user clicks on "New Row")
      Example: line 11 does not exist right now. How would I go about to see if it did or not? 
      This is what I have so far:
      SELECT DISTINCT iv.invoicenum, iv.description FROM invoice AS iv JOIN invoiceline AS ivl ON iv.invoicenum = ivl.invoicenum AND iv.siteid = ivl.siteid /* = 'nothing' and yet somehow not null? */ WHERE iv.invoicenum NOT IN (SELECT invoicelinenum FROM invoiceline WHERE invoicelinenum IS NOT NULL) I get 0 results where I should get more than 0. 
    • By Kruxe
      Hello Everyone,
      I am very green when it comes to AutoIT, I have recently started using it to automate a job that i perform using MS Excel and that is working great. Recently I have been faced with a challenge I which i need to copy a specific set of lines from one .txt file and past them, overwriting a specific set of lines in a different .txt file. I honestly have no clue how I can copy the specified lines and transfer them. What functions / commands could I use and how could I lay them out I AutoIT? Any and all help will be appreciated. 
      Thanks!
      Kruxe
    • By Saravanan2213
      Hi everyone,
      i just need your help. i have script for cleaning browsing history and other unwanted file but the problem is i don't want to see the GUI i have attached below. It should not show anything on the screen. is it possible to do it in autoit. thanks in advance.
       
      So for i have tried flag
      Run("rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 255", "", @SW_HIDE)
      @SW_DISABLE
       
      Looking forward your help.........

    • By AutoitMike
      Scite 3.4.4
      Win 10
      I click "Help" or press F1, there is no response
      If I use the file explorer and double click Autoit.chm or Autoit3.chm help opens.
      There is no dialog to check or uncheck "Always ask before opening this file" when clicking on these files.
       
      If you are curious as to why I dont have the latest version, I am creating a back up laptop that has a VERY extensive automation application that I have written over the past 15 years.
       
      An extremely potent, powerful, needed function has been deleted in the upgrade of Autoit in recent years that I can not do without. If my main laptop dies, which it almost did, I am in a very bad position. So I bought the exact same laptop and I am "cofiguring" it to work exactly the same as my main laptop. However, this one has been "Upgraded" to Win 10 which I hope is not the problem. 
      Thanks for any help
    • By cptHark
      Hello I want to conect to a Network with DriveMapAdd.
      This worked just fine but when you restart the Computer the Mapped drive is gone.
      So i used the persistent mapping flag and that seemed to work, too.
      However when the Computer is restarted I cant connect to the Network because it doesnt remember the Username and password I ave it the first time.
      How do I fix this?
      My Code:Func
      setdrivem()
          DriveMapAdd("M:", GUICtrlRead($driveM),1, GUICtrlRead($netzuser),GUICtrlRead($netzpassword) )
      EndFunc
      $netzuser and $netzpassword are set earlier in the gui and it works right after executing the script but i want it to stay connected
×
×
  • Create New...