maestrith wrote:
duderdude wrote:
maestrith wrote:
Code:
gui,add,button,grun,run
gui,show
return
run:
Run, \Users\%A_UserName%\Documents\Read Me 1.txt
return
That is how you would use a button to run a file.
ahh, so i just go in and actually edit the script and not do it actually on the gui. i will give it a look tomorrow and let you know if i have more questions. thank you for your time!!
No problem

yes, this program is only for creating and setting up the gui. The actual programming of what it does is up to you.
ok...i am slowly getting this.....
i got the script to do what i need, only trying to name the gui button is now being my next issue. when i use the size and coordinates for the button, they always appear in the name of the button. so for example, i want the button name to be "Read Me", the script will function properly, but the name of the button on the gui is "x21 y183 w151 h69, Read Me" i have tried experimenting and moving stuff around but to no avail. here is the line of code i am using. something is either wrong or in the wrong place.
Code:
Gui,Add,Button,grun,x21 y183 w151 h69,Read Me
Gui,1:Font,s12,Courier New
gui,show
return
run:
Run, \Users\%A_UserName%\Documents\Try Me\Read Me.txt
return
if i add grun to after the coordinates, the script will not run.
not sure whether to apologize or thank you from this point
