 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Red Hat Boy
Joined: 10 Apr 2008 Posts: 111
|
Posted: Sat Aug 16, 2008 9:55 pm Post subject: Strange problem with splashimage while using Process command |
|
|
I tried to create a simple countdown timer using gif images. It works fine, unless I add the line,
Process, priority, , High
This is very strange. If I add that line, the pictures seem to overlap. Say it starts at 30. When it changes to 29, there's still a 3 behind the 2. It does not do this without Process, priority, , High.
Here's a zip file with code and gif images included.
Here's the code:
| Code: | #singleinstance, force
;if (A_TickCount > 30000)
;Process, priority, , High
SetTimer, StartUp, -1000
return
StartUp:
MessageImgX := A_ScreenWidth - 75
tensX := A_ScreenWidth - 40
onesX := A_ScreenWidth - 20
MouseGetPos, X1, Y1
SplashImage, autorun.gif, A B X%MessageImgX% Y0
;CSec = %A_Sec%
Count = 30
Loop
{
tens := Count // 10
StringRight, ones, Count, 1
SplashImage, 2:%tens%.gif, A B X%tensX% Y18
SplashImage, 3:%ones%.gif, A B X%onesX% Y18
if (Count <= 0)
Break
MouseGetPos, X2, Y2
if (X1 != X2 || Y1 != Y2)
{
KillAutoRun = 1
Break
}
Count -= 1
Sleep 1000
}
SplashImage, 3:Off
SplashImage, 2:Off
SplashImage, Off
if !KillAutoRun
{
Msgbox Success!!!
}
ExitApp
return
x::ExitApp |
Any advice/input?
Oh by the way, I'm running XP. _________________ I slit the sheet, the sheet I slit,
and on the slitted sheet I sit. ;~} |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 726 Location: Calgary, AB, Canada
|
Posted: Mon Aug 18, 2008 2:09 pm Post subject: |
|
|
| All I can go by is assumptions... I assume Autohotkey uses automatic garbage removal, and that with a priority as high as Task Manager itself, it might be having difficulty removing the previous images. I might be blowing smoke (not totally sure) but it's the first idea to come to my mind. Try process Above Normal, and process Real Time. See if they do the same. Whenever a process is to highly prioritized, another process gets taken away from. If your mouse flickers and skips in a game, turn DOWN the game's priority... Mouse functions will go back to normal most times. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|