Jump to content

question aboutinput boxes


Wollf
 Share

Recommended Posts

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

#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 by Wollf
Link to comment
Share on other sites

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

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...