Not a member yet? Register for your free account!


Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 20:59

  • Please register to post and access all features, it's quick, easy and FREE!

 

[HELP]GUI label update/refresh

This is a discussion on [HELP]GUI label update/refresh within the AutoIt forum part of the Coders Den category; Huhu epvpers! Well my problem is: I made a label: Code: $k=GUICtrlCreateLabel("Password: " & $pw, 8, 10) When i change ...

Reply
 
Thread Tools
Old   #1
Senior Member
 
Join Date: Apr 2010
Posts: 298
Received Thanks: 61
[HELP]GUI label update/refresh


Huhu epvpers!

Well my problem is:

I made a label:
Code:
$k=GUICtrlCreateLabel("Password:  " & $pw, 8, 10)
When i change the password($pw variable), i cant refresh the label with the new password, tried this: GUICtrlSetData(), but doesnt work for me. Some1 have any idea?

__________________

Endorfin is offline  
Old 03/05/2012, 12:35   #2
Discworld
 
Join Date: Dec 2010
Posts: 2,753
Received Thanks: 928
Blog Entries: 1
Quote:
Originally Posted by Endorfin View Post
Huhu epvpers!

Well my problem is:

I made a label:
Code:
$k=GUICtrlCreateLabel("Password:  " & $pw, 8, 10)
When i change the password($pw variable), i cant refresh the label with the new password, tried this: GUICtrlSetData(), but doesnt work for me. Some1 have any idea?

PHP Code:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"623442192124)
$pw "hello"
$k=GUICtrlCreateLabel("Password:  " $pw810)
$read =GUICtrlCreateInput("",10,30,100,25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

EndSwitch
$read2=GUICtrlRead($read)
$pw $read2
GUICtrlSetData
($k,$pw)
WEnd 
This works
Havelock_Vetinari is offline  
Thanks
1 User
Endorfin (03/05/2012)
Old 03/05/2012, 13:21   #3
Senior Member
 
Join Date: Apr 2010
Posts: 298
Received Thanks: 61
Thx man, helped alot I called the function in wrong place in the code
Endorfin is offline  
Old 03/05/2012, 17:29   #4
Discworld
 
Join Date: Dec 2010
Posts: 2,753
Received Thanks: 928
Blog Entries: 1
Quote:
Originally Posted by Endorfin View Post
Thx man, helped alot I called the function in wrong place in the code
No problem
Havelock_Vetinari is offline  
Reply

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transparent Label *scarface* AutoIt 4 12/07/2011 22:03
Tooltip auf Label Njahs AutoIt 7 10/22/2011 22:40
[VB.NET] Label (Runterzählen) P00w Coding Tutorials 4 09/15/2011 15:28
Prozenanzeige im Label Ludder231 AutoIt 5 08/08/2011 13:21
Run - Label? little nhm GW Bot Discussions / Questions 3 02/22/2010 17:07



All times are GMT +2. The time now is 20:59.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.