Deena Posted January 3, 2013 Share Posted January 3, 2013 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 More sharing options...
kaotkbliss Posted January 3, 2013 Share Posted January 3, 2013 1. I need the script to call the MH.exe tool to run Look at FileInstall() in the help file2. once MH.exe have run it will pop up Run() or ShellExecute() in the help3. 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 3, 2013 Author Share Posted January 3, 2013 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')ExitIn addition, there is any way to pack the MH.exe tool to New AutoIt v3 Script.au3I'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 More sharing options...
kaotkbliss Posted January 3, 2013 Share Posted January 3, 2013 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 3, 2013 Author Share Posted January 3, 2013 Here i'm not going to be perform only on my machine. i used to run on different machine too, please guide Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 3, 2013 Share Posted January 3, 2013 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 4, 2013 Author Share Posted January 4, 2013 Could you please guide me with coding Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 4, 2013 Share Posted January 4, 2013 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 5, 2013 Author Share Posted January 5, 2013 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 More sharing options...
kaotkbliss Posted January 5, 2013 Share Posted January 5, 2013 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 5, 2013 Author Share Posted January 5, 2013 Could you please guide me step by step, i'm very new to this tool Link to comment Share on other sites More sharing options...
Deena Posted January 5, 2013 Author Share Posted January 5, 2013 Its working great on XP environment, But on WIN7 environment, MH.exe file is not delete Please guide me on this Link to comment Share on other sites More sharing options...
Deena Posted January 5, 2013 Author Share Posted January 5, 2013 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 More sharing options...
Moderators Melba23 Posted January 5, 2013 Moderators Share Posted January 5, 2013 Deena,What exactly is this "MH.exe" stand-alone tool? Can you provide a link? M23  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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area  Link to comment Share on other sites More sharing options...
Deena Posted January 5, 2013 Author Share Posted January 5, 2013 Not possible now, bcoz it design by our company Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 5, 2013 Share Posted January 5, 2013 Its working great on XP environment,But on WIN7 environment, MH.exe file is not deletePlease guide me on thisIt 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 messageMessage like:Hunt For Suspicious Files!MH search your system for suspcious files and liststhem in a report named suspicious.csv.Higly suspect file are placed in a zipped file name suspicious.zipWhich 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 gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 6, 2013 Author Share Posted January 6, 2013 HI kaotkblissThanks for your prompt response & help, now i have successfully completed the script and its working fine. i would like to rate you as top level Link to comment Share on other sites More sharing options...
Deena Posted January 6, 2013 Author Share Posted January 6, 2013 Final query, Sorry for distrub u again There is any possibility to freeze the window until to completion of MH.EXE installtion Please advise & help with coding. Link to comment Share on other sites More sharing options...
kaotkbliss Posted January 6, 2013 Share Posted January 6, 2013 Freeze what window? 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy! Link to comment Share on other sites More sharing options...
Deena Posted January 7, 2013 Author Share Posted January 7, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now