Sign in to follow this  
Followers 0
Senatorwulf

Security Number?

7 posts in this topic

Hey, I am very new to AutoIt, and have very little experience with it(my major is C++). Anyway though I was wanting to make a script that would login to a website for me and click a certain link(this isn't any problem so far). Where I come in trouble is at random intervals it pops up on a web page "Please enter the security number to the left"

The number is random from 1-10. And if you miss it than it changes to another number(1-10).

The numbers use the same picture and placement.

Any ideas how to code that possibly?

Share this post


Link to post
Share on other sites



ty will play around with this when i get back home =_).

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Apparanetly I was wrong about it using the same pictures :). I didn't until now notice that it sometimes bolds/italics the number. Sometimes it tabs it over, sometimes it moves it up.

I had the original idea of just grabing the 10 pics. Storing them in an array. Then making a if statement inside a for loop.

As the for loop counted down if the if statement was true (ex: SecurityNumber==Pic1) then it would just fil in the correct number.

Any ideas on how I should set this up? Not wanting anyone to do it for me, just be good to know things I'll need?

Edited by Senatorwulf

Share this post


Link to post
Share on other sites

You could set each number to an array:

$Num1 = $Pic1
$Num2 = $Pic2

Assuming That $Num1 is Number 1 then you could use GuictrlRead to see if it includes a number 1 then use that pic.

Sorry it makes no sense. Its kinda hard to explain.

Share this post


Link to post
Share on other sites

Use this

at top of code put this:

