Jump to content



Photo

Conduct everything in background?


  • Please log in to reply
2 replies to this topic

#1 lebronjensen

lebronjensen

    Seeker

  • New Members
  • 1 posts

Posted 09 May 2012 - 02:33 PM

Hi there. im new to autoit and i need some help. I have the following script.

FIRST LINE.
$url = "www.mywebsite.com"
Run(@Comspec & " /c start " & $url)
Run("mybatchfile.bat")
Sleep(4000)
Send("{PGDN 10}")
MouseClick("left", 1023, 131)
MouseClick("left", 897, 530)
SplashTextOn("Loading", "Please wait. Loading...", 1366, 768, 0, 0, 32, "", 20)
Sleep(10000)
SplashOff()
MouseClick("right", 650, 83)
Send("{DOWN}")
Send("{DOWN}")
Send("{ENTER}")

As you can see, i have tried to use a splashtexton command to display a loading message while my website fully loads.

is there any way i can conceal the earlier commands (in red text) behind the splash screen in the inactive window?
(so i would place a splashtexton command where it says FIRSTLINE.)

i've tried to use controlclick but i cant get my head around controlid and class parameters.

Any help would be much appreciated. Thanks,







#2 JohnOne

JohnOne

    John

  • Active Members
  • PipPipPipPipPipPip
  • 8,869 posts

Posted 09 May 2012 - 03:46 PM

The 3rd, 4th, 5th and 6th optional arguments are for positioning the splash gui.

WinGetPos() will give you the position of the inactive window.
AutoIt Absolute Beginners Require a serial
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)

#3 YogiBear

YogiBear

    deFinitely not yoUr average bear!

  • MVPs
  • 9,873 posts

Posted 09 May 2012 - 04:16 PM

You may want to look at IE.au3




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users