DonationCoder.com Forum

DonationCoder.com Software => Find And Run Robot => Mouser's Zone => FARR Plugins and Aliases => Topic started by: Perry Mowbray on September 21, 2009, 10:54 AM

Title: FARR Plugin: AMPL [updated to version 0.6.2]
Post by: Perry Mowbray on September 21, 2009, 10:54 AM
AMPL is a FARR2 Plugin that will generate, manage and run specialized AutoHotKey scripts: Built with the latest version of FScript [1.20]!!

Note: This is still a beta release as there are still (not too serious) rough edges and functions not implemented, but I thought it was at a point that others (apart from CleverCat) could have a bash at and offer feed back if so inclined.

What's changed with 0.6.2?
Updating? If updating from 0.6.1, dcUpDater files should work fine, otherwise delete existing AMPL directory (saving any scripts) and download: [ You are not allowed to view attachments ]
What's changed with 0.6.1?

What changed with 0.6.0?

Requirements: AutoHotKey must be installed (otherwise you wouldn't want this anyway, would you?  :huh: )

My initial aims in writing AMPL were to create a framework where scripts were easy to set up and run, especially for users who are not programmers. Although AHK is an easy and powerful scripting language, the amount of work to set up a simple script to run a couple of programmes put me off most of the time. So initially I wanted:

...and it's probably grown a little from those humble beginnings.

A is for AutoHotKey
M is for Multiple
P is for Programme
L is for Launcher

There are essentially three parts to AMPL:
1. The FARR AMPL plugin: doorway to create, run & edit scripts.
2. The AMPL Script Editor: the easy way to edit scripts.
3. The AMPL Recorder: an integrated way to record Screen activity.

AMPL Plugin
The default shortcut to initiate AMPL is am. Typing am in the FARR window will list the sub-commands:
[ You are not allowed to view attachments ]

Typing am <string> will list the scripts that match the <string> search. Selecting one will run the script.

AMPL Script Editor
The Script Editor enables the creation of the Script's steps, each step can run a programme and/or AHK code. AMPL Script Editor comes in two flavours:
Normal
[ You are not allowed to view attachments ]

Simple
[ You are not allowed to view attachments ]

AMPL Recorder
AMPL Recorder will record Screen activity: Keyboard, Mouse Clicks, Windows, Window Controls, Mouse Movement
[ You are not allowed to view attachments ]

AMPL Recorder has a recording window where what is recorded in the script can be changed on the fly:
[ You are not allowed to view attachments ]

AMPL Recorder can also be invoked in "Record and Edit" mode from FARR. When you stop recording (by clicking the button, or even better for your script: F12 hotkey), the script will be loaded into Script Editor.
[ You are not allowed to view attachments ]

Installation
Download AMPL package
Plugin Initialization

Usage
In FARR type am for a full list of options.

I've included HelloWorld that can be run, edited, etc.:

The ScriptEditor help file that contains a lot of hopefully helpful information. The Help file can be downloaded in html format (separated because of the size), or the chm version can be accessed through the ScriptEditor. It contains a couple of "tutorials" on how to create AMPL Scripts:

So there you go: caution - this is certainly not a finished product (but I am using it daily), so use with some caution and understanding.

All comments appreciated  :)

Title: Re: FARR Plugin: AMPL [beta version 0.5.0]
Post by: Perry Mowbray on September 21, 2009, 11:27 AM
That's auspicious: this is the 20,000 topic in the forum!  :-\
Title: Re: FARR Plugin: AMPL [beta version 0.5.0]
Post by: mouser on September 21, 2009, 02:18 PM
wow  :-*
Title: Re: FARR Plugin: AMPL [beta version 0.5.0]
Post by: cranioscopical on September 21, 2009, 04:59 PM
Hi Perry,

You have begun a noble endeavour!

Here's a trifle:
[ You are not allowed to view attachments ]
Presumably, most who use this will have opted for default installations of Farr but...
I took a quick glance at the files before posting this but didn't immediately spot where I can modify the path.
The includes are in the AMPL folder but my copy of FARR isn't where AMPL thinks it is.