$num1= A3D3
$num2= G56F
$num3= 458K
$pic1 = $num1
$pic2 = $num2
$pic3 = $num3oÝ÷ Ù8^«zìÛaz¶!£
n¶Øb±«­¢+ØÀÌØíI  Á¥ôI¹½´ Ḭ̇Ĥ)%ÀÌØíI   Á¥ôÄQ¡¸(U%
Ñɱ
ÉÑA¥ ÀÌØíÁ¥Ä°À°À°ØÀаÄÔԤ쨡¹Ñ¡¹ÕµĘ́(U%
Ñɱ
ÉÑ%¹ÁÕÐ ÅÕ½ÐìÅÕ½Ðì°À°À°ØÀаÄÔԤ쨡¹Ñ¡¹ÕµĘ́)±Í%ÀÌØíI Á¥ôÈQ¡¸(U%
Ñɱ
ÉÑA¥ ÀÌØíÁ¥È°À°À°ØÀаÄÔԤ쨡¹Ñ¡¹ÕµĘ́(U%
Ñɱ
ÉÑ%¹ÁÕÐ ÅÕ½ÐìÅÕ½Ðì°À°À°ØÀаÄÔԤ쨡¹Ñ¡¹ÕµĘ́)±Í%ÀÌØíI Á¥ôÌQ¡¸(U%
Ñɱ
ÉÑA¥ ÀÌØíÁ¥Ì°À°À°ØÀаÄÔԤ쨡¹Ñ¡¹ÕµĘ́(U%
Ñɱ
ÉÑ%¹ÁÕÐ ÅÕ½ÐìÅÕ½Ðì°À°À°ØÀаÄÔԤ쨡¹Ñ¡¹ÕµĘ́)¹%oÝ÷ ÚØ^­¶¬ÁêÞz÷«»§µ«­¢+ÙU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí½¹ÅÕ½Ðì°À°À°ØÀаÄÔԤ쨡¹Ñ¡¹ÕµĘ́)U%
ÑɱMÑ=¹Ù¹Ð ´Ä°ÅÕ½Ðí½¹ÅÕ½ÐìoÝ÷ Ù8^­¶¬æ«¶ÚÊ«±Êâ¦Ö®¶­sdgVæ2FöæR¢bb33cµ$$w2ÒFVâ¢b33c·3Òb33c¶çVÓFVà¤×6t&÷#BÂgV÷Cµ77v÷&Bv26÷'&V7Bb333²gV÷C²ÂgV÷Cµ÷RGVBFR6÷'&V7B77v÷&Bâ÷RÖ66W72F2fÆRb333²gV÷C²²vBFòFòb77v÷&Bv2VçFW&VB6÷'&V7FÇb333°¢W@¤VÇ6P¤×6t&÷#BÂgV÷Cµ77v÷&Bv2w&öærb333²gV÷C²ÂgV÷Cµ÷RGVBFRw&öær77v÷&Bâ÷RÖæ÷B66W72F2fÆRb333²gV÷C²²vBFòFòb77v÷&Bv2æ÷BVçFW&VB6÷'&V7FÇb333°¢W@¤VæD`  ¢bb33cµ$$w2Ò"FVâ¢b33c·3"Òb33c¶çVÓ"FVà¤×6t&÷#BÂgV÷Cµ77v÷&Bv26÷'&V7Bb333²gV÷C²ÂgV÷Cµ÷RGVBFR6÷'&V7B77v÷&Bâ÷RÖ66W72F2fÆRb333²gV÷C²²vBFòFòb77v÷&Bv2VçFW&VB6÷'&V7FÇb333°¢W@¤VÇ6P¤×6t&÷#BÂgV÷Cµ77v÷&Bv2w&öærb333²gV÷C²ÂgV÷Cµ÷RGVBFRw&öær77v÷&Bâ÷RÖæ÷B66W72F2fÆRb333²gV÷C²²vBFòFòb77v÷&Bv2æ÷BVçFW&VB6÷'&V7FÇb333°¢W@¤VæD`  ¤bb33cµ$$w2Ò2FVâ¢b33c·32Òb33c¶çVÓ2FVà¤×6t&÷#BÂgV÷Cµ77v÷&Bv26÷'&V7Bb333²gV÷C²ÂgV÷Cµ÷RGVBFR6÷'&V7B77v÷&Bâ÷RÖ66W72F2fÆRb333²gV÷C²²vBFòFòb77v÷&Bv2VçFW&VB6÷'&V7FÇb333°¢W@¤VÇ6P¤×6t&÷#BÂgV÷Cµ77v÷&Bv2w&öærb333²gV÷C²ÂgV÷Cµ÷RGVBFRw&öær77v÷&Bâ÷RÖæ÷B66W72F2fÆRb333²gV÷C²²vBFòFòb77v÷&Bv2æ÷BVçFW&VB6÷'&V7FÇb333°¢W@¤VæD` ¤VæFgVæ

That should work...

Not tested tho

Share this post


Link to post
Share on other sites

forget this bit in my last post

$RBGpic = Random(1, 3, 1)
If $RBGpic = 1 Then 
 $pic1 = GUICtrlCreatePic($pic1 , 0, 0, 604, 155) ;* change the numbers *
 GUICtrlCreateInput("", 0, 0, 604, 155) ;* change the numbers *
ElseIf $RBGpic = 2 Then 
$pic2 =  GUICtrlCreatePic($pic2 , 0, 0, 604, 155) ;* change the numbers * 
 GUICtrlCreateInput("", 0, 0, 604, 155) ;* change the numbers *
ElseIf $RBGpic = 3 Then 
 $pic3 = GUICtrlCreatePic($pic3 , 0, 0, 604, 155) ;* change the numbers *
 GUICtrlCreateInput("", 0, 0, 604, 155) ;* change the numbers *
EndIfoÝ÷ Ù©§Ü"¶aÆ®¶­sb¢b33c¶çVÓÒ4C0¢b33c¶çVÓ#ÒsSd`¢b33c¶çVÓ3ÒCS°¢b33c·3Ò·7GW&RfÆRW&P¢b33c·3#Ò·7GW&RfÆRW&P¢b33c·33Ò·7GW&RfÆRW&P¢b33c·3Òb33c¶çVÓ¢b33c·3"Òb33c¶çVÓ ¢b33c·32Òb33c¶çVÓ0

that sould work...

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