topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday November 12, 2025, 11:31 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 29 30 31 32 33 [34] 35 36 37 38 39 ... 63next
826
FARR Plugins and Aliases / Re: idea: FARR plugin school / tutorial / wiki
« Last post by Perry Mowbray on October 01, 2009, 09:39 AM »
no -- i need to promote you to the Editor group before you can edit pages.

Ah: Did that happen without me realizing?
827
FARR Plugins and Aliases / Re: idea: FARR plugin school / tutorial / wiki
« Last post by Perry Mowbray on October 01, 2009, 09:31 AM »
Sorry for the stupid question: is signing up supposed to be enough for actually being able to edit pages in the wiki?

That worked for me ( after digging through my spam to find the email from the wiki with my password)
828
Finished Programs / Re: SuperClick
« Last post by Perry Mowbray on October 01, 2009, 09:29 AM »
why would one want a delay?

Some programmes don't react well when they receive input too fast (did I recently read a post about FARR misbehaving because of fast typing??).
829
Finished Programs / Re: SuperClick
« Last post by Perry Mowbray on October 01, 2009, 09:10 AM »
I just realized.. The delay time isn't working right.. It won't set it more than once when the script runs... Do I need to set it via ini file and reload the script every time the delay time changes?..

Every newly launched thread (such as a hotkey, custom menu item, or timed subroutine) starts off fresh with the default setting for this command. That default may be changed by using this command in the auto-execute section (top part of the script).
-AutoHotKey

So you'll need to call this command each time the Delay changes.
830
FARR Plugins and Aliases / AMPL Plugin Example: MouseAccelToggle 1.0.1
« Last 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 programme.

