 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
sosaited
Joined: 24 Feb 2005 Posts: 233
|
Posted: Thu Mar 17, 2005 8:47 pm Post subject: Gui text Help/tip |
|
|
| Code: | .........
Gui, +ToolWindow
Gui, Add, Progress, vProgressBar w250 -Smooth
Gui, Add, Text, vProcess W750
Gui, Show, y125, Processes...
Loop, C:\*.*, 1, 1
{
FileAppend, %A_LoopFileFullPath%`n, ALL.txt
GuiControl, , ProgressBar, 12
GuiControl, , Process, Current process: "%A_LoopFileFullPath%"
}
.............. |
the script works fine .. except the "text" portion (which keeps changing)... shows some lines .. and blinks ...any tips?
Last edited by sosaited on Fri Mar 18, 2005 11:43 am; edited 1 time in total |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Thu Mar 17, 2005 9:00 pm Post subject: |
|
|
It blinks because GuiControl, , Process, Current process: "%A_LoopFileFullPath%" is nested in the loop, so each time it's looping the text control is changed (even if it's the same text, it's replaced and labled with the text).
To avoid this you should stick this line of code before the loop. _________________
 |
|
| Back to top |
|
 |
sosaited
Joined: 24 Feb 2005 Posts: 233
|
Posted: Fri Mar 18, 2005 12:27 am Post subject: |
|
|
thanks titan.. but how can that line work outsidethe Loop?.. i mean i am asking it to update the text by "A_LoopFileFullPath"..  |
|
| Back to top |
|
 |
ILL.1
Joined: 29 Sep 2004 Posts: 84
|
Posted: Fri Mar 18, 2005 12:56 pm Post subject: |
|
|
You could make "Current Process:" static text so that only the filename will flicker. _________________ ===============
----------ILL.1-----------
=============== |
|
| 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
|