Jump to content

Help me transform AHK in AUTOIT


Recommended Posts

runwait, %comspec% /c ipconfig /all > c:mac.txt, ,hide

Loop, Read, c:mac.txt
{
ifinstring, A_LoopReadLine, Physical address
{
MAC=%A_LoopReadLine%
break
}
}

StringRight, MAC, MAC, 18
StringReplace, mac, mac,-,, All
StringReplace, mac, mac,A,12, All
StringReplace, mac, mac,B,13, All
StringReplace, mac, mac,C,14, All
StringReplace, mac, mac,D,15, All
StringReplace, mac, mac,E,16, All
StringReplace, mac, mac,F,17, All
StringReplace, mac, mac,G,18, All
StringReplace, mac, mac,H,19, All
StringReplace, mac, mac,I,20, All
StringReplace, mac, mac,J,21, All
StringReplace, mac, mac,K,22, All
StringReplace, mac, mac,L,23, All
StringReplace, mac, mac,M,24, All
StringReplace, mac, mac,N,25, All
StringReplace, mac, mac,O,26, All
StringReplace, mac, mac,P,27, All
StringReplace, mac, mac,Q,28, All
StringReplace, mac, mac,R,29, All
StringReplace, mac, mac,S,30, All
StringReplace, mac, mac,T,31, All
StringReplace, mac, mac,U,32, All
StringReplace, mac, mac,V,33, All
StringReplace, mac, mac,W,34, All
StringReplace, mac, mac,X,35, All
StringReplace, mac, mac,Y,36, All
StringReplace, mac, mac,Z,37, All
filedelete, c:mac.txt
msgbox, (number) %MAC%
random, r
urldownloadtofile,http://blog.naver.com/PostView.nhn?blogId=maneuver85&logNo=220089969008&redirect=Dlog&widgetTypeCall=true, check%r%.txt
If(FileExist("check%r%.txt"))
{
filedelete, check*      
}
fileread,R,check%r%.txt
ifinstring, R,%MAC%
{
filedelete,check*
goto, Go
}
Else
{
filedelete,check*
msgbox, failed
 

ExitApp
}
filedelete,check*
Msgbox, failed
ExitApp
Go:

;

Link to comment
Share on other sites

Have you tried to script any of this into AutoIt?

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

they are just trying to get us to do it.. reported..

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...