Jump to content

Script required to run the standalone tool


Deena
 Share

Recommended Posts

I have not used it yet, but you may be able to make use of BlockInput() then.

Just be sure to change the flag on BlockInput when you want the user to be able to use the keyboard again.

FileInstall("C:\MH.exe",@ScriptDir&"\MH.exe")
BlockInput(1)
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')
BlockInput(0)

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

You may possibly need 2 scripts then. 1 to control the HotKeySet() to start and close the script, and the main script. Once you kill the script, then it can't perform any more actions.

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 how can i execute 2 script at the time or else shall i enter my coding after the while 1 function, will it work?

There is option to hide the "MH.exe" tool while extract from autoit.exe?

Global $timer = TimerInit()

HotKeySet( "{ESC}", "_quit" )

While 1

;Your stuff

Sleep(25)

WEnd

Func _quit()

If TimerDiff($timer) < 1000 Then

Exit

Else

$timer = TimerInit()

EndIf

EndFunc ;==>_quit

Link to comment
Share on other sites

I have got some tips, we can use to ctrl+alt+end open task manager to terminate the MH.exe process, while i'm terminate the process what ever the extract file "MH.exe" avaliable in the location. Here there is any provision to delete the file "MH.exe" while i'm terminating?

Thanks again for your help

Link to comment
Share on other sites

You only need MH.exe killed, not the whole script? in that case, I tend to use ProcessKill() as it's sure to completely end the process although I think ProcessClose() is the cleaner way

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

all you have to do is right before your FileDelete() add in a ProcessClose() or ProcessKill()

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

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...