Think of this as entertainment  ;)
Title: Re: FARR Plugin: AMPL [beta version 0.5.0]
Post by: cranioscopical on September 21, 2009, 06:12 PM
Sorry, found what I needed in ...\FARR\Plugins\AMPL\Scripts\HelloWorld.ahk.
I was looking higher up the file tree.

[ You are not allowed to view attachments ]

Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: Perry Mowbray on September 24, 2009, 09:28 AM
Here's a trifle: (see attachment in previous post (https://www.donationcoder.com/forum/index.php?topic=20000.msg178192#msg178192))Presumably, most who use this will have opted for default installations of Farr but...
I took a quick glance at the files before posting this but didn't immediately spot where I can modify the path.
The includes are in the AMPL folder but my copy of FARR isn't where AMPL thinks it is.

Good point: I should have said that if FARR isn't in C:\Program Files\ Then you'll need to edit and save the script first.

Ta.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: mouser on September 26, 2009, 11:38 AM
you know.. this very cool plugin immediately came to mind when someone on irc asked about the possibility of a farr plugin that could record and playback keyboard "Macros"..

i wonder if AMPL might be extended some day to support recording keyboard macros as ahk scripts.. the really cool part about this is that they could be easily edited later and AMPL already has all the infrastructure for searching and launching them.. and i wonder if another ahk coder hasn't already made such a macro recording ahk script that could be used.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: Perry Mowbray on September 26, 2009, 11:04 PM
you know.. this very cool plugin immediately came to mind when someone on irc asked about the possibility of a farr plugin that could record and playback keyboard "Macros"..

i wonder if AMPL might be extended some day to support recording keyboard macros as ahk scripts.. the really cool part about this is that they could be easily edited later and AMPL already has all the infrastructure for searching and launching them.. and i wonder if another ahk coder hasn't already made such a macro recording ahk script that could be used.

The functionality to record is already enabled in the ScriptEditor, though it's not coded in the ScriptEditor. I didn't see the point of re-inventing the wheel, or macro recorder for that matter, so I provided a button to run AutoScriptWriter:
[ You are not allowed to view attachments ]

After you've recorded your script in ASW, all you need to do is to copy and paste into one of the code sections of AMPL:
[ You are not allowed to view attachments ]

A little bit of editing may make the macro "work" better. For example, the use of the AMPL variables ampl_procID and ampl_winID that are returned after running the command.

If people prefer other ahk macro recorders then I will probably use an ini definition to handle that.

The other thought is if people want to record from FARR (without starting AMPL), I could do that as well with a separate script that runs AutoScriptWriter and then saves the AMPL script and loads for editing. Let me know if you'd like to see that sort of thing...

