MrVietA2 Posted September 20, 2011 Share Posted September 20, 2011 (edited) Hi everyone ! I have created a GUI and a button called "E". I want to click on the button -> the button name changes to "V" and click again then changed to "E" .... I do not know how to do this, please help me! Thanks ! Edited September 20, 2011 by MrVietA2 Link to comment Share on other sites More sharing options...
JohnOne Posted September 20, 2011 Share Posted September 20, 2011 Look at GUICtrlRead() and its related functions AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
MrVietA2 Posted September 20, 2011 Author Share Posted September 20, 2011 (edited) Look at GUICtrlRead() and its related functionsI can do it now, I used Switch...case . Thanks ! P/s : How do I change the text of a tooltip when the tooltip that has a text? Sr, my English is bad Edited September 20, 2011 by MrVietA2 Link to comment Share on other sites More sharing options...
JoHanatCent Posted September 20, 2011 Share Posted September 20, 2011 How do I change the text of a tooltip when the tooltip that has a text? Sr, my English is bad Just run the tooltip command with the new contents. MrVietA2 1 Link to comment Share on other sites More sharing options...
MrVietA2 Posted September 20, 2011 Author Share Posted September 20, 2011 (edited) Just run the tooltip command with the new contents. I have this : $4 = GUICtrlCreateLabel("Open", 296, 235, 165, 21) GUICtrlSetTip( -1,"Open your computer")] How can I change the text : "Open your computer" to "Open my document" when I press F2 ? Help me,please ! Thanks Edited September 20, 2011 by MrVietA2 Link to comment Share on other sites More sharing options...
JohnOne Posted September 20, 2011 Share Posted September 20, 2011 GUICtrlSetTip( $4,"whatever") MrVietA2 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
MrVietA2 Posted September 20, 2011 Author Share Posted September 20, 2011 (edited) GUICtrlSetTip( $4,"whatever") Oh, thanks so much ! I have 1 question : " How can I change " button background " ? It means the "text of the button" is on "button background" .Like this : Thanks Edited September 20, 2011 by MrVietA2 Link to comment Share on other sites More sharing options...
JohnOne Posted September 20, 2011 Share Posted September 20, 2011 I think that sort of thing (drawing your own buttons) is some sort of GDI voodoo. Sorry cant help with that. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
MrVietA2 Posted September 20, 2011 Author Share Posted September 20, 2011 I think that sort of thing (drawing your own buttons) is some sort of GDI voodoo. Sorry cant help with that. Ok, thanks Link to comment Share on other sites More sharing options...
JohnOne Posted September 20, 2011 Share Posted September 20, 2011 You could always just create a gui picture control and use it as a button. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now