Jump to content

reading data input


Recommended Posts

reading data input problem :(

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 382, 256)
$site = GUICtrlCreateInput("", 16, 48, 169, 21)
$Extension = GUICtrlCreateInput("", 200, 50, 161, 21)
$Button1 = GUICtrlCreateButton("Link create", 88, 176, 195, 33)
$Label1 = GUICtrlCreateLabel("Link:", 24, 88, 27, 17)
$Label2 = GUICtrlCreateLabel("Sample Link:http://autoitscript.com", 16, 24, 167, 20)
$Label3 = GUICtrlCreateLabel("Extension:AbFrT", 200, 24, 113, 17)
$Link = GUICtrlCreateInput("", 24, 112, 337, 21)
GUISetState(@SW_SHOW)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

Case $Button1
GUICtrlSetData($Link, GUICtrlRead($site,$Extension))

    EndSwitch
WEnd
Link to comment
Share on other sites

Shot in the dark:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 382, 256)
$site = GUICtrlCreateInput("", 16, 48, 169, 21)
$Extension = GUICtrlCreateInput("", 200, 50, 161, 21)
$Button1 = GUICtrlCreateButton("Link create", 88, 176, 195, 33)
$Label1 = GUICtrlCreateLabel("Link:", 24, 88, 27, 17)
$Label2 = GUICtrlCreateLabel("Sample Link:http://autoitscript.com", 16, 24, 167, 20)
$Label3 = GUICtrlCreateLabel("Extension:AbFrT", 200, 24, 113, 17)
$Link = GUICtrlCreateInput("", 24, 112, 337, 21)
GUISetState(@SW_SHOW)
While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            GUICtrlSetData($Link, GUICtrlRead($site) & GUICtrlRead($Extension))
    EndSwitch
WEnd
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

  • Moderators

Did this resolve your problem or not? If not, you need to provide more information, so we're not guessing at what you're having an issue with.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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