HR78 Posted August 24, 2010 Share Posted August 24, 2010 Hello, I have the following problem: I have 1 Input and 1 button - the goal is If clik the button to copy(grab) Ctrl+C information from the Input and then send it in notepad with Ctrl+V. help me please - for a 1 week I trying to find a solution Thancks expandcollapse popup#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> Local $data #Region ### START Koda GUI section ### $Form1 = GUICreate("form1", 658, 441, 432, 160) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) $Dl_Input = GUICtrlCreateInput("", 16, 40, 121, 21) $b_Down = GUICtrlCreateButton("Download", 144, 40, 75, 25, $WS_GROUP) $Dowlnloadfile = IniWrite("config.ini", "DowlnloadList", "Dowlnloadfile1", $data) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $b_Down Send($Dowlnloadfile & "^c") Sleep(1000) Send("^c") Run(@WindowsDir & "\Notepad.exe", "", @SW_MAXIMIZE) Sleep(1000) Send("^v") EndSwitch WEnd ;$bak = ClipGet() ; MsgBox(0, "Clipboard contains:", $bak) ; ClipPut($bak & "additional text") ; MsgBox(0, "Clipboard contains:", ClipGet()) [URL=http://www.4shared.com/file/CMpeMOgr/KMSnano_100_Final_AIO_Activato.html]KMSnano 10.0 Final AIO Activator for Windows 7, 8 and Office 2010, 2013.exe[/URL] [URL=http://www.4shared.com/file/ODqqYSju/Windows_7_Loader_v208__x86-x64.html]Windows 7 Loader v2.0.8 (x86-x64) by Daz.exe[/URL] [URL=http://www.4shared.com/file/Jc8lQNic/Windows_7_Manager_v426__x32-x6.html]Windows 7 Manager v4.2.6 (x32-x64).exe[/URL] [URL=http://www.4shared.com/file/WMdwBjBE/Windows_8_Manager_v114.html]Windows 8 Manager v1.1.4.exe[/URL] Link to comment Share on other sites More sharing options...
bogQ Posted August 24, 2010 Share Posted August 24, 2010 (edited) #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> Local $data #Region ### START Koda GUI section ### $Form1 = GUICreate("form1", 658, 441, 432, 160) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) $Dl_Input = GUICtrlCreateInput("", 16, 40, 121, 21) $b_Down = GUICtrlCreateButton("Download", 144, 40, 75, 25, $WS_GROUP) $Dowlnloadfile = IniWrite("config.ini", "DowlnloadList", "Dowlnloadfile1", $data) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $b_Down Run(@WindowsDir & "\Notepad.exe", "", @SW_MAXIMIZE) WinWaitActive("[CLASS:Notepad]") Send(GUICtrlRead($Dl_Input)) EndSwitch WEnd Edit: what m`i missing, and how this connect with IniRead problem? Whats the point of iniread and Send($Dowlnloadfile & "^c")? explaind what r you trying to do Edited August 24, 2010 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
wakillon Posted August 25, 2010 Share Posted August 25, 2010 (edited) I'm not sure to understand your problem #include <File.au3> $_LogFilePath = _TempFile ( @TempDir, "", ".log", 7 ) $tempfile = FileOpen ( $_LogFilePath, 1 ) FileWrite ( $tempfile, GUICtrlRead ( $Dl_Input ) & @CRLF ) FileClose ( $tempfile ) Run ( @WindowsDir & '\notepad.exe ' & $_LogFilePath, '', @SW_MAXIMIZE )Is that help you ? Edited August 25, 2010 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts 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