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 

Change Button Title?

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





PostPosted: Mon Dec 10, 2007 12:45 pm    Post subject: Change Button Title? Reply with quote

How can I change the title of a GUI BUTTON?
OK to &OK.
Back to top
BoBoĻ
Guest





PostPosted: Mon Dec 10, 2007 12:55 pm    Post subject: Reply with quote

Just do it.
Back to top
Trikster



Joined: 15 Jul 2007
Posts: 1224
Location: Enterprise, Alabama

PostPosted: Mon Dec 10, 2007 3:30 pm    Post subject: Reply with quote

Right click on the script, hit edit then find the line that adds the button to the GUI, and change the very last part of that line to &OK.
_________________
ScriptPad | ~dieom | dieom | izwian2k7 | Ian | God
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Mon Dec 10, 2007 8:28 pm    Post subject: Reply with quote

he might mean in a program that is not written in AHK.

if that is the case, try Control
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
merry
Guest





PostPosted: Tue Dec 11, 2007 4:32 am    Post subject: Reply with quote

Yes engunneer is right i want this
can anyone give me an Example?

please...
Back to top
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Tue Dec 11, 2007 5:08 am    Post subject: Reply with quote

please give an example target program

Code:

run, calc.exe
winwait, Calculator
sleep, 100
ControlSetText, Button4, yay, Calculator


this works according to window spy.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
merry
Guest





PostPosted: Tue Dec 11, 2007 5:16 am    Post subject: Reply with quote

engunneer thanks for the help
but your script is not working for me
i am using v1.0.47.05
Back to top
merry
Guest





PostPosted: Tue Dec 11, 2007 5:33 am    Post subject: Reply with quote

Oops Embarassed
its working this is my mistake
Back to top
Extreminador



Joined: 05 May 2008
Posts: 22

PostPosted: Tue May 20, 2008 5:44 pm    Post subject: Reply with quote

Hi.
I have already try the code above with the window title chage to Calculadora, but the scripot donīt work.

Have chanhe the code to use with ahk_class and itīs not working weither why ?

Here is the codes that i have tray

Code:

run, calc.exe
winwait, Calculadora
sleep, 100
ControlSetText, Button4, yay, Calculadora


Note:Have change to Calculadora becouse my calc.exe process is in Portuguese.

Code:

run, calc.exe
winwait, ahk_class SciCalc
sleep, 100
ControlSetText, Button4, humm, ahk_class SciCalc


In both script he runīs the process and in both script the winwait works but itīs seens that the button4 name donīt change in both scripts.
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