Sending mouse clicks to an application from the command line

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
CoximusPrime
Newbie
Newbie
Posts: 1
Joined: Sat Jun 23, 2012 4:48 am

Sending mouse clicks to an application from the command line

Post by CoximusPrime »

Hi Guys,

I've just got wine up and running and am trying to automate some tasks which I would otherwise need windows for. Basically I have a program which runs and I simply need to click a button, select a file and then click another button, then leave it for a few hours .... is there anyway I can send keypresses/mouse clicks to an application running in wine from the command line??

Cheers everyone
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Sending mouse clicks to an application from the command

Post by dimesio »

CoximusPrime wrote: I've just got wine up and running and am trying to automate some tasks which I would otherwise need windows for. Basically I have a program which runs and I simply need to click a button, select a file and then click another button, then leave it for a few hours .... is there anyway I can send keypresses/mouse clicks to an application running in wine from the command line??
Try Autohotkey. http://www.autohotkey.com/
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Installable via 'winetricks autohotkey'.
Locked