Jump to content

Keep the window HIDDEN?


Recommended Posts

Hi there!

I'm trying to create my first project, a bot that runs around Neopets (I don't play, but its all I can think of to start off with) visiting different parts of the site. This is what I have so far:

Run("C:\Program Files\Internet Explorer\iexplore.exe")
Sleep(5000)
Send("^o")
Send("http://www.neopets.com")
Send("{ENTER}")
WinWaitActive("Welcome to Neopets!")
WinSetState("Welcome to Neopets!", "", @SW_Hide)
Send("^o")
Send("http://www.neopets.com/explore.phtml")
Send("{ENTER}")
Sleep(5000)
WinSetState("Explore the whole of Neopia!!!", "", @SW_SHOW)

I figured that the @SW_Hide would indefinately hide the window, but immediately after, when it starts Send("^o"), the window pops back up.

How do I keep the window hidden???

Also, how do I create functions that are not listed in the Functions Reference at http://www.autoitscript.com/autoit3/docs/functions.htm?

I've noticed other people's scripts with functions not on this list, and functions which I want to use but cannot find.

Any other documentation?

Thank you in advance!

Link to comment
Share on other sites

For one thing, don't waste your time doing it that way, just use the IE udf's. they have everything you want. you can find more info in the help file under "User Defined Functions -> IE Management".

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Link to comment
Share on other sites

For manipulating with Internet Explorer try using functions from IE.au3 standard library.

Look at _IE_Example()

Functions are described in local HelpFile of instaled AutoIt ("C:\Program Files\AutoIt3\autoit.chm"), there are also UDF functions User Defined Functions which are in Include directory of AutoIt instal directory ("C:\Program Files\AutoIt3\Include\")

EDIT: theguy0000 was quicker

Edited by Zedna
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...