Jump to content

Script required to run the standalone tool


Deena
 Share

Recommended Posts

Hello Every one,

I have the stand alone tool called "MH.exe".

Batch script for eg: but is not work for automatic press ok or enter button

CD%\MH.exe

MH.exe >enter

del "%CD%\MH.exe"

del /s /ah "%CD%\MH.41.exe"

My query is,

1. I need the script to call the MH.exe tool to run

2. once MH.exe have run it will pop up

3. while it popup, needs to Press ok button automaticaly to proceed

4.finally delete the MH.exe tool from the location

Thanks

Link to comment
Share on other sites

1. I need the script to call the MH.exe tool to run

Look at FileInstall() in the help file

2. once MH.exe have run it will pop up

Run() or ShellExecute() in the help

3. while it popup, needs to Press ok button automaticaly to proceed

ControlClick() or MouseClick()

4.finally delete the MH.exe tool from the location

FileDelete()

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Hi,

Thanks for your help, i'm very newbie to this tool. below code i have did it is working fine.

Run('MH.exe')

$sTitle="MH v 1"

WinWait("MH v 1")

ControlClick($sTitle,"", "&OK >")

Send("{Enter}")

$sTitle1="Expedition Complete!"

WinWait("Expedition Complete!")

ControlClick($sTitle1,"", "&OK >")

Send("{Enter}")

FileDelete('MH.exe')

Exit

In addition, there is any way to pack the MH.exe tool to New AutoIt v3 Script.au3

I'm looking for while excute the "New AutoIt v3 Script.au3" need to unpack the MH.exe & install it and delete the MH.exe

Link to comment
Share on other sites

if you use fileinstall, then when you compile your script to exe, it will bundle the file with it.

FileInstall('Path to file on your pc','path where you want file to install to')

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

FileInstall needs 2 parameters, the first one it uses when you compile your script to exe. It needs to know where the file is at on your pc to add it into the exe.

the second parameter is where the exe needs to extract the file when you run the exe on any pc

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

suppose the MH.exe file is on your C: drive

when someone runs your program you want the MH.exe to be extracted and run from wherever they have your script

FileInstall("C:\MH.exe",@ScriptDir&"\MH.exe")
Run('MH.exe')
$sTitle="MH v 1"
WinWait("MH v 1")
ControlClick($sTitle,"", "&OK >")
Send("{Enter}")
$sTitle1="Expedition Complete!"
WinWait("Expedition Complete!")
ControlClick($sTitle1,"", "&OK >")
Send("{Enter}")
FileDelete(@ScriptDir&'\MH.exe')

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Please advise & help me on this below request.

Yes i understand, the above sciprt shows if the file (MH.exe) avaliable on c: drive i can call the exe to excute

but i need to know how can Pack & unpack the file (MH.exe) into the single file with help on autoit scrpit.

Requirement is:

1. Merge the MH.exe file into autoit script

2.While complie into single exe file (autoit.exe)

3.While execute the file autoit.exe

4.Unpack the MH.exe on C:

5.And run the MH.exe

6.Once job done, need to delete the MH.exe file

Link to comment
Share on other sites

if you use FileInstall in your script, then when you select "compile script" from scite options, it will auto pack your file with the script

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

One more query, there is any way display huge message

Message like:

Hunt For Suspicious Files!

MH search your system for suspcious files and lists

them in a report named suspicious.csv.

Higly suspect file are placed in a zipped file name suspicious.zip

Which can sent to an Virus security analyst.

Link to comment
Share on other sites

  • Moderators

Deena,

What exactly is this "MH.exe" stand-alone tool? Can you provide a link? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Its working great on XP environment,

But on WIN7 environment, MH.exe file is not delete

Please guide me on this

It may be the UAC so you might have to add #RequireAdmin at the top of your script.

One more query, there is any way display huge message

Message like:

Hunt For Suspicious Files!

MH search your system for suspcious files and lists

them in a report named suspicious.csv.

Higly suspect file are placed in a zipped file name suspicious.zip

Which can sent to an Virus security analyst.

If you want the script to pause and wait for the user to click "OK" (or time out) before it continues, you can use a simple MsgBox()

Or you could get a little fancy and use GuiCreate() and make your own window.

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Sorry for the confusion,

I mean, While execute the script (exe) it has extract the file MH.exe tool on location to perform the installation, but at the time user easily access the file "MH.exe" tool (eg. copy & paste, delete...etc). i need to restrict those function.

In addition there is option to hide the "MH.exe" tool while extract from autoit.exe?

Thanks in advance for your help

Link to comment
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
 Share

  • Recently Browsing   0 members

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