02-24-2013, 07:02 AM
Hi,
I'd like create a macro for QuickBooks, where if the 'x' image is there, click on it, wipe out the text in the find field ( which I can't access via controls, as it is not accessible) and if the 'x' image is not there, the find and click on the 'search' image... and then click on the text right next to it and paste search term that is in the clipboard.
How would I go about doing that?
I have used the 'wizard' to click on the 'search' image.. but can't figure out how to do if/then with the images...
Thanks,
Alberto
int w1=win("Intuit QuickBooks" "MauiFrame")
scan "Toolbar item4.bmp" child("" "QuickBooksSubForm" w1 0x0 "" 3) 0 1|2|16
int w=win("Quickbooks" "MauiFrame")
act child("" "QuickBooksSubForm" w 0x0 "" 3)
lef
I'd like create a macro for QuickBooks, where if the 'x' image is there, click on it, wipe out the text in the find field ( which I can't access via controls, as it is not accessible) and if the 'x' image is not there, the find and click on the 'search' image... and then click on the text right next to it and paste search term that is in the clipboard.
How would I go about doing that?
I have used the 'wizard' to click on the 'search' image.. but can't figure out how to do if/then with the images...
Thanks,
Alberto
int w1=win("Intuit QuickBooks" "MauiFrame")
scan "Toolbar item4.bmp" child("" "QuickBooksSubForm" w1 0x0 "" 3) 0 1|2|16
int w=win("Quickbooks" "MauiFrame")
act child("" "QuickBooksSubForm" w 0x0 "" 3)
lef