Sign in to follow this  
Followers 0
jimmyjmmy

script to created yahoo ID

5 posts in this topic

Hi,

I am writing a script to register a ID from yahoo.com but I got some problems which I hope members will help me to solve.

(1) I first use _IECreate to go to yahoo relevant site then,

(2) There's a pop out regarding "secure or unsecure log in" of which I want to press yes but I was unsucessful.

Attach herewith are the script and the windows info.

Thanks

------------script ------------------------------

#include <IE.au3>

_IECreate ("https://edit.yahoo.com/config/eval_register?.intl=aa&new=1&.done=http%3A//mail.yahoo.com&.src=ym&.v=0&.u=7o046rh33jssq&partner=&.partner=&pkg=&stepid=&.p=&promo=&.last=")

WinWaitActive ("Security Information")

ControlClick ("Security Information","This page contains both secure and nonsecure items","Button1")

----------------------windows info----------------

Press CTRL-ALT-F to freeze the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: Security Information

Class: #32770

Size: X: 503 Y: 249 W: 332 H: 150

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 612 Y: 373

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0xD6D3CE Dec: 14078926

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 72 Y: 93 W: 75 H: 23

Control ID: 6

ClassNameNN: Button1

Text: &Yes

Style: 0x50010001

ExStyle: 0x00000004

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

&Yes

&No

&More Info

This page contains both secure and nonsecure items.

Do you want to display the nonsecure items?

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

Share this post


Link to post
Share on other sites



I guess it would be easier to see which button is the default one (which one has focus) in that window.

If the focus is on Yes button (the one you want to click) by simply sending an ENTER it will do the trick.

If the focus is on NO button - you can send a LEFT (or RIGHT) so the focus will be on the desired button and then send also an ENTER

Look for Send command in the help for more info.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

I guess it would be easier to see which button is the default one (which one has focus) in that window.

If the focus is on Yes button (the one you want to click) by simply sending an ENTER it will do the trick.

If the focus is on NO button - you can send a LEFT (or RIGHT) so the focus will be on the desired button and then send also an ENTER

Look for Send command in the help for more info.

Thanks enaiman,

Its a very good idea. I found the default focus to be the yes button.

I have the following undermention script to sign up for hotmail but I am also facing the controlclick problem which is not clicking. Whats wrong with the codes.

----------script------------------

#include <IE.au3>

_IECreate ("http://get.live.com/mail/overview")

WinWaitActive ("Windows Live Hotmail - Windows Internet Explorer")

ControlClick ("Windows Live Hotmail - Windows Internet Explorer","http://get.live.com/mail/overview","Internet Explorer_Server1","Left",1)

------------------------------------

-------------windows info of the button to click--------------

Press CTRL-ALT-F to freeze the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: Windows Live Hotmail - Windows Internet Explorer

Class: IEFrame

Size: X: 331 Y: 16 W: 615 H: 559

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 401 Y: 289

Cursor ID: 0

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0xFFFFFF Dec: 16777215

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 0 Y: 109 W: 607 H: 403

Control ID:

ClassNameNN: Internet Explorer_Server1

Text:

Style: 0x56000000

ExStyle: 0x00000000

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

(1): https://signup.live.com/newuser.aspx?ru=htt...046&sh=eidv

(2):

(3):

(4):

(5):

(6):

(7):

(8):

(9):

(10): Internet

(11):

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

Command Bar

Favorites Command Bar

Navigation Bar

Page Control

http://get.live.com/mail/overview

http://get.live.com/mail/overview

Yahoo! Search

Search Control

Windows Live Hotmail - Windows Internet Explorer

https://signup.live.com/newuser.aspx?ru=htt...046&sh=eidv

Zoom Level

ITBarHost

Menu Bar

Links

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

Yahoo! Search

Share this post


Link to post
Share on other sites

ControlClick ("Windows Live Hotmail - Windows Internet Explorer","http://get.live.com/mail/overview","Internet Explorer_Server1","Left",1)

This can't work because you don't have a control named "Internet Explorer_Server1" to click on it - if you look at AutoIt Window Info when you move the mouse over the page you will see that no control is identified.

I don't have so much knowledge about IE so I can't help you further. Try to look inside IE.au3 to see what function you can find there and what you can use.


SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Share this post


Link to post
Share on other sites

This can't work because you don't have a control named "Internet Explorer_Server1" to click on it - if you look at AutoIt Window Info when you move the mouse over the page you will see that no control is identified.

I don't have so much knowledge about IE so I can't help you further. Try to look inside IE.au3 to see what function you can find there and what you can use.

yes its true when move the mouse over the button, the control ID is blank but the ClassNameNN shows Internet Explorer_Server1 and I thought I can put the classNN instead of the ControlID

Thanks enaiman.

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 0 Y: 109 W: 607 H: 403

Control ID:

ClassNameNN: Internet Explorer_Server1

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