Wollf Posted December 7, 2008 Share Posted December 7, 2008 (edited) need some help how exactly i copy input box text and then paste it at notepad? I made 3 input boxes now How exactly i can make the checkbox when it is checked the 3 input box wont be writable and will keep last message but you will be able to copy it. it isnt very easy with ^c and ^v and need to know how to make them to copy input expandcollapse popup#include <GUIConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### Form= $Name_Adder = GUICreate("Name_Adder", 351, 274, 193, 115) GUISetFont(10, 400, 0, "Monotype Corsiva") GUISetBkColor(0xC0C0C0) $Input1 = GUICtrlCreateInput("Input1", 48, 64, 153, 23) $Input2 = GUICtrlCreateInput("Input2", 48, 116, 153, 23) $Input3 = GUICtrlCreateInput("Input3", 48, 168, 153, 21) $Name = GUICtrlCreateLabel("Name", 48, 36, 30, 19) $Label1 = GUICtrlCreateLabel("Mobile Phone", 48, 92, 69, 19) $Label2 = GUICtrlCreateLabel("Message", 48, 144, 41, 19) $Checkbox1 = GUICtrlCreateCheckbox("", 44, 212, 21, 21) $Label3 = GUICtrlCreateLabel("Check box so all names so they have same message", 72, 212, 192, 19) $1 = GUICtrlCreateButton("Send info", 232, 64, 77, 49, 0) GUICtrlSetOnEvent(-1, "Button1") $2 = GUICtrlCreateButton("Exit", 232, 124, 77, 49, 0) GUICtrlSetOnEvent(-1,"exit1") GUICtrlSetFont(-1, 15, 400, 0, "Monotype Corsiva") GUICtrlSetCursor (-1, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Func Button1() WinActivate("Name_Adder") send("^c") WinWaitActive("Name_Adder") ShellExecute("F:\PortableApps\Notepad++Portable\names_phones.txt") WinWaitActive("F:\PortableApps\Notepad++Portable\names_phones.txt - Notepad++") send("^v") send("{tab}") WinActivate("Name_Adder") send("{tab}") send("^c") WinActivate("F:\PortableApps\Notepad++Portable\names_phones.txt - Notepad++") send("^v") send("{tab}") WinActivate("Name_Adder") send("{tab}") send("^c") WinActivate("F:\PortableApps\Notepad++Portable\names_phones.txt - Notepad++") send("^v") send("{enter}") EndFunc Func exit1() exit EndFunc While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edited December 7, 2008 by Wollf Link to comment Share on other sites More sharing options...
BrettF Posted December 7, 2008 Share Posted December 7, 2008 Hi There, Please post your script. Thanks, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Wollf Posted December 7, 2008 Author Share Posted December 7, 2008 done now i need how to copy/paste input boxes because ^c and ^v isnt very good and one more thing i need is how to make checkbox when checked the 3rd input box wont be writeable but you can copy input and paste it Link to comment Share on other sites More sharing options...
Pain Posted December 7, 2008 Share Posted December 7, 2008 Look at ClipPut(), ClipGet(), GuiCtrlRead(), FileWrite() and some more related functions in the helpfile. Link to comment Share on other sites More sharing options...
Wollf Posted December 7, 2008 Author Share Posted December 7, 2008 for some reason with the code up there after it copies the first input it stops and dont continues to copy next input can anyone help? Link to comment Share on other sites More sharing options...
Pain Posted December 7, 2008 Share Posted December 7, 2008 Try add some sleeps. 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