Gerben150 Posted September 13, 2007 Share Posted September 13, 2007 Hello, My english is verry bad... but i gif it a try. (I`m dutch) I have a input field but you can type all the caracters in in... is it poseble to have a input field were you only can type numbers? ANd how you do that? (if its poseble) Greets, Gerben Link to comment Share on other sites More sharing options...
Monamo Posted September 13, 2007 Share Posted September 13, 2007 (edited) Hello,My english is verry bad... but i gif it a try.(I`m dutch)I have a input field but you can type all the caracters in in... is it poseble to havea input field were you only can type numbers?ANd how you do that? (if its poseble)Greets,GerbenUse $ES_NUMBER for the style when you use GUICtrlCreateInput()Edit: The above example is for a GUI input box - as for standard InputBox() creation, I'd do an IsNumber() check on it. Edited September 13, 2007 by Monamo - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
Gerben150 Posted September 13, 2007 Author Share Posted September 13, 2007 Heey, Thank for your reply. I use GUICtrlCreateInput() i think Maby should this help... my code... expandcollapse popup#include <GUIConstants.au3> GUICreate("G-SOFT -ALR- V1.0") GUISetState (@SW_SHOW) GUICtrlCreateLabel ("Hartelijk dank voor het gebruiken van de G-SOFT Activation Line Remover.", 10, 10) GUICtrlCreateLabel ("Dit programma helpt u met het verwijderen van het grijze activatie", 10, 25) GUICtrlCreateLabel ("randje. U hoeft alleen hieronder de naam, hoogte en breedte in te vullen", 10, 40) GUICtrlCreateLabel ("en de rest wordt voor u gedaan.", 10, 55) GUICtrlCreateLabel ("http://www.g-soft.nl", 10, 80) Opt("GUICoordMode",2) GUICtrlCreateGroup ("Gegevens van swf", -90, 17, 355, 220) GUICtrlCreateLabel ("Naam van uw flash:", -345, -180, 95, 20) $swf_naam = GUICtrlCreateInput ( "", 2, -23, 190, 20) GUICtrlCreateLabel (".swf", 3, -15, 50) GUICtrlCreateLabel ("Dus zonder de extentie. (swf)", -240, -4, 150) GUICtrlCreateLabel ("Hoogte van de swf:", -250, 25, 97) $swf_hoogte = GUICtrlCreateInput ( "", 0, -23, 50, 20) GUICtrlCreateLabel ("Pixels", 3, -17, 50) GUICtrlCreateLabel ("Breedte van de swf:", -200, 45, 97) $swf_breedte = GUICtrlCreateInput ( "", 0, -23, 50, 20) GUICtrlCreateLabel ("Pixels", 3, -17, 50) $Button_1 = GUICtrlCreateButton ("Exit", -225, 65, 100) $Button_2 = GUICtrlCreateButton ("Voltooien", 180, -20, 100) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 Exit Case $msg = $button_2 Run('Notepad.exe') WinWaitActive("Naamloos - Kladblok") Send("") EndSelect Wend Link to comment Share on other sites More sharing options...
Valuater Posted September 13, 2007 Share Posted September 13, 2007 expandcollapse popup#include <GUIConstants.au3> GUICreate("G-SOFT -ALR- V1.0") GUISetState (@SW_SHOW) GUICtrlCreateLabel ("Hartelijk dank voor het gebruiken van de G-SOFT Activation Line Remover.", 10, 10) GUICtrlCreateLabel ("Dit programma helpt u met het verwijderen van het grijze activatie", 10, 25) GUICtrlCreateLabel ("randje. U hoeft alleen hieronder de naam, hoogte en breedte in te vullen", 10, 40) GUICtrlCreateLabel ("en de rest wordt voor u gedaan.", 10, 55) GUICtrlCreateLabel ("http://www.g-soft.nl", 10, 80) Opt("GUICoordMode",2) GUICtrlCreateGroup ("Gegevens van swf", -90, 17, 355, 220) GUICtrlCreateLabel ("Naam van uw flash:", -345, -180, 95, 20) $swf_naam = GUICtrlCreateInput ( "", 2, -23, 190, 20, $ES_NUMBER) GUICtrlCreateLabel (".swf", 3, -15, 50) GUICtrlCreateLabel ("Dus zonder de extentie. (swf)", -240, -4, 150) GUICtrlCreateLabel ("Hoogte van de swf:", -250, 25, 97) $swf_hoogte = GUICtrlCreateInput ( "", 0, -23, 50, 20, $ES_NUMBER) GUICtrlCreateLabel ("Pixels", 3, -17, 50) GUICtrlCreateLabel ("Breedte van de swf:", -200, 45, 97) $swf_breedte = GUICtrlCreateInput ( "", 0, -23, 50, 20, $ES_NUMBER) GUICtrlCreateLabel ("Pixels", 3, -17, 50) $Button_1 = GUICtrlCreateButton ("Exit", -225, 65, 100) $Button_2 = GUICtrlCreateButton ("Voltooien", 180, -20, 100) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 Exit Case $msg = $button_2 Run('Notepad.exe') WinWaitActive("Naamloos - Kladblok") Send("") EndSelect Wend 8) Link to comment Share on other sites More sharing options...
Gerben150 Posted September 13, 2007 Author Share Posted September 13, 2007 YEEEEEEEEEHHHH THANKS!!!!! bhote of corse:P pfff i most go learn english Greets, gerben Link to comment Share on other sites More sharing options...
Valuater Posted September 13, 2007 Share Posted September 13, 2007 YEEEEEEEEEHHHH THANKS!!!!! gerbenLOLWelcome8) Link to comment Share on other sites More sharing options...
Gerben150 Posted September 13, 2007 Author Share Posted September 13, 2007 ohw... aaa here comes my second stupid question.... I would like to send a " But if i use this code: Send(""") He doens`t work... how can u send a " ? is this poseble? Greets, gerben Link to comment Share on other sites More sharing options...
Valuater Posted September 13, 2007 Share Posted September 13, 2007 Run("notepad.exe") WinWaitActive("") Send('"') 8) Link to comment Share on other sites More sharing options...
Gerben150 Posted September 14, 2007 Author Share Posted September 14, 2007 hmmm thats easy YES!!! THANKS for you help! GREETS gerben 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