Senatorwulf Posted July 29, 2007 Share Posted July 29, 2007 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? Link to comment Share on other sites More sharing options...
James Posted July 29, 2007 Share Posted July 29, 2007 Take a look at the _IE functions in the help file. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Senatorwulf Posted July 29, 2007 Author Share Posted July 29, 2007 ty will play around with this when i get back home =_). Link to comment Share on other sites More sharing options...
Senatorwulf Posted July 30, 2007 Author Share Posted July 30, 2007 (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 July 30, 2007 by Senatorwulf Link to comment Share on other sites More sharing options...
James Posted July 30, 2007 Share Posted July 30, 2007 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. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
ashley Posted July 30, 2007 Share Posted July 30, 2007 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 Free icons for your programs Link to comment Share on other sites More sharing options...
ashley Posted July 30, 2007 Share Posted July 30, 2007 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... Free icons for your programs Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now