So to Summarize, feel free to give feed back on the following:
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: mouser on September 27, 2009, 01:27 AM
ok so i just got around to installing AMPL and... (https://www.donationcoder.com/forum/esmileys/gen3/1Small/wow2.gif)

just cant get over how professional everything is.. the help file is like for a full big mature application..

will report more as i try it now, just couldn't wait to post after initial installation.  :Thmbsup:
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: Perry Mowbray on September 27, 2009, 01:36 AM
just cant get over how professional everything is.. the help file is like for a full big mature application..

I've sort of been writing as I've gone along. There's still lots missing from the Help...

will report more as i try it now, just couldn't wait to post after initial installation.  :Thmbsup:

Appreciate the feedback: there are lots of rough edges yet (there's an icon bug that irritates me  ;)) - but I thought that I should stop for a breath and see what other people thought before I headed off in my own directions.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: mouser on September 27, 2009, 02:10 AM
let me answer these:

    * Do people want AMPL to support different AHK macro recorders (ie one person wants one, and another wants another)?
AutoScriptWriter worked well enough for me.

    * Is there a specific macro recorder that is better than AutoScriptWriter?
don't know the answer to that.

* Do people want AMPL to record a macro before running ScriptEditor?
not sure what you mean -- but i don't have any problem with launching ASW to record a macro.

----

here's my only issue with the macro recording:

i think the macro recording has potential to be something people use plugin for.

but the copy and paste from ASW is a bit painful -- ASW doesnt have a button to copy all, and ctrl+A doesn't work, and when you save it wants you to save to a file, etc.  so it's a bit confusing.  not that an expert wouldn't learn what to do, just doesn't quite flow.

i don't know if there is a solution for this, except that IF there is another ahk utility that wraps ASW into a nicer interface that you could tweak to work more smoothly with AMPL that might be worth it (but NOT to the degree that it would make sense to work a lot on a custom macro recorder!).

Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: mouser on September 27, 2009, 02:16 AM
so some obervations after following the tutorial, then creating my own macro and testing it.

(https://www.donationcoder.com/forum/esmileys/gen3/2Signs/bravo_sign.gif)(https://www.donationcoder.com/forum/esmileys/gen3/1Small/wow2.gif)(https://www.donationcoder.com/forum/esmileys/gen3/2Signs/bravo_sign.gif)

for anyone who has been wanting a way to create more powerful scripts to do things from farr.. you now have your answer.

it's like a bridge that connects FARR and AUTOHOTKEY in a truly seamless way.  very very cool.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: Perry Mowbray on September 27, 2009, 02:26 AM
let me answer these:

    * Do people want AMPL to support different AHK macro recorders (ie one person wants one, and another wants another)?
AutoScriptWriter worked well enough for me.

OK, but I think I've got something else in the pipeline...

* Do people want AMPL to record a macro before running ScriptEditor?
not sure what you mean -- but i don't have any problem with launching ASW to record a macro.
----

here's my only issue with the macro recording:

i think the macro recording has potential to be something people use plugin for.

but the copy and paste from ASW is a bit painful -- ASW doesnt have a button to copy all, and ctrl+A doesn't work, and when you save it wants you to save to a file, etc.  so it's a bit confusing.  not that an expert wouldn't learn what to do, just doesn't quite flow.

i don't know if there is a solution for this, except that IF there is another ahk utility that wraps ASW into a nicer interface that you could tweak to work more smoothly with AMPL that might be worth it (but NOT to the degree that it would make sense to work a lot on a custom macro recorder!).

I agree with all of that: it's the same for me ;)

What I plan to do is:
1. Work with the Recorder.ahk script to manage macro recording (unless there are other suggestions)
2. Add custom "Insert" button (so that copy and paste is not required)
3. Add functionality so that a user can invoke macro recording from FARR. When stopped the script will be loaded into AMPL for further editing.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: CleverCat on September 27, 2009, 02:26 AM
In case you're wondering - Perry has no beef with me!  ;D

I've been the 'Test Bunny'  and my version is working perfectly for my needs!

[ You are not allowed to view attachments ]
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: Perry Mowbray on September 27, 2009, 02:28 AM
and BTW Emmanuel and I tracked down a vbScript bug in FScript.dll that limited the functionality of onProcessTrigger. He has released a new version 1.20 at http://e.craft.free.fr/farr/FScript/
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: mouser on September 27, 2009, 02:29 AM
the one thought i had which might be worth cogitating on was this:

you've designed AMPL to be an extremely powerful thing for which a script can have multiple steps, and each step can launch an app, do windows operations, execute ahk code before and after, and react to results.

the user interface for this is absolutely fantastic -- gentle and powerful at the same time -- hard to ask for anything more.

---

i can also see people wanting to use AMPL for much simpler purposes, like just to help them write a simple ahk script they can search for and launch -- so one thought i had, and i have no idea if this is worth even considering, is whether it would make sense to have the AMPL script editor main window have like 2 tabs or an initial question about what kind of script you want to make. one for "Simple AHK Script" and one for "Multi-step Advanced Script".  Where the simple script would basically just be a single memo where one could edit AHK code and launch the macro recorder.  And the "Multi-step Advanced Script" interface would be what you have now.

the idea of the "Simple AHK Script" mode would be to present the user with the absolute minimalist options for their script (title, and memo editor to edit script, button for macro recorder launch?).

--

now having described that idea.. im not 100% sold on it myself, only because anyone who has the smarts to write an AHK script, could almost as easily just create and edit the .ahk file themselves with their own text editor and put it in their search directory path, and be able to search and launch it without using AMPL.

so.. i'm not sure it makes sense adding a simple mode to AMPL to do this.  just an idea.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: mouser on September 27, 2009, 02:37 AM
if you do decide to spend the time making the macro recording stuff easier and more integrated -- i think it does make the simple interface mode more attractive, since i think it might basically be something that macro-recorder users use -- people who aren't nesc. going to be proficient with AHK and would like a streamlined hand-holding way to manage macros.

Though STILL, im not sure you want to go through all the effort to make AMPL *both* a tool for super powerful complicated stuff as it is now, and also at the same time try to make a mode that is suitable for the most novice of users -- that's a tough nut to crack.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: CleverCat on September 27, 2009, 02:41 AM
AMPL actually helped me learn a bit more about scripting!  :Thmbsup:

[ You are not allowed to view attachments ]
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: Perry Mowbray on September 27, 2009, 02:48 AM
the idea of the "Simple AHK Script" mode would be to present the user with the absolute minimalist options for their script (title, and memo editor to edit script, button for macro recorder launch?).

Good point: I think I'd like, apart from others, CleverCat's opinion on that, as she's not a programmer (kick me if I just insulted you) and has run AMPL through its paces to create a specific script.

My Thoughts:
I think the Simple Tab was meant to be that, but considering your thoughts, it's aimed at launching a programme, not running a "recorded macro".

Certainly possible to have more than one view of the script (that could be interpreted on load): it's sounding like the difference between "Multiple Programme Launcher" and "Magic Programmable-Script Librettist" (only if you don't use IE or FF  ;)).



What I think we've arrived at here is two distinct usage types:

Is that right? Because if it is, I don't think there are any problems with integrating that concept into the interface; it's already half there, but it gets complicated by the steps/commands/etc.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: CleverCat on September 27, 2009, 03:20 AM
Not insulted!  ;D

I think AMPL falls between novice and power user! But if novice users are prepared to learn, they'll be okay. My initial problem was that the 2 programmes I needed in my script had 'special needs!'  ;) One had it's exe file buried in a third level folder, but Perry overcame that. Programmes like Ccleaner etc were relatively easy to set up.

Maybe 2 versions..

[ You are not allowed to view attachments ]

Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: Perry Mowbray on September 27, 2009, 03:37 AM
Maybe 2 versions..

I think this will be my first avenue of investigation, though internal.

Interestingly, I really like the idea that users can move from "know nothing" to "know a little more" using AMPL: that's how most of us started and I'm all for knowledge sharing and growth :).
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: CleverCat on September 28, 2009, 01:29 AM
 :Thmbsup:
