Jump to content

Recommended Posts

Posted

Hello, quick question...

need to get the information in this box:

$name = GUICtrlCreateInput("Caller's Name", 96, 40, 161, 21)
GUICtrlSetOnEvent(-1, "nameChange")

to be sent to this location:

ControlSend("ServiceCenter Enterprise Client - New Interaction - ServiceCenter Enterprise Client", "" , "[CLASS:SWT_Window0; INSTANCE:169]" , "caller name- >>> this should be their name!! <<<< ")

when i click this button:

Func reClick()
Posted

Hello, quick question...

need to get the information in this box:

$name = GUICtrlCreateInput("Caller's Name", 96, 40, 161, 21)
GUICtrlSetOnEvent(-1, "nameChange")

to be sent to this location:

ControlSend("ServiceCenter Enterprise Client - New Interaction - ServiceCenter Enterprise Client", "" , "[CLASS:SWT_Window0; INSTANCE:169]" , "caller name- >>> this should be their name!! <<<< ")

when i click this button:

Func reClick()
Welcome to the AutoIt forums kenzee ;)

If you want the name to be set when you press a button then create a button and set the event for the button.

Then in the function have your ControlSend. The contents of the edit are found with GuiCtrlRead($name).

Opt("GUIOnEventMode",1);set on event mode
;guicreate....

$name = GUICtrlCreateInput("Caller's Name", 96, 40, 161, 21)
GUICtrlSetOnEvent(-1, "nameChange")

$btn1 = GuiCtrlCreateButton("Set name",..................
GuiCtrlSetOnEvent(-1,"reClick")


Func reClick()
 ControlSend("ServiceCenter Enterprise Client - New Interaction - ServiceCenter Enterprise Client", "" , "[CLASS:SWT_Window0; INSTANCE:169]" , GuiCtrlRead($name))
endfunc
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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
×
×
  • Create New...