Herman --
Have you considered using Auto Hotkey. It can produce mouse clicks and has some timing control and looping.
I have never used it myself.  But I know others on this forum have.
-- Keith

On 6/18/2010 14:23, Herman wrote:

Thank you for your reply Chris,

If we had an afl-controlled chart refresh we could create much more "responsive" GUIs. This is a missing function in the gfx library. Right now gfx functions, like dragging items, using a slider, dropping down menus, adjusting params, etc. are all "hesitant" because they have to wait for the next refresh to show the new graphics. I have too many parameters and functions to use the AB Param window, its just too big. RefreshAll() is too slow because it refreshes everything; I just want to refresh the selected pane.

I am not sure the AlertIf() would work because it is probably sampled at the next refresh and the delay would still be there. If it is easy for you to create an .exe I am willing to try it.

I am not entirely sure how to solve this, perhaps i am just programming it the wrong way... or wanting to do too much.

Thanks for the idea Chris,

herman





*> Herman,

> I can think of this, possibly, as a solution:

> (a) Use alertif to run a .exe that clicks the mouse. You can create a .exe > that clicks the mouse using something like vTask Studio. If you don't have
> it, I can create that .exe and email it to you

> May I ask you a question? Are you trying to get refreshes more frequently
> than executed ticks so that you can act on book changes before the tick?
> I've pondered how to do this in amibroker for some time, as by design, the
> screen refreshes upon tick execution (or requested time refresh of each 1
> second).  Seems to me that there might be one other way of doing it, and
> that is by:

> (b) running js that draws upon Amibroker AA (via OLE automation) every so
> often.  I haven't tried this at very frequent refresh interverals (eg < 1
> sec)

> Best,

> Chris

> ----- Original Message -----
> From: "Herman" <[email protected] <mailto:[email protected]>>
> To: "AmiBroker User Group" <[email protected] <mailto:[email protected]>>
> Sent: Friday, June 18, 2010 2:12 AM
> Subject: [amibroker] Simulating a mouseclick from afl


>> Hello,

>> I  often  have  a  need  to  refresh  the selected chart from afl, for
>> example to create responsive GUIs.

>> I  have  seen code to simulate key-strokes, would anyone know if it is
>> possible to simulate a Mouse-click from afl?

>> Many thanks for any help you can give,

>> Herman





>> ------------------------------------

>> **** IMPORTANT PLEASE READ ****
>> This group is for the discussion between users only.
>> This is *NOT* technical support channel.

>> TO GET TECHNICAL SUPPORT send an e-mail directly to
>> SUPPORT {at} amibroker.com

>> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
>> http://www.amibroker.com/feedback/ <http://www.amibroker.com/feedback/>
>> (submissions sent via other channels won't be considered)

>> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
>> http://www.amibroker.com/devlog/ <http://www.amibroker.com/devlog/>

>> Yahoo! Groups Links







> ------------------------------------

> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.

> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com

> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/ <http://www.amibroker.com/feedback/>
> (submissions sent via other channels won't be considered)

> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/ <http://www.amibroker.com/devlog/>

> Yahoo! Groups Links


>     (Yahoo! ID required)

> [email protected] <mailto:[email protected]>



* *
* *
**
* *

Reply via email to