08-15-2010, 11:46 PM
Sorry Gintara, newbie here... Couldn't make it work.
Copied the entire code, pasted it, clicked on "Correct..."
After I ran the macro I got an error msg point to "err+ end _error": "Error (RT) in Teste 2: object not found"
Replaced this:
Also tried to use the example you gave
My intention when trying to identify the url was: "If the url X is found, do something, if not, continue with the other actions".
Sorry for the trouble and thanks for the help.
Copied the entire code, pasted it, clicked on "Correct..."
After I ran the macro I got an error msg point to "err+ end _error": "Error (RT) in Teste 2: object not found"
Replaced this:
Quote:Acc a=acc("" "TEXT" win(" - Opera" "OperaWindowClass") "" "Enter address or search" 0x1C04 0x0 0x20000040)For this:
ret a.Value
err+ end _error
Quote:Acc a=acc("" "TEXT" win("Google - Opera" "OperaWindowClass") "" "http://www.google.com.BR/webhp?hl=pt-BR" 0x1C04 0x0 0x20000040)and got the same error msg.
ret a.Value
err+ end _error
Also tried to use the example you gave
Quote:;str s=OperaGetAddressAfter clicking on "Correct.." and runing it, got an error msg pointing to "str s=OperaGetAddress": "Error in Teste 2: unknown identifier."
;sel s 3
,;case "http://www.google.*"
,;out "Google"
,;
,;case "http://www.quickmacros.com*"
,;out "Quick Macros"
,;
,;case else
,;out s
My intention when trying to identify the url was: "If the url X is found, do something, if not, continue with the other actions".
Sorry for the trouble and thanks for the help.