Title: AMPL Opportunities #1: Plugins
Post by: Perry Mowbray on October 01, 2009, 08:32 AM
AMPL also can be extended with Plugins. Plugins can come in two parts:
1. A Definition file that is used by the ScriptEditor to insert code into the script, and
2. Optionally, an AHK Library Include file that will be called at run time.

There are three basic types/purposes of Plugins:

I've just done an example of a Plugin Wrapper type that uses skwire's new MouseAccelToggler.exe coding snack (https://www.donationcoder.com/forum/index.php?topic=19785.msg178981#msg178981).

But first some instructions on how to install a Plugin...

First of all, the Plugin has to be downloaded and saved to your filesystem somewhere. If there are executables included there may also be specific installation instructions for that aspect.

New Plugins can be installed from the Settings window.

The settings programme can be run from the ScriptEditor by Shift-Clicking on the About Icon:
[ You are not allowed to view attachments ]

1. Navigate to the Plugins Tab:
[ You are not allowed to view attachments ]

2. Select the definition file by clicking the load button [...]
3. Definition files are AutoHotKey scripts named *_Definitions.ahk
[ You are not allowed to view attachments ]
4. Select the correct file and click Open. The file will be loaded:
[ You are not allowed to view attachments ]
5. If the Plugin also includes an AHK Function Library, load the Library file in the same way. Library files are AHK scripts called *_Includes.ahk.
[ You are not allowed to view attachments ]
6. Add the Plugin to the list by clicking the Add button:
[ You are not allowed to view attachments ]
7. Click Save to save the new settings:
[ You are not allowed to view attachments ]
[ You are not allowed to view attachments ]
8. If you ran the settings programme from the ScriptEditor you will need to exit the ScriptEditor and run it again for the new settings to take effect.
9. The new Plugin can be accessed on the Advanced Tab of the ScriptEditor:
[ You are not allowed to view attachments ]
Title: AMPL Plugin Example: MouseAccelToggle 1.0.1
Post by: Perry Mowbray on October 01, 2009, 09:00 AM
Version 1.0.1: Uses new AMPL functionality that allows better integration and insertion of code.

This an example of a Plugin that wraps around an external programme, in this case skwire's MouseAccelToggle (https://www.donationcoder.com/forum/index.php?topic=19785.msg178981#msg178981) programme.

First of all, Download the Plugin & Programme: [ You are not allowed to view attachments ], and unzip it somewhere (doesn't really matter where).

Install the Plugin following the example in this post (https://www.donationcoder.com/forum/index.php?topic=20000.msg179592#msg179592) (that example was actually done using this plugin, so the filenames will be the same).

Once you've installed the Plugin you can use it to create specific scripts. From my reading of the original post, the idea was to be able to change the mouse acceleration for different occasions on the fly.

This Plugin needs to know where the MouseAccelToggle programme is, so when you first run the ScriptEditor you'll be prompted to enter the location.

So in AMPL you'd create a script for each speed setting you need, and name it appropriately:

Then in FARR it's easy to "search" for your required speed setting:
[ You are not allowed to view attachments ]



This is just a very brief example, and in many ways what is achieved with the plugin could easily be done without a Plugin: but I think it's OK for an example.

In putting this together I've discovered a few more rough edges that I hope to get to shortly...

Edit: Corrected Linkind

Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: mouser on October 01, 2009, 10:03 AM

 :huh:  (https://www.donationcoder.com/forum/esmileys/gen3/1Small/wow2.gif)
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: Perry Mowbray on October 01, 2009, 07:47 PM
:huh:  (https://www.donationcoder.com/forum/esmileys/gen3/1Small/wow2.gif)

I think it's got the basis to be quite a powerful addition to FARR  :-\  ;)

I'm hoping to post a significant update next week (which may also remove some of the rough edges as well): I've been playing with ah AHK Macro Recorder and it's got great potential over the current one distributed with AutoHotKey.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: mouser on October 01, 2009, 08:38 PM
I've been playing with ah AHK Macro Recorder and it's got great potential over the current one distributed with AutoHotKey.
now that's exciting.
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: Perry Mowbray on October 01, 2009, 10:04 PM
I've been playing with ah AHK Macro Recorder and it's got great potential over the current one distributed with AutoHotKey.
now that's exciting.

Really? I was excited before that!  :P
Title: Re: FARR Plugin: AMPL [beta version 0.5.1]
Post by: CleverCat on October 01, 2009, 11:27 PM
 ;D
Title: FARR Plugin: AMPL updated to beta version 0.6.0
Post by: Perry Mowbray on October 06, 2009, 07:46 AM
What's changed with 0.6.0?

I've used the Recorder script, which got some good reviews over at the AHK forums, and Metaxal has been doing some more work on it. I had a few issues getting it working correctly on my computer, so I've changed it quite a bit: I'd be interested in knowing how it performs for other people.

One of the neat things I've added is the ability to tailor what is recorded as the script is recorded!

Note: There is no help for AMPL Recorder yet!! But everything is labeled...
Title: Re: FARR Plugin: AMPL [beta version 0.6.0]
Post by: Perry Mowbray on October 06, 2009, 07:57 AM
  • The use of Recorder also allows for a Record and Edit mode in AMPL. Typing amn into FARR will give the option to record a new script: (see attachment in previous post (https://www.donationcoder.com/forum/index.php?topic=20000.msg178163#msg178163))

Actually Mouser: I ran into a wee issue with this... am I correct in thinking that FARR wont allow duplicate paths? Because that's what I was trying to do...  :-\
Title: Re: FARR Plugin: AMPL [beta version 0.6.0]
Post by: mouser on October 06, 2009, 01:52 PM
what do you mean "won't allow duplicate paths"?
Title: Re: FARR Plugin: AMPL [beta version 0.6.0]
Post by: Perry Mowbray on October 06, 2009, 06:39 PM
what do you mean "won't allow duplicate paths"?

When amn .* prefix is typed into FARR I display:

But Record: .* did not display until I used a different path; that is, the path is identical for both Create & Record when .* is used.
Title: Re: FARR Plugin: AMPL [beta version 0.6.0]
Post by: mouser on October 06, 2009, 07:15 PM
ah i see -- farr is thinking they are duplicate results.. that probably has to do with the type of result you say it is when you return it.. i have to check.
Title: Re: FARR Plugin: AMPL [beta version 0.6.0]
Post by: Perry Mowbray on October 06, 2009, 07:35 PM
result = path??

So you think if I make them different (FILE <> URL) it will work? I'll give that a go later...
Title: Re: FARR Plugin: AMPL [beta version 0.6.0]
Post by: mouser on October 07, 2009, 02:28 PM
i keep getting "not implemented yet" errors when trying to click on items in the am menu or just typing amc.
Title: Re: FARR Plugin: AMPL [beta version 0.6.0]
Post by: Perry Mowbray on October 07, 2009, 06:55 PM
i keep getting "not implemented yet" errors when trying to click on items in the am menu or just typing amc.

amc is to do what?

amn is to create a new script.

Double click on the am menu... OK, I've been select and TAB.  :-\

OK: I've fixed that (locally), it'll be in the next update. Thanks
Title: FARR Plugin: AMPL updated to version 0.6.1
Post by: Perry Mowbray on October 09, 2009, 05:14 PM
AMPL has been updated to 0.6.1.

This update fixes a couple of bugs and adds a brief Help file for AMPL Recorder:

If updating please replace the existing AMPL directory with the download, ie delete the existing AMPL directory first. If you have scripts you want to keep you'll need to copy them somewhere else first and then put them back after unzipping the new version.  ;)
Download (https://www.donationcoder.com/forum/index.php?action=dlattach;topic=20000.0;attach=44039) and Details from the first post (https://www.donationcoder.com/forum/index.php?topic=20000.msg178163#msg178163).
Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: mouser on October 11, 2009, 05:58 PM
im getting confused by the latest version.. having a bit of a hard time figuring out what to do.
Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: mouser on October 11, 2009, 07:02 PM
one error i get when trying to make a new script is:
---------------------------
ScriptEditor.ahk
---------------------------
#Include file "E:\MyDocs\Programming\CodeGear\FindAndRunRobot\Plugins\AMPL\ScriptEditor\includes\Plugins.ahk" cannot be opened.

Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: mouser on October 11, 2009, 07:04 PM
when i try to "record" nothing happened.. first time i tried i think it opened up the recorder script itself which i didn't understand.
Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: mouser on October 11, 2009, 07:05 PM
i dont think it saved my ahk directory when i initially specified it.. in options it had G:\
maybe that was the cause of the problems.. trying to set it in options now and trying again.. nope.
Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: Perry Mowbray on October 11, 2009, 09:24 PM
We have a great phrase in Australia for moments like this: Bugger!!

one error i get when trying to make a new script is:
#Include file "E:\MyDocs\Programming\CodeGear\FindAndRunRobot\Plugins\AMPL\ScriptEditor\includes\Plugins.ahk" cannot be opened.

Download and unzip this file [ You are not allowed to view attachments ] into FindAndRunRobot\Plugins\AMPL\ScriptEditor\includes\

Unfortunately got left out of the zip file  :(

i dont think it saved my ahk directory when i initially specified it.. in options it had G:\
maybe that was the cause of the problems.. trying to set it in options now and trying again.. nope.

Not sure I'm understanding... do you:

Options doesn't warn you of unsaved changes... is that the problem?

You should be able to reset it through Options at anytime. It should update the FindAndRunRobot\Plugins\AMPL\AMPL.ini file. Is the ini file correct, ie what you typed/selected in Options? Note: I've allowed for multiple locations in the ini file, so when a different drive letter is given to my USB it'll ask again, but use that in future...

when i try to "record" nothing happened..

My mistake again  :-[ Wrong filename in Fscript.vbs (Double bugger)

Download and unzip this version [ You are not allowed to view attachments ] over the top of your current and it should be fine (I've just re-installed here at work and that's what I had to do).

first time i tried i think it opened up the recorder script itself which i didn't understand.

Do you have AHK "installed" so that ahk scripts run when double-clicked?

The script would open in an editor if that was the default system action if your AHK Path was not set correctly.

So I count three errors: two mine and one yours. Is that how you see it??  ;)

Humble apologies over my bugs: I'll get them fixed tonight...
Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: cranioscopical on October 11, 2009, 10:40 PM
(Double bugger)
-Perry
You must hail from the buggernation  :)
Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: mouser on October 11, 2009, 10:45 PM
no need to apologize -- i'm happy to help test.
when one clicks on a menu item and it sets the text, i think you may want a space at the end, so if setting "amn" in search box you really want "amn " so that the other results are excluded because of regular expression match..  FARR normally may remove the extra space -- if so use \s instead of a space at the end.
Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: mouser on October 11, 2009, 11:01 PM
i think you hit the nail on the head about everything..

new files work great -- created a new script using macro recorder, worked like a wonderful charm.  :up: :up:

the new RECORD main option works amazingly.. creates a new macro script without even having to go into advanced stuff!

if one invokes the macro recorded from normal AMPL script it still requires manuall copy and paste right? might be nice to fix that too.

one problem i had was that when i tried to edit my recorded macro, the changes didnt seem to be saved.  i clicked save to file, SEEMED to save, but the changes never go into the file.  if i run it or edit it my changed version is reverted to original recording.



Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: Perry Mowbray on October 11, 2009, 11:51 PM
when one clicks on a menu item and it sets the text, i think you may want a space at the end, so if setting "amn" in search box you really want "amn " so that the other results are excluded because of regular expression match..  FARR normally may remove the extra space -- if so use \s instead of a space at the end.

I was going to ask you about that: when you pointed out that the double-click was not working the other day, I adjusted the script at work and it added a space OK; but at home the space was removed. Is there a setting somewhere that made home different to work (although they are different versions)??

You mean:
Code: vb.net [Select]
  1. FARR.setStrValue "doSearch", path & "\s"

if one invokes the macro recorded from normal AMPL script it still requires manuall copy and paste right? might be nice to fix that too.

Do you mean invoke AMPL Recorder from AMPL Script Editor?

There are two buttons to be able to insert into either of the code sections (bottom left corner):
[ You are not allowed to view attachments ]

one problem i had was that when i tried to edit my recorded macro, the changes didnt seem to be saved.  i clicked save to file, SEEMED to save, but the changes never go into the file.  if i run it or edit it my changed version is reverted to original recording.

I'm trying this now...

You're right: it certainly is not saved! I'll have to fix this...
Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: Perry Mowbray on October 11, 2009, 11:52 PM
(Double bugger)
-Perry
You must hail from the buggernation  :)
-cranioscopical (October 11, 2009, 10:40 PM)

Actually, New Zealanders also use the same phrase, so maybe you mean "one of the buggernations"?
Title: Re: FARR Plugin: AMPL [updated to version 0.6.1]
Post by: Perry Mowbray on October 12, 2009, 05:15 AM
when one clicks on a menu item and it sets the text, i think you may want a space at the end, so if setting "amn" in search box you really want "amn " so that the other results are excluded because of regular expression match..  FARR normally may remove the extra space -- if so use \s instead of a space at the end.

I was going to ask you about that: when you pointed out that the double-click was not working the other day, I adjusted the script at work and it added a space OK; but at home the space was removed. Is there a setting somewhere that made home different to work (although they are different versions)??

You mean:
Code: vb.net [Select]
  1. FARR.setStrValue "doSearch", path & "\s"

OK, read the help file and I'm trying
Code: vb.net [Select]
  1. FARR.setStrValue "restartSearch",path & "\s"
but it's still stripping the space  :(
Title: Re: FARR Plugin: AMPL updated to version 0.6.2
Post by: Perry Mowbray on October 12, 2009, 08:57 AM
Fixed a couple of bugs:

I'm still struggling with adding the extra space at the end of the restartSearch string. I'm wondering if it's FScript's issue? Mouser??  :huh:

From now on updating via dcUpDater should work: and be easier to boot  :-*