Jump to content

Problems with SplashOff()


Guest Timo
 Share

Recommended Posts

Problems with SplashOff(), here my code:

SplashTextOn("Title", "Message goes here.", -1, -1, -1, -1, 4, "", 24)
  FileDelete ($quellverzeichnis_ok)
  $suche = FileFindFirstFile($quellverzeichnis_alles) 
  $i = -2
  While 1
    $datei = FileFindNextFile($suche) 
    If @error Then ExitLoop
    $i = $i + 1
    $filelist = $filelist & $datei & @LF
  Wend
  FileClose($suche)
  FileMove($quellverzeichnis_alles, $zielverzeichnis)
  SplashOff( )
  Sleep(3000)
  MsgBox(64,$title, $filelist & @LF & $i & " Datei(en) wurden verschoben."

SplashTextOn stays still on the desktop, the window closes only when the messagebox is closed. Is it a bug?

Bye,

Timo

Link to comment
Share on other sites

I'm using Windows2000 Pro.

The example in the help topic runs perfect.

It seems it has a problem with the following msgbox. Even a 'sleep()' doesn't help.

Hm...

Timo

Link to comment
Share on other sites

Problems with SplashOff(), here my code:

SplashTextOn("Title", "Message goes here.", -1, -1, -1, -1, 4, "", 24)
  FileDelete ($quellverzeichnis_ok)
  $suche = FileFindFirstFile($quellverzeichnis_alles) 
  $i = -2
  While 1
    $datei = FileFindNextFile($suche) 
    If @error Then ExitLoop
    $i = $i + 1
    $filelist = $filelist & $datei & @LF
  Wend
  FileClose($suche)
  FileMove($quellverzeichnis_alles, $zielverzeichnis)
  SplashOff( )
  Sleep(3000)
  MsgBox(64,$title, $filelist & @LF & $i & " Datei(en) wurden verschoben."

SplashTextOn stays still on the desktop, the window closes only when the messagebox is closed. Is it a bug?

Bye,

Timo

You have a little space there ( ) instead of () try getting rid of that

Rick

Link to comment
Share on other sites

The space doesn't matter. AutoIt internally skips whitespace in a line like that. Even something as spaced as this works fine:

MsgBox ( 0 , "" , "Text" )

or this:

MsgBox       ( 0 , "" , "Text" )

(Those are tabs)

Edited by Valik
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...