Sign in to follow this  
Followers 0
emmanuel

Spy doesn't see splash windows?

8 posts in this topic

#1 ·  Posted (edited)

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)

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

: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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

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


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

Share this post


Link to post
Share on other sites

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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