Sign in to follow this  
Followers 0
NELyon

Do a send function on a non-active window

14 posts in this topic

#1 ·  Posted (edited)

I have a program that refreshes a page every four second... it works perfectly but i was wondering if i could make it refresh without having it be active.

i am NOT using IE, nor firefox. I am using america online 8.0 plus...

EDIT::: it refreshes with a

send("{f5}")

AUTOIT TAGS BACK!

Edited by codemyster

Share this post


Link to post
Share on other sites



Ok, i got this but it just doesen't work

While 1
ControlSend("America online","Gaia","","{f5}")
Wend

Share this post


Link to post
Share on other sites

Every 4 seconds, ****? going to miss something vital in that short period of time? Look at ControlSend and TitleMatchMode Option 4 with classname usage.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

i'm running it on a page with little info on it so four seconds is all i need

While 1
ControlSend ( "America Online", "Gaia",  , "{f5}" )
Wend

won't work

Edited by codemyster

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

i'm running it on a page with little info on it so four seconds is all i need

I only mention that not in your sake, but for the website, that has to cope with the drain of continually sending the data to your browser. Currently about 145 users online now , refreshing every 4 seconds would make a big drain. But, perhaps I'm wrong. I see no sense in such a rapid refresh rate.

Edit:

Consider classname as I mentioned. Your browser would not see the title etc as you show? Others do not...

Edited by MHz

Share this post


Link to post
Share on other sites

i saw over 30,000 users last night at 1 AM so 145 is nothing

Share this post


Link to post
Share on other sites

edit: this works for my IE...

$WindowHandleYouAreResponsibleToGet = WinGetHandle("Do a send function on a non-active")
ControlSend($WindowHandleYouAreResponsibleToGet,"","","{f5}")

Lar.

Hm... that still only works if the window is active

Share this post


Link to post
Share on other sites

Opt("WinTitleMatchMode", 2)
While 1
ControlSend("Gaia ::", "", 1, "{F5}", 0)
Sleep(4000)
WEnd


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

nope, nothing

Share this post


Link to post
Share on other sites

nope, nothing

Do you have msn? then I can help you better xD, and ill have a autoit buddy, rofl

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

I am using AOL 8.0 plus. I tried midifying the code so the title was america online, and the text was gaia, but it didn't work... which i don't know why because it worked in my normal send function

Share this post


Link to post
Share on other sites

Just guessing>

Activate your AOL window, but place it to -20000,-20000 which is out of monitor area.

When 4 sec. comes remember which window was active, change to AOL, do what you want, and change back to the remembered window.

This should not take longer then 0.001 sec so you will sense nothing with normal work.

Maybe you can do blockinput when starting for safety.

Share this post


Link to post
Share on other sites

You do realize this is from june? =P


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites

Yes,

I myself carry problems months old.

Also, you never know when someone else will need to read this in the future.

Anyway, it took 1 min. to write down.

Also, I like my name written in forums (not true)

;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0