Sign in to follow this  
Followers 0
chipie

problem to click ton a button no ie

9 posts in this topic

hello i have make some search but i dont have find a ansewer

i whan to click on the x button on the virtual keybord of window i have read documentation try all comand whith this id (79) and now in need your help

Vidada

big big thanks

>>>> Window <<<<

Title: On-Screen Keyboard

Class: OSKMainClass

Position: 465, 60

Size: 408, 195

Style: 0x14CA0000

ExStyle: 0x08040108

Handle: 0x001604FA

>>>> Control <<<<

Class: N79

Instance: 1

ClassnameNN: N791

Advanced (Class): [CLASS:N79; INSTANCE:1]

ID: 79

Text: X

Position: 81, 97

Size: 25, 22

ControlClick Coords: 14, 10

Style: 0x54800000

ExStyle: 0x00000000

Handle: 0x0006070C

>>>> Mouse <<<<

Position: 563, 216

Cursor ID: 0

Color: 0x000000

>>>> StatusBar <<<<

>>>> Visible Text <<<<

esc

F1

F2

F3

F4

F5

F6

F7

F8

F9

F10

F11

F12

~

!

@

#

$

%

^

&

*

(

)

_

+

bksp

tab

Q

W

E

R

T

Y

U

I

O

P

{

}

|

lock

A

S

D

F

G

H

J

K

L

:

''

ent

shft

Z

X

C

V

B

N

M

<

>

?

shft

ctrl

winlogoDn

alt

alt

MenuKeyDn

IDB_UPDNARW

IDB_DNDNARW

IDB_LFDNARW

IDB_RHDNARW

>>>> Hidden Text <<<<

psc

slk

pau

pup

pdn

nlk

/

*

-

ins

7

8

9

+

hm

|

4

5

6

del

end

1

2

3

IDB_UPDNARW

IDB_LFDNARW

alt

winlogoDn

MenuKeyDn

ctrl

0

.

ent

IDB_DNDNARW

IDB_RHDNARW

Share this post


Link to post
Share on other sites



If you would like to actually click the onscreen keyboard for some reason then use MouseClick function, but if you would just like to simulate a keyboard press of that button then use Send.

Share this post


Link to post
Share on other sites

i realy need to use a click function but i have use a big time to try with click metode and no result

Share this post


Link to post
Share on other sites

MouseClick("left", x, y, 1, 0) ;look in the helpfiles(F1) for more help with this function

x, y being the coordinates to your button. Find them out with Autoit Window Info.

Share this post


Link to post
Share on other sites

i whant to use the id else if i mouve the virtual keybord the x and y are in error

Share this post


Link to post
Share on other sites

ControlClick then

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

i thinks its ok but was is my code

WinWaitActive("Untitled - Notepad")

ControlClick("On-Screen Keyboard", "X", "[iD:79]")

virtual keybord lost automaticaly the focus and controlclic dont whant to press x if he dont have the focus...

if i can use the position off the virtual keybord i can add the position off button and click with the normal click but i dont know how to do that

Edited by chipie

Share this post


Link to post
Share on other sites

i have test the function ControlGetPos

$pos = ControlGetPos("[CLASS:Notepad]", "", "Edit1")

MsgBox(0, "Window Stats:", "POS: " & $pos[0] & "," & $pos[1] & " SIZE: " & $pos[2] & "," & $pos[3] )

>>>> Window <<<<

Title: Untitled - Notepad

Class: Notepad

Position: 3, 296

Size: 767, 201

Style: 0x14CF0000

ExStyle: 0x00000110

Handle: 0x000707D4

>>>> Control <<<<

Class: Edit

Instance: 1

ClassnameNN: Edit1

Advanced (Class): [CLASS:Edit; INSTANCE:1]

ID: 15

Text:

Position: 0, 0

Size: 759, 147

ControlClick Coords: 513, 33

Style: 0x50300104

ExStyle: 0x00000200

Handle: 0x000407D0

>>>> Mouse <<<<

Position: 520, 379

Cursor ID: 0

Color: 0xFFFFFF

>>>> StatusBar <<<<

1:

2: Ln 1, Col 1

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

but in my case

WinWaitActive("On-Screen Keyboard")

$pos = ControlGetPos("[CLASS:OSKMainClass]", "", "N791")

MsgBox(0, "Window Stats:", "POS: " & $pos[0] & "," & $pos[1] & " SIZE: " & $pos[2] & "," & $pos[3] )

that dont works...

Share this post


Link to post
Share on other sites

up !

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