First of all, Download the Plugin & Programme: * MAT Plugin 1.0.1.zip (252.53 kB - downloaded 590 times.), and unzip it somewhere (doesn't really matter where).

Install the Plugin following the example in this post (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:
  • Go Real Fast: speed=20
  • Go Real Slow: speed=1
  • GoNewSpeed: speed set at run time

Then in FARR it's easy to "search" for your required speed setting:
Screenshot - 1_10_2009 , 11_47_23 PM.png



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

831
FARR Plugins and Aliases / AMPL Opportunities #1: Plugins
« Last 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:
  • Gui's to insert code into the code Before and/or the code After sections. The AMPL Variables Plugin is an example
  • A wrapper for an external programme
  • An AHK Function Library & Definition combination.

I've just done an example of a Plugin Wrapper type that uses skwire's new MouseAccelToggler.exe coding snack.

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:
img_332.png

1. Navigate to the Plugins Tab:
img_431.jpg

2. Select the definition file by clicking the load button [...]
3. Definition files are AutoHotKey scripts named *_Definitions.ahk
img_433.jpg
4. Select the correct file and click Open. The file will be loaded:
img_434.jpg
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.
img_435.jpg
6. Add the Plugin to the list by clicking the Add button:
img_436.jpg
7. Click Save to save the new settings:
img_437.jpg
img_438.jpg
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:
img_439.jpg
832
I wonder if it's worth combining the two utilities into one, and including some more options that could do things like change the wallpaper color to help identify the current mode.

Actually, this is specifically what I designed AMPL for, so that you could have various settings in different scripts and select the one you want in FARR
833
Living Room / Re: How much Soda/Energy-Drinks you drink / week?
« Last post by Perry Mowbray on September 30, 2009, 11:39 PM »
Energy Drinks: None - wouldn't know what they taste like.

Soda (Soft Drinks): None (at home at least)

Drink a lot of green and black tea, and coffee (in separate cups of course).
834
FARR Plugins and Aliases / Re: FARR Plugin: AMPL [beta version 0.5.1]
« Last 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 :).
835
FARR Plugins and Aliases / Re: FARR Plugin: AMPL [beta version 0.5.1]
« Last 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:
  • Running Commands and manipulating their windows
  • Recording & Running Macros

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.
836
FARR Plugins and Aliases / Re: FARR Plugin: AMPL [beta version 0.5.1]
« Last 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/
837
FARR Plugins and Aliases / Re: FARR Plugin: AMPL [beta version 0.5.1]
« Last 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.
838
FARR Plugins and Aliases / Re: FARR Plugin: AMPL [beta version 0.5.1]
« Last 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.
839
FARR Plugins and Aliases / Re: FARR Plugin: AMPL [beta version 0.5.1]
« Last 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:
img_18.png

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:
img_53.png

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:
  • Do people want AMPL to support different AHK macro recorders (ie one person wants one, and another wants another)?
  • Is there a specific macro recorder that is better than AutoScriptWriter?
  • Do people want AMPL to record a macro before running ScriptEditor?
840
FARR Plugins and Aliases / Re: FARR Plugin: AMPL [beta version 0.5.1]
« Last post by Perry Mowbray on September 24, 2009, 09:28 AM »
Here's a trifle: (see attachment in previous post)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.
841
Living Room / Re: Question About MS Word Lists & Tables
« Last post by Perry Mowbray on September 23, 2009, 11:36 PM »
I think what Andy would be getting at is that one of the formats on the Clipboard may have been a Table (depending on what you were copying from).

OK, I still don't quite get it. If I highlight and copy, say, a list in a post here. How would my clipboard have a table format? I'm not saying that it doesn't; just that if it does, I sure never knew about it!

You're right, but if you go to a web page with a table on it, I'm pretty sure that when you paste it'll use the html version of the Clipboard. You can always use PasteSpecial to paste other formats (if available).

OK: I've just tried it over on a table at W3Schools and you have to ensure that you select the full table. Copying a bit of the text before and after ensures this.
842
Living Room / Re: Question About MS Word Lists & Tables
« Last post by Perry Mowbray on September 23, 2009, 11:34 PM »
Aha! Table>Autoformat did the trick, but...  only after I inserted a hard break after each line.

Using Find-Replace should be an easy way to change those pesky end of lines:
WordReplace.png
843
Living Room / Re: Question About MS Word Lists & Tables
« Last post by Perry Mowbray on September 23, 2009, 11:25 PM »
I think what Andy would be getting at is that one of the formats on the Clipboard may have been a Table (depending on what you were copying from).
844
FARR Plugins and Aliases / Re: FARR Plugin: AMPL [beta version 0.5.0]
« Last post by Perry Mowbray on September 21, 2009, 11:27 AM »
That's auspicious: this is the 20,000 topic in the forum!  :-\
845
FARR Plugins and Aliases / FARR Plugin: AMPL [updated to version 0.6.2]
« Last 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: * ampl_0.6.2.zip (2439.7 kB - downloaded 567 times.)
  • Script Editor simple window wasn't saving scripts: fixed
  • AMPL Recorder was not called correctly from the Plugin: fixed
  • AMPL Settings didn't give a lot of feedback about unsaved settings: improved
  • ScriptUpdater wasn't preselecting scripts: fixed
  • dcUpDater files tested and working  8)
What's changed with 0.6.1?
  • Fixed a bug in the plugin where double-clicking on the am menu did not doSearch the sub-alias
  • Enabled script "Deletion" and "UnDeletion"
  • Fixed a bug in Recorder that stopped the Toggle between Screen-based and Window-based mouse coordinates
  • Help file or AMPL Recorder (albeit brief  ;) )
  • Fixed up the dcUpdater files

What changed with 0.6.0?
  • This version includes a version of Recorder.ahk that's been modified to integrate with AMPL Script Editor. There is no Help for AMPL Recorder at this stage :(, but I hope it's pretty self explanitory.  Code from Recorder can be inserted into either the code Before or code After sections (no more copy & paste  ;))
  • 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.
  • There is also a new "Simple Script Editor" window. If your script can be loaded into the Simple Window if there is no command and only one Step (ie Recorded Scripts)
  • Improved the integration of Plugins with Script Editor: See the updated MAT Plugin

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:
  • Scripts runnable from FARR, with full searching
  • Run multiple proprammes in one script
  • Positioning and sizing of windows so that they are positioned independently of the programme's normal settings
  • Run and leave functionality, that is, the script can shut down/log off/etc dependent on the success of the script

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

