topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Thursday April 18, 2024, 11:55 pm
  • 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

Author Topic: question to mouser ...  (Read 3831 times)

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
question to mouser ...
« on: July 17, 2007, 04:08 PM »
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

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,900
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: question to mouser ...
« Reply #1 on: July 17, 2007, 04:16 PM »
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

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
Re: question to mouser ...
« Reply #2 on: July 17, 2007, 04:34 PM »
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
« Last Edit: July 17, 2007, 04:38 PM by nitrix-ud »

nitrix-ud

  • Charter Member
  • Joined in 2005
  • ***
  • default avatar
  • Posts: 560
    • View Profile
    • Donate to Member
Re: question to mouser ...
« Reply #3 on: July 17, 2007, 04:39 PM »
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..

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