| View previous topic :: View next topic |
| Author |
Message |
merry Guest
|
Posted: Mon Dec 10, 2007 12:45 pm Post subject: Change Button Title? |
|
|
How can I change the title of a GUI BUTTON?
OK to &OK. |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Mon Dec 10, 2007 12:55 pm Post subject: |
|
|
| Just do it. |
|
| Back to top |
|
 |
Trikster
Joined: 15 Jul 2007 Posts: 1224 Location: Enterprise, Alabama
|
Posted: Mon Dec 10, 2007 3:30 pm Post subject: |
|
|
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 |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Mon Dec 10, 2007 8:28 pm Post subject: |
|
|
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 |
|
 |
merry Guest
|
Posted: Tue Dec 11, 2007 4:32 am Post subject: |
|
|
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
|
Posted: Tue Dec 11, 2007 5:08 am Post subject: |
|
|
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 |
|
 |
merry Guest
|
Posted: Tue Dec 11, 2007 5:16 am Post subject: |
|
|
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
|
Posted: Tue Dec 11, 2007 5:33 am Post subject: |
|
|
Oops
its working this is my mistake |
|
| Back to top |
|
 |
Extreminador
Joined: 05 May 2008 Posts: 22
|
Posted: Tue May 20, 2008 5:44 pm Post subject: |
|
|
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 |
|
 |
|