A is for AutoHotKey
  • and is also for Another, because there is also a fair amount of overlap between these types or programmes.
M is for Multiple
  • and is also for Manipulate because the windows can be manipulated through the scripts.
  • It is also for Many because of the many script that can be written: FARR gives you a live search for easy launching.
P is for Programme
  • and is also for Plugin because AMPL can be extended by plugins (A plugin for AMPL Variables is included).
  • It is also for Powerful, because AMPL is build from the powerful AutoHotKey language.
L is for Launcher
  • and is also for Layout because a different layout can be defined for each script

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:
FARR-AMPL.png

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
ScriptWindow.png

Simple
Screenshot - 6_10_2009 , 11_06_33 PM.png

AMPL Recorder
AMPL Recorder will record Screen activity: Keyboard, Mouse Clicks, Windows, Window Controls, Mouse Movement
Screenshot - 6_10_2009 , 11_12_32 PM.png

AMPL Recorder has a recording window where what is recorded in the script can be changed on the fly:
Screenshot - 6_10_2009 , 11_13_10 PM.png

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.
Screenshot - 6_10_2009 , 10_40_48 PM.png

Installation
Download AMPL package
  • Unpack into your FARR/Plugins directory
Plugin Initialization
  • AMPL Plugin will ask for the location of your AHK directory:
    Screenshot - 6_10_2009 , 10_53_02 PM.png.
    Click "..." and Set.
  • AMPL Script Updater will run to update the included script:
    Screenshot - 6_10_2009 , 10_43_54 PM.png.
    Select and Process.

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

I've included HelloWorld that can be run, edited, etc.:
  • To edit it type ame HelloWorld into FARR.
  • To run it type amr HelloWorld into FARR.
  • To install it type ami HelloWorld into FARR. (Installing means creating a shortcut in the start menu, desktop, 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:
  • HelloWorld from AMPL: First simple script.
  • NotePad by Three: Open three NotePad windows in different locations.

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  :)

846
FARR Plugins and Aliases / Re: FARR Plugin: TimeZone [Update version 1.2.1]
« Last post by Perry Mowbray on September 21, 2009, 07:44 AM »
1.2.1. does it for me!

Thanks very much for the extra effort, much appreciated!

No, Thank you!
847
FARR Plugins and Aliases / Re: FARR Plugin: TimeZone [Update version 1.2.1]
« Last post by Perry Mowbray on September 21, 2009, 07:00 AM »
I have same problem!  ;)
and
I have a strange problem with TimeZone (TZ). The plugin does what I expect, but whenever I have TZ loaded, FARR will stay open when I launch a program. So in other words, if I type notepad and press enter, FARR will launch notepad, but still remains open, unless I remove TZ. Then FARR will do as expected, i.e. launch notepad and "disappear" :huh:

Any idea what could be causing this? Must be a conflict somewhere?

Yes: me  :-[

Fixed now: at least here. Please try and let me know if it's OK for you too?
848
FARR Plugins and Aliases / Re: FARR Plugin: TimeZone [Update version 1.2.0]
« Last post by Perry Mowbray on September 21, 2009, 03:59 AM »
If the plugin don't care about the result the correct return is nothing or false. If the plugin return an integer, fscript would set the closeafterp parameter and tell FARR to not close.

Thanks, that's my problem.
849
FARR Plugins and Aliases / Re: FScript 1.19 Issues
« Last post by Perry Mowbray on September 21, 2009, 03:52 AM »
It's really F...Script. Guess what fits in ?

I can think of a few things:
Screenshot - 21_09_2009 , 6_45_35 PM.png

or
Screenshot - 21_09_2009 , 6_51_26 PM.png
850
FARR Plugins and Aliases / Re: FARR Plugin: TimeZone [Update version 1.2.0]
« Last post by Perry Mowbray on September 20, 2009, 11:43 PM »
I've asked ecaradec about this, as I only remember it "appearing" relatively recently?

I got around this by setting the following option: [edit: just discovered that it doesn't fix it, well it only does with TimeZone.]
FARR-Options.png
Pages: prev1 ... 29 30 31 32 33 [34] 35 36 37 38 39 ... 63next