Jump to content
Sign in to follow this  
andy09

automate right-clicking av saveing a file in a certain time interval

Recommended Posts

andy09

Hi,

Is therer a way of using autoit to right-click in a windows application, then choosing SAVE FILE and repeat this procedure every 5th second?

best regards

Andy

Share this post


Link to post
Share on other sites
nfaustin

Yes.

What windows application?


[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites
andy09

It's called gx iec developer (PLC Programming software).

THe idea is to export data to excel automaticlly.

Share this post


Link to post
Share on other sites
nfaustin

Post your trial code.

Let see what we can do...

Edited by nfaustin

[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites
andy09

THanks for your quick reply. I don't really know how to get started. Do you have some examples or tips how to get going?

Share this post


Link to post
Share on other sites
nfaustin

Since you mention right-click operation, try to read first in the Help file's index about MouseClick or ControlClick function.

With this, I'm sure you would come-up an idea how to do it. Also read about: Sleep(), Send(), WinActivate(), and it has example given.

Then post here your code.


[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites
andy09

Hi agian,

I've come so far that I can right click on the right place in my application so that a drop down menu occurs.

ALlthough I've no luck with selection the right item in this list.

I've used the winmenuselectitem but it soesn't work. I can't get any info about this menu using the "Bull's eye" in autoit.

Also The winactivate doesn't seem to work well. I've used "CLASS" instead of the acutal title since the title will change depening on what file is open.

WinActivate("[CLASS:GX IEC Developer]", "")



MouseClick("right", 1000, 300, 1)

WinMenuSelectItem("[CLASS:GX IEC Developer]", "", "Write to file")

THe next step after click on the right item in the menu would be to choose a filename and file type from to input field. Any hint on that one ?

BEst regards

Andy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.