ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Find And Run Robot

question to mouser ...

(1/1)

nitrix-ud:
Hi Mouser,

i wanted to code an autohotkey script to open some kind of preview window for my "FARR code snippet manager"  :D

i tought i would use the status bar text to get the file names...
i tought i could also check the search box text to trigger the preview script to work only when i'm using my snippet alias...

BUT i have the impression i can't get anything... ControlGetText, etc. does not work ...
i have no idea about windows classes, controls, etc. so i may very well be out of the subjet but do you have any ideas to get some info ?

If i could code some C++, i would (not enough time to learn) try to code a plugin, but i thought i could code a tiny script with autohotkey to get the job done...

if the control you use are invisible, could you add a "standard control" with hidden texts of the search box, status bar, etc.
I'm highly speculating here, so bear with me !  ;D

Cheers, Nitrix

 

mouser:
i like what you are thinking of.. i wonder what the best way to do it is..
I could add controls to do what you want i think but maybe we can think of an even better way..
Can you describe exactly what you are trying to do and maybe it will help me understand what is needed.

By the way, member Ehtyar has written an extremely cool plugin he is going to post soon that is made to let other programs talk to FARR, and he might be willing to add stuff to help you..

nitrix-ud:
what i'd like to do is code a script (in autohotkey) that do the following :

1) runs in the background
2) monitor when FARR gets activated (this is possible already)
3) monitor the search box... triggers the previewing when say the search box begins with "s " (stands for snippets)
4) previewing routine monitors the status bar (which reflects the selected file in the result list) to create a tooltip somewhere on the screen with say the first 200 characters...


it is also related to an other post of mine asking you to add a new feature which would enable me to send a string to the search box through command-line
i asked this because i can't get ControlSetText to work with FARR, so i use Send command....

[idea]
maybe someone could write a plugin to send messages outside of FARR
you would set up :

* what is the trigger : result selection, etc.
* which FARR parameters/values to send

* to which application

--- ---trigger = onselect(result)
myapp.exe %statusbartext% %searchboxtext% %selectedresultx% %selectedresulty%
It would allow noob like me to customize FARR even more !!

Nitrix

nitrix-ud:
By the way, member Ehtyar has written an extremely cool plugin he is going to post soon that is made to let other programs talk to FARR, and he might be willing to add stuff to help you..
--- End quote ---

seems like a very interesting plugin
i'm sure i will find ways to use it  :D

Navigation

[0] Message Index

Go to full version