viswat88 Posted October 4, 2015 Share Posted October 4, 2015 Hi All,I am trying some script to run in back group (should not be visible).. For example, if i open notepad and type something and save it on desktop.. all these activities should not be shown to user. I went through some blogs and got better idea. But while running the script, am seeing SAVE AS window is visible for few seconds..Please let me know is there a way to hide that SAVE AS window too? Appreciate your help..Other question i have is, while running this script, I want to work on other task (any task, like email or word document or music any task) .. is that possible or do i need to wait and dont use keyboard / mouse till the script executed fully? #notrayiconOpt("WinTitleMatchMode", 2); Remove Test file$filenamepath = 'C:\Users\varikutv\Desktop\test.txt'FileDelete($filenamepath); Launch Notepad and Enter some textRun("notepad", "", @SW_HIDE)ProcessWait("notepad.exe")ControlSend("Notepad", "", "Edit1", "Hello created file"); Save as $filenamepathWinMenuSelectItem("Notepad", "", "&File", "Save &As...")WinWait("Save As", "")WinSetState("Save As","",@SW_HIDE)ControlSetText("Save As", "", "Edit1", $filenamepath)ControlSend("Save As","","","{TAB}")ControlSend("Save As","","","{TAB}")ControlSend("Save As","","","{TAB}")ControlSend("Save As","","","{TAB}")ControlSend("Save As","","","{SPACE}") Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 4, 2015 Moderators Share Posted October 4, 2015 viswat88,all these activities should not be shown to userAnd just why do you want to hide this activity from the user?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...
ahmeddzcom Posted October 5, 2015 Share Posted October 5, 2015 (edited) <snip> Edited October 5, 2015 by Melba23 Removed code Link to comment Share on other sites More sharing options...
TheSaint Posted October 5, 2015 Share Posted October 5, 2015 When you see a MOD has replied with a question for the OP, and not given a solution, don't take it upon yourself to then give one. ahmeddzcom 1 Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 5, 2015 Moderators Share Posted October 5, 2015 ahmeddzcom,As TheSaint has pointed out, we take a very dim view of people providing help when a Mod is awaiting some clarity on the question posed. Please do not do it again.M23 ahmeddzcom 1 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...
viswat88 Posted October 5, 2015 Author Share Posted October 5, 2015 @Melba23 -This example here (for notepad) is just to understand the concept and run the application in hide mode (user should not see whats happening)Also, when you are running in hide mode, it is not good to see SAVE AS window or other windows. My main interest is, once i got the concept, i will use it on various systems as an admin to install required applications through exe file based on the tickets /user requirements.. (for example - user need access to some X system, i need to change IP address and hit some commands to get access, so i can do this on user system but i dont want them to know what am doing or the commands what i use)Please let me know how to hide all such intermediate windows when running script in hide mode.. Thanks.. 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