Sign in to follow this  
Followers 0
chrisgreece

Noobie, please help me out if possible

3 posts in this topic

Greetings 

I ve downloaded auto it and with AU3 Recorder i ve completed a script.

During the script i type a number which is the protocol of the client i am examining.

 
 
#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00000409)  ---
 
#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '00000409' Then
  MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00000409->' & $aResult[1] & ')')
EndIf
 
EndFunc
 
Func _WinWaitActivate($title,$text,$timeout=0)
WinWait($title,$text,$timeout)
If Not WinActive($title,$text) Then WinActivate($title,$text)
WinWaitActive($title,$text,$timeout)
EndFunc
 
_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---
 
_WinWaitActivate("Program Manager","FolderView")
MouseClick("left",273,443,2)
_WinWaitActivate("Open ""a""","&Account Name and Pa")
MouseMove(257,117)
MouseDown("left")
MouseMove(-195,80)
MouseUp("left")
Send("005188{TAB}005188{ENTER}")
_WinWaitActivate("FileMaker Pro","FileMaker cannot sha")
Send("{ENTER}")
_WinWaitActivate("FileMaker Pro - [a]","Text Formatting")
MouseClick("left",708,291,1)
MouseMove(494,675)
MouseDown("left")
MouseMove(495,674)
MouseUp("left")
MouseClick("left",274,177,1)
Send("1210{ENTER}")
MouseClick("left",839,245,1)
MouseClick("left",1373,8,1)
#endregion --- Au3Recorder generated code End ---
 
On bold letters is the protocol of the client that i am examining.
So is there a way to put in a list like 1000 protocols and do it at once without me copying and pasting every time?thanks in advance for your help
Actually how can i make an interface with a field where i can add as many protocols as i want and make the program run automatically untill the numbers finish
Please i would appreciate your help.I am searching for so many hours and cant find nothing!

Share this post


Link to post
Share on other sites



Before you get into GUIs: an easy way would probably be a .txt file where you put all the numbers into.

Using _FileReadToArray you can run your script through all the protocols.

Share this post


Link to post
Share on other sites

Welcome to AutoIt snd the forum!

To get more and helpful answers to your future problems, please

  • Give a meaningful title to your thread. Because everyone on this forum is looking for help ;)
  • Wrap your script code in AutoIt code tags. That's the blue A icon in the editor. Greatly enhances readability.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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