Hi Guys,
Could someone please point me in the right direction. I'm using Eventghost to toggle within an application, all is working fine however one of the application form windows has various check check boxes, some are ticked some are unticked by default. These are detected in event ghost. How would I go about automating the check boxes to be then unticked or ticked?
What functions or options should I be looking at?
I have tried setting up a function for Windows 1 tick box A, then send mouse left click to tick or untick but this didnt work.
Thanks
in advance
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
automatically ticking or unticking of check boxes
-
majorspawn
- Posts: 4
- Joined: Thu Sep 19, 2013 4:56 am
Re: automatically ticking or unticking of check boxes
I have never tried in Eventghost to automate ticking/unticking of boxes, but I am doing that with Autohotkey and it works OK.
You can use the option 'window spy' in AHK to find out where the mouse cursor is on the screen, so you can enter those coordinates in the AHK script and then use the left-mouse-click-command of AHK to tick/untick the box. For this to work, the click-box must be at the same position always.
By creating a .exe of the AHK script, one could automate execution of the script from Eventghost.
It's a bit of a long workaround, but could work if no solutions within Eventghost itself could be found.
You can use the option 'window spy' in AHK to find out where the mouse cursor is on the screen, so you can enter those coordinates in the AHK script and then use the left-mouse-click-command of AHK to tick/untick the box. For this to work, the click-box must be at the same position always.
By creating a .exe of the AHK script, one could automate execution of the script from Eventghost.
It's a bit of a long workaround, but could work if no solutions within Eventghost itself could be found.
-
majorspawn
- Posts: 4
- Joined: Thu Sep 19, 2013 4:56 am
Re: automatically ticking or unticking of check boxes
Hi Guys,
I found a better way I think. Its using python scripts which are easily generated with swappy as per the tutorial here
http://www.youtube.com/watch?v=xaMFHOq_Hls
Use the above method to create a .pyw file, then call the pyw using a batch file which then i convert to exe. event ghost can then be used to call on the exe in a macro. This works very well and easy to follow with no python experience necessary
I found a better way I think. Its using python scripts which are easily generated with swappy as per the tutorial here
http://www.youtube.com/watch?v=xaMFHOq_Hls
Use the above method to create a .pyw file, then call the pyw using a batch file which then i convert to exe. event ghost can then be used to call on the exe in a macro. This works very well and easy to follow with no python experience necessary
Re: automatically ticking or unticking of check boxes
Is it working on your app without any bugs?
-
majorspawn
- Posts: 4
- Joined: Thu Sep 19, 2013 4:56 am
Re: automatically ticking or unticking of check boxes
yes this process works wellblue.bear wrote:Is it working on your app without any bugs?
-
eatmeimadanish
- Experienced User
- Posts: 118
- Joined: Thu Oct 01, 2009 5:11 pm
Re: automatically ticking or unticking of check boxes
You can use eventghost to call PY files by just calling Python.exe and then in the command line options supplying the path to your filename. No need to convert to exe or run in a batch file.