Jump to content

IniRead and Copy Problem


HR78
 Share

Recommended Posts

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

#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

#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 by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
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

I'm not sure to understand your problem Posted Image

#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 by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...