Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
URL identification
#4
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:
Quote:Acc a=acc("" "TEXT" win(" - Opera" "OperaWindowClass") "" "Enter address or search" 0x1C04 0x0 0x20000040)
ret a.Value

err+ end _error
For this:
Quote:Acc a=acc("" "TEXT" win("Google - Opera" "OperaWindowClass") "" "http://www.google.com.BR/webhp?hl=pt-BR" 0x1C04 0x0 0x20000040)
ret a.Value

err+ end _error
and got the same error msg.

Also tried to use the example you gave
Quote:;str s=OperaGetAddress
;sel s 3
,;case "http://www.google.*"
,;out "Google"
,;
,;case "http://www.quickmacros.com*"
,;out "Quick Macros"
,;
,;case else
,;out s
After clicking on "Correct.." and runing it, got an error msg pointing to "str s=OperaGetAddress": "Error in Teste 2: unknown identifier."

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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)