Cannot control click a button in Autoit scripting
up vote
0
down vote
favorite
I have been trying to automate a button click using an auto IT script in an application.
The window title of the application is EDI867 Tracer and the button I am trying to click is Browse.
The control info that I got from Autoit Window Info is as below
>>>> Window <<<<
Title: EDI867 TRACER
Class: WindowsForms10.Window.8.app.0.378734a
Position: 0, 0
Size: 1366, 728
Style: 0x16010000
ExStyle: 0x00050000
Handle: 0x00E606C6
>>>> Control <<<<
Class: WindowsForms10.Window.8.app.0.378734a
Instance: 5
ClassnameNN: WindowsForms10.Window.8.app.0.378734a5
Name: btnBrowse
Advanced (Class): [NAME:btnBrowse]
ID: 7998122
Text:
Position: 1236, 70
Size: 93, 24
ControlClick Coords: 25, 11
Style: 0x56010000
ExStyle: 0x00000000
Handle: 0x007A0AAA
>>>> Mouse <<<<
Position: 1261, 81
Cursor ID: 0
Color: 0xE5FFF2
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
EDI867
Comparison
File
Customer :
CalComp :
Status :
EDI TRACER
>>>> Hidden Text <<<<
EDI861
File
I am trying to control click this button. I tried all the possible controlclick syntax that I know using the above window info but nothing seems to automate the button click.
I am open for suggestions to find a solution.
script automation autoit
add a comment |
up vote
0
down vote
favorite
I have been trying to automate a button click using an auto IT script in an application.
The window title of the application is EDI867 Tracer and the button I am trying to click is Browse.
The control info that I got from Autoit Window Info is as below
>>>> Window <<<<
Title: EDI867 TRACER
Class: WindowsForms10.Window.8.app.0.378734a
Position: 0, 0
Size: 1366, 728
Style: 0x16010000
ExStyle: 0x00050000
Handle: 0x00E606C6
>>>> Control <<<<
Class: WindowsForms10.Window.8.app.0.378734a
Instance: 5
ClassnameNN: WindowsForms10.Window.8.app.0.378734a5
Name: btnBrowse
Advanced (Class): [NAME:btnBrowse]
ID: 7998122
Text:
Position: 1236, 70
Size: 93, 24
ControlClick Coords: 25, 11
Style: 0x56010000
ExStyle: 0x00000000
Handle: 0x007A0AAA
>>>> Mouse <<<<
Position: 1261, 81
Cursor ID: 0
Color: 0xE5FFF2
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
EDI867
Comparison
File
Customer :
CalComp :
Status :
EDI TRACER
>>>> Hidden Text <<<<
EDI861
File
I am trying to control click this button. I tried all the possible controlclick syntax that I know using the above window info but nothing seems to automate the button click.
I am open for suggestions to find a solution.
script automation autoit
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have been trying to automate a button click using an auto IT script in an application.
The window title of the application is EDI867 Tracer and the button I am trying to click is Browse.
The control info that I got from Autoit Window Info is as below
>>>> Window <<<<
Title: EDI867 TRACER
Class: WindowsForms10.Window.8.app.0.378734a
Position: 0, 0
Size: 1366, 728
Style: 0x16010000
ExStyle: 0x00050000
Handle: 0x00E606C6
>>>> Control <<<<
Class: WindowsForms10.Window.8.app.0.378734a
Instance: 5
ClassnameNN: WindowsForms10.Window.8.app.0.378734a5
Name: btnBrowse
Advanced (Class): [NAME:btnBrowse]
ID: 7998122
Text:
Position: 1236, 70
Size: 93, 24
ControlClick Coords: 25, 11
Style: 0x56010000
ExStyle: 0x00000000
Handle: 0x007A0AAA
>>>> Mouse <<<<
Position: 1261, 81
Cursor ID: 0
Color: 0xE5FFF2
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
EDI867
Comparison
File
Customer :
CalComp :
Status :
EDI TRACER
>>>> Hidden Text <<<<
EDI861
File
I am trying to control click this button. I tried all the possible controlclick syntax that I know using the above window info but nothing seems to automate the button click.
I am open for suggestions to find a solution.
script automation autoit
I have been trying to automate a button click using an auto IT script in an application.
The window title of the application is EDI867 Tracer and the button I am trying to click is Browse.
The control info that I got from Autoit Window Info is as below
>>>> Window <<<<
Title: EDI867 TRACER
Class: WindowsForms10.Window.8.app.0.378734a
Position: 0, 0
Size: 1366, 728
Style: 0x16010000
ExStyle: 0x00050000
Handle: 0x00E606C6
>>>> Control <<<<
Class: WindowsForms10.Window.8.app.0.378734a
Instance: 5
ClassnameNN: WindowsForms10.Window.8.app.0.378734a5
Name: btnBrowse
Advanced (Class): [NAME:btnBrowse]
ID: 7998122
Text:
Position: 1236, 70
Size: 93, 24
ControlClick Coords: 25, 11
Style: 0x56010000
ExStyle: 0x00000000
Handle: 0x007A0AAA
>>>> Mouse <<<<
Position: 1261, 81
Cursor ID: 0
Color: 0xE5FFF2
>>>> StatusBar <<<<
>>>> ToolsBar <<<<
>>>> Visible Text <<<<
EDI867
Comparison
File
Customer :
CalComp :
Status :
EDI TRACER
>>>> Hidden Text <<<<
EDI861
File
I am trying to control click this button. I tried all the possible controlclick syntax that I know using the above window info but nothing seems to automate the button click.
I am open for suggestions to find a solution.
script automation autoit
script automation autoit
asked Oct 3 '15 at 7:09
Dragonborn
82316
82316
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Try getting the valid handle of the window using attributes.
Also get the handle of the control by using AutoIT window info.
The button class should be something like CLASS:WindowsForms10.BUTTON.app.0.378734a and its instance should be also given (say 5). Then script looks like:
Local $hSecWnd=WinGetHandle("[CLASS:WindowsForms10.Window.8.app.0.378734a; W:1366; H:728]")
ControlClick($hSecWnd,"","[CLASS:WindowsForms10.BUTTON.app.0.378734a; INSTANCE:5]")
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f981593%2fcannot-control-click-a-button-in-autoit-scripting%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Try getting the valid handle of the window using attributes.
Also get the handle of the control by using AutoIT window info.
The button class should be something like CLASS:WindowsForms10.BUTTON.app.0.378734a and its instance should be also given (say 5). Then script looks like:
Local $hSecWnd=WinGetHandle("[CLASS:WindowsForms10.Window.8.app.0.378734a; W:1366; H:728]")
ControlClick($hSecWnd,"","[CLASS:WindowsForms10.BUTTON.app.0.378734a; INSTANCE:5]")
add a comment |
up vote
0
down vote
Try getting the valid handle of the window using attributes.
Also get the handle of the control by using AutoIT window info.
The button class should be something like CLASS:WindowsForms10.BUTTON.app.0.378734a and its instance should be also given (say 5). Then script looks like:
Local $hSecWnd=WinGetHandle("[CLASS:WindowsForms10.Window.8.app.0.378734a; W:1366; H:728]")
ControlClick($hSecWnd,"","[CLASS:WindowsForms10.BUTTON.app.0.378734a; INSTANCE:5]")
add a comment |
up vote
0
down vote
up vote
0
down vote
Try getting the valid handle of the window using attributes.
Also get the handle of the control by using AutoIT window info.
The button class should be something like CLASS:WindowsForms10.BUTTON.app.0.378734a and its instance should be also given (say 5). Then script looks like:
Local $hSecWnd=WinGetHandle("[CLASS:WindowsForms10.Window.8.app.0.378734a; W:1366; H:728]")
ControlClick($hSecWnd,"","[CLASS:WindowsForms10.BUTTON.app.0.378734a; INSTANCE:5]")
Try getting the valid handle of the window using attributes.
Also get the handle of the control by using AutoIT window info.
The button class should be something like CLASS:WindowsForms10.BUTTON.app.0.378734a and its instance should be also given (say 5). Then script looks like:
Local $hSecWnd=WinGetHandle("[CLASS:WindowsForms10.Window.8.app.0.378734a; W:1366; H:728]")
ControlClick($hSecWnd,"","[CLASS:WindowsForms10.BUTTON.app.0.378734a; INSTANCE:5]")
edited Nov 14 '15 at 7:32
karel
9,17793138
9,17793138
answered Nov 14 '15 at 7:23
VineshB
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f981593%2fcannot-control-click-a-button-in-autoit-scripting%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown