Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Marco
#1
I need some help.

I cannot figure out what is wrong with the following script i wrote. The script should exit the loop after the first time. Why won't the if statement execute the break?

function# ~url [^waits] [hwnd] [str*urlout] [int*hwndout]
rep 10
wait 1
IeNavigate("http://www.google.com" 0 0 &str'result)
if(urlout) urlout="http://www.google.com"
break;

Thank you for any help.
#2
Code:
Copy      Help
[color=blue]function[/color]# ~url [^waits] [hwnd] [[color=blue]str[/color]&urlout] [[color=blue]int[/color]*hwndout]
[color=blue]str [/color]result
[color=blue]rep [/color]10
,[color=blue]wait [/color]1
,IeNavigate("http://www.google.com" 0 0 result)
,[color=blue]if[/color](&urlout)
,,urlout="http://www.google.com"
,,[color=blue]break[/color]
#3
See Ginatras how u just did that, u can run that macro and it wont focus on the site google, it wil just do it in the backround, like i had my program running and it opened the site and didnt disturb wat i was doing
wats the command for that im confused


Forum Jump:


Users browsing this thread: 1 Guest(s)