Jump to content

Spy doesn't see splash windows?


Recommended Posts

I couldn't remember what the control of the spash window is, to use ControlSetText with, so I figured I'd just spy on it. No dice. the spy just shows the info of the window below it. I don't get it.

while 1
   SplashTextOn("test", "what control am I?") 
   sleep(25*1000)
Wend

if I put the mouse over the title bar, it shows the control being "AutoIt v31" with the text being "test" but when I put the mouse over the text of the splash window, it just shows whatever is behind the window...

Edit; an aside:

Even better is to use ControlSetText to update text without flicker...

if that's prefered, wouldn't it be great to have an example of that in the helpfile, either for ControlSetText or SplashTextOn? Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

shouldn't that kind of info be in the helpfile for the splashes, and probably any other gui elements in autoit? who updates the helpfile?

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

  • Developers

:D

Example

SplashTextOn("Title", "Message goes here.", -1, -1, -1, -1, 4, "", 24)

Sleep(3000)

SplashOff()

;; FLICKER

$message = ""

SplashTextOn("TitleFoo", $message, -1, -1, -1, -1, 4, "")

For $x = 1 to 20

    $message = $message & $x & @LF

    SplashTextOn("TitleFoo", $message, -1, -1, -1, -1, 4, "")

    Sleep(100)

Next

;; SMOOTH

$message = ""

SplashTextOn("TitleFoo", $message, -1, -1, -1, -1, 4, "")

For $x = 1 to 20

    $message = $message & $x & @LF

    ControlSetText("TitleFoo", "", "Static1", $message)

    sleep(100)

Next

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

and so, I bow down before thee, elder gods of autoit.

It was right where I had the helpfile open to even.

TGIF... must be that you worked too hard this week... :D

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...