gcue Posted May 2, 2008 Share Posted May 2, 2008 i read the help and i think the only default type is password type. is there a way to make the default case CAPS - any ideas? thanks much Link to comment Share on other sites More sharing options...
monoceres Posted May 2, 2008 Share Posted May 2, 2008 This is a bit ugly, but it works: Opt("GUIOnEventMode",1) Global $string="" GUICreate("Hello",300,200) $edit=GUICtrlCreateEdit("",10,10,280,180) GUISetOnEvent(-3,"close") GUISetState() while 1 If $string<>GUICtrlRead($edit) Then GUICtrlSetData($edit,StringUpper(GUICtrlRead($edit))) $string=GUICtrlRead($edit) EndIf sleep(10) WEnd FUnc close () Exit EndFunc Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
Triblade Posted May 2, 2008 Share Posted May 2, 2008 (edited) I guess your talking about the GUICtrlCreateInput or GUICtrlCreateEdit ? Maybe GUICtrlSetData($input, StringUpper(GUICtrlRead($input))) ? Edit: Mono you beat me again!! Bleh! *sticks tongue out* Edited May 2, 2008 by Triblade My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger) Link to comment Share on other sites More sharing options...
gcue Posted May 2, 2008 Author Share Posted May 2, 2008 thank you fellas! works =) Link to comment Share on other sites More sharing options...
zorphnog Posted May 2, 2008 Share Posted May 2, 2008 Or the easy way... #include <GUIConstants.au3> GUICreate("Hello",300,200) $edit=GUICtrlCreateEdit("",10,10,280,180,BitOR($GUI_SS_DEFAULT_EDIT,$ES_UPPERCASE)) GUISetState() Do $nMsg = GUIGetMsg() Until $nMsg = $GUI_EVENT_CLOSE Link to comment Share on other sites More sharing options...
Triblade Posted May 2, 2008 Share Posted May 2, 2008 Or the easy way... #include <GUIConstants.au3> GUICreate("Hello",300,200) $edit=GUICtrlCreateEdit("",10,10,280,180,BitOR($GUI_SS_DEFAULT_EDIT,$ES_UPPERCASE)) GUISetState() Do $nMsg = GUIGetMsg() Until $nMsg = $GUI_EVENT_CLOSEHeh, I give... This one's way better My active project(s): A-maze-ing generator (generates a maze) My archived project(s): Pong3 (Multi-pinger) 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