Sign in to follow this  
Followers 0
Schoening

Have i done Right? Adding UDF .. i think

6 posts in this topic

#1 ·  Posted (edited)

So i was in need of this custom udf Fastfind

Melba23

showed me this great article on AutoIt wiki..http://www.autoitscript.com/wiki/Adding_UDFs_to_AutoIt_and_SciTE

and i think i did like it said.. mostly anyway..

I downloaded and unzipped FastFind and placed all files in a new Folder i created in the AutoIt3 Folder

The files i placed in the new Folder: <-- Named it FastFind

Benchmark.au3

FastFind.au3

FastFind.dll

FastFind_Demo.au3

FastFind.dll

I think the Benchmark and FastFind_Demo are just examples.. But i don't think they will Hurt by being in there ? They don't have any Dll to them.. and Even though i am not shure about it.. i think you need the dll to include and call the Custom Files from that folder.

Correct me if i am wrong :)

So after placing the files in the new Folder, i started SciTE --> SciTE Config --> User Include Dir: C:Program Files (x86)AutoIt3FastFind Save+Apply

So can i now #include <fastfind.au3> ? and you the build in functions?

I have not tried this yet because i dont know how to use the custom UDF "syntax?"

Edited by Schoening

Share this post


Link to post
Share on other sites



Also, if you can give any advice on FastFind i would be very happy :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Hi Schoening,

You have got it almost right.

The FastFind.dll is just for the FastFind UDF, most includes/UDF's do not require a DLL.

About the User Include Dir, it does not have to be in the AutoIt directory.

That option in SciTE is there to allow you to keep your includes in a separate directory, or multiple directories, which allows you to manage them more efficient and keeps them save when updating AutoIt.

To include the UDF you should indeed just put the line at the top of your script and use the functions like you normally do.

#include <fastfind.au3>

As an aside, put #include-once at the top of the UDF (FastFind.au3), this ensures the file is only included once even if you explicitly include it more then once.

I am not familiar with the FastFind UDF so I can not help you with that.

I hoop this helps.

Edited by Robjong

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Hi Schoening,

You have got it almost right.

The FastFind.dll is just for the FastFind UDF, most includes/UDF's do not require a DLL.

About the User Include Dir, it does not have to be in the AutoIt directory.

That option in SciTE is there to allow you to keep your includes in a separate directory, or multiple directories, which allows you to manage them more efficient and keeps them save when updating AutoIt.

To include the UDF you should indeed just put the line at the top of your script and use the functions like you normally do.

#include <fastfind.au3>

As an aside, put #include-once at the top of the UDF (FastFind.au3), this ensures the file is only included once even if you explicitly include it more then once.

I am not familiar with the FastFind UDF so I can not help you with that.

I hoop this helps.

Certainly does :) thank you !

Should i also only #include-once if i keep using the Functions of FastFind in a infinite loop?

Edited by Schoening

Share this post


Link to post
Share on other sites

Schoening,

No, #include-once is a directive that is put into #include files to prevent multiple loads. Many UDFS use the more common #include files (such as WinAPI.au3, Array.au3, etc) and this directive prevent multiple loads if the script tries to load the file more than once. You do not need it in your script at all. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Thx ;)

Damn.. So many helpfull people ! All the Good People seem to be concentrated here :) j.k.

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  
Followers 0

  • Similar Content

    • wakillon
      By wakillon
      SciTE Hopper : Jump to Any line by one click and many other helpfull functions !


      As Ashalshaikh suggested me after leaving me the task to continue >SciTE Hopper, i open a new Topic about it.
      It will be more easy for futures updates.

      Many helpfull functions in contextual menu.
      SciTE Hopper is now multipurpose.
      • Color Catcher added
      • BinaryToAu3Kompressor added
      • TinyAu3Search replaced by StringFinder
      • RegJumper added
      • Edit With SciTE added (available in Options)
      • SpecialCharactersViewer added (available in Tray menu)
      New Contextual Menu :

      For a right Click on a function :

      • Copy function name
      • Insert a function header
      • Cut function
      • Copy function
      • Delete function
      • Create a variables List
      • Remove usseless Blank lines
      • Remove Debug lines ( all lines starting with ConsoleWrite or _ArrayDisplay )
      • Set AutoIt Code Layout
      • Remove Comments

      For entire script :

      • Create a functions List
      • Create a variables List
      • Remove usseless Blank lines
      • Remove Debug lines ( all lines starting with ConsoleWrite or _ArrayDisplay )
      • Set AutoIt Code Layout
      • Remove Comments
      • ( Open in SciTE a ) Duplicate of current Script in Temp Dir
      • ( Open in SciTE a ) Duplicate of current Script in Same Dir
      • Explore Parent Script Folder
      • Copy Script name
      • Copy Script path
      • Find Unused Functions
      • Find Unused Variables
      • Set all functions in alphabetic order.( func headers and regions ( in fact, all lines between functions ) are not supported.)

      SciTE Editor New Contextual Menu if SciTE Hopper is added ( in Options ) to SciTE Editor :
      when you made a selection in SciTE Editor you can :

      • Open a Reg Key in Regedit using RegJumper
      • Open a Url in your default Browser
      • Search on google in your default Browser
      • Search on AutoIt Website in your default Browser
      Now Can be added to windows start (minimized)
      Options are available by Tray Menu.
      A double click on tray icon will open clipboard content to SciTE Editor ( Handy when you have copied some code from your browser )

      How to proceed for add SciTE Hopper to SciTE Editor :
      Run Scite Editor, run Scite Hopper ( compiled! ) go to Options and select Add/Remove to SciTE Tab. then click on Add button and it's done !
      Right click on SciTE Editor and choose SciTE Hopper in Contextual Menu for run it when you need it !
      Update of 07 Dec 2017
      TinyAu3Search is replaced by StringFinder

      Previous downloads : 1287
      Script and compiled version are available in the download section
       
      Thanks to Ashalshaikh, Melba23, Th3 MMA, Alzri2, taitel, Manadar, taz742, Yashield, Authenticity, Xenobiologist for their help
      and asdf8 for his >Includes Helper and azjio for his >FileSearch.

      Hope it help you and happy Scripting !

       
    • wakillon
      By wakillon
      For more details go to the Topic
    • JaredStroeb
      By JaredStroeb
      I need to open an application and send it keys in Session 0.  I have exe's working locally, I can see the application open in session 0 through interactive services, but my send commands do not go to the application.  The following article running-autoit-session-0, directs me to use ControlSend() however my application has no controls that can be identified by AutoIt v3 Window Info.  Get All Windows Controls also returned nothing for the application's handle.  
      What are my options?  
      Can this be done with AutoIt?
      Is there a different "relatively simple" library/tool to use? (I am familiar with C# if there is a viable library there )

       
    • Skysnake
      By Skysnake
      Scite comes up occasional, almost incidentally, in some support topics.  I have not found a "Scite" topic in the forums, so this is where I will start.  I have recently been using Scite intensively, specifically with a large project and I have certain issues.  I know that Scite is not an AutoIt product, but it is so closely integrated to the core release that it makes sense to raise issues and request support here.  If this is not the right please refer me to the right forum.
      Thx
       
      Skysnake
    • TrashBoat
      By TrashBoat
      I've messed around in scite theme settings and it left this blue bar , how can i get rid of it?
      Image (imgur)