S
Skye Weir-Mathews
I'm having an issue running scripts that use AutoIT against my windows
box, half the time the ControlSend function sends a string to the GUI
that should be all upcase, in a hodge-podge of different case letters.
Example:
I'm trying to send a string to a window with the following variables,
ext.
(this isn't the actual code, just the pertinent bits)
@datestring = date.year.to_s + "_" + date.month.to_s + "_" +
date.day.to_s
@hostname = `hostname`
@hostname = @hostname.upcase.to_s.chomp
autoit = WIN32OLE.new("AutoItX3.Control")
autoit.ControlSend("Enter SQL Database Information", "", 302,
"LMNIGHTLY#{@hostname}#{@datestring}")
Most of the time this will send a string like
"LMNIGHTLYHOSTNAME2007_5_25" but occasionally it sends a string like
"lMNIgHTlyHOsTNAME2007_5_2".
At other places in the script it has the send the same string to a
system call, and this always comes out correctly, so it seems like it's
just a problem with AutoIT.
Also the issue seems specific to some aspect of my windows configuration
because the script runs fine on some servers and not on others.
Has anyone had experience with this issue before?
box, half the time the ControlSend function sends a string to the GUI
that should be all upcase, in a hodge-podge of different case letters.
Example:
I'm trying to send a string to a window with the following variables,
ext.
(this isn't the actual code, just the pertinent bits)
@datestring = date.year.to_s + "_" + date.month.to_s + "_" +
date.day.to_s
@hostname = `hostname`
@hostname = @hostname.upcase.to_s.chomp
autoit = WIN32OLE.new("AutoItX3.Control")
autoit.ControlSend("Enter SQL Database Information", "", 302,
"LMNIGHTLY#{@hostname}#{@datestring}")
Most of the time this will send a string like
"LMNIGHTLYHOSTNAME2007_5_25" but occasionally it sends a string like
"lMNIgHTlyHOsTNAME2007_5_2".
At other places in the script it has the send the same string to a
system call, and this always comes out correctly, so it seems like it's
just a problem with AutoIT.
Also the issue seems specific to some aspect of my windows configuration
because the script runs fine on some servers and not on others.
Has anyone had experience with this issue before?