Sign in to follow this  
Followers 0
Ndrom

What did i do wrong ?

3 posts in this topic

#1 ·  Posted (edited)

Hi ! im pretty new to autoit any idea why my script not working ?

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <MsgBoxConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 384, 90, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 8, 56, 281, 21)
$Button1 = GUICtrlCreateButton("Button1", 296, 8, 81, 73)
$Label1 = GUICtrlCreateLabel("Label1", 8, 16, 66, 28)
GUICtrlSetFont(-1, 14, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Local $data = ClipGet()
$data = $Label1
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
Exit
    Case $Button1
       ClipPut($Input1)


    EndSwitch
WEnd

 

Edited by Ndrom

Share this post


Link to post
Share on other sites



You need to read the value of the $input1 I believe

Share this post


Link to post
Share on other sites

Yeah, Palestinian is correct, you need to use GuiCtrlRead to get the value from $Input1

Share this post


Link to post
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
Sign in to follow this  
Followers 0