AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Gui text Help/tip

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
sosaited



Joined: 24 Feb 2005
Posts: 233

PostPosted: Thu Mar 17, 2005 8:47 pm    Post subject: Gui text Help/tip Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Thu Mar 17, 2005 9:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sosaited



Joined: 24 Feb 2005
Posts: 233

PostPosted: Fri Mar 18, 2005 12:27 am    Post subject: Reply with quote

thanks titan.. but how can that line work outsidethe Loop?.. i mean i am asking it to update the text by "A_LoopFileFullPath".. Confused
Back to top
View user's profile Send private message Send e-mail MSN Messenger
ILL.1



Joined: 29 Sep 2004
Posts: 84

PostPosted: Fri Mar 18, 2005 12:56 pm    Post subject: Reply with quote

You could make "Current Process:" static text so that only the filename will flicker.
_________________
===============
----------ILL.1-----------
===============
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group