qiong 0 Posted July 16, 2019 Hello I write one autoit script, it is used to install one software automatically. When I run the autoit script, I find it will stop temporarily if I click the other windows or I change my desktop to remote desktop. I need to active it by focus on the autoit script windows again. So, if it mean I need to do nothing when run the autoit script?? I can't click the other windows and I can't switch to the other remote desktop Share this post Link to post Share on other sites
Somerset 3,073 Posted July 16, 2019 Some script would be nice. After reading through some of your previous chatter, I'm inferring english is not your first language? Also, you're not listening to the other responders; makes you seem like a dead horse. 1 Earthshine reacted to this Spoiler Share this post Link to post Share on other sites
Earthshine 518 Posted July 16, 2019 Yeah he just made it to my ignore list. Why bother helping someone who never responds or tries anything suggested? My resources are limited. You must ask the right questions Share this post Link to post Share on other sites
qiong 0 Posted July 16, 2019 I think I have told you that the shortcut can't been created on the desktop and startmenu if I install the software by "setup.exe -i silent" I try to install the software on windows7 and windows10, but the shortcut can't be created on both of the two OS The software is built by Installanywhere2008 Can you tell me how to install the software by command way? Share this post Link to post Share on other sites
qiong 0 Posted July 16, 2019 By the way: Your slang has made me very uncomfortable. I have encountered problems that cannot be solved therefore I ask questions here. It seems that there is no consumption of public resources. Share this post Link to post Share on other sites
Nine 993 Posted July 16, 2019 6 hours ago, qiong said: It seems that there is no consumption of public resources. This is where you got all wrong. Ppl take time to read your threads and respond to it. But you don't listen. You should have check how to create a desktop shortcut. It is a single line of code !!! 1 1 Earthshine and FrancescoDiMuro reacted to this Not much of a signature but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Multi-keyboards HotKeySet Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
Bert 1,430 Posted July 16, 2019 I was gonna help..... However one can't make a horse drink water after you lead them to it. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Share this post Link to post Share on other sites
Werty 157 Posted July 16, 2019 ...but you cant teach a dog tricks by beating it. Some guy's script + some other guy's script = my script! Share this post Link to post Share on other sites
Earthshine 518 Posted July 16, 2019 (edited) i know the answer to this post. take a look at the fragments of script, it does not use any ControlClick or any controls based control, it's all just Send. so, that is why when you activate another window while it's running, it doesn't work--but this is based on what I saw in the other threads since he won't show the full script OP use the code tags and post your code inside them, the <> button, click it, and dump your code in there. maybe someone can help Edited July 16, 2019 by Earthshine My resources are limited. You must ask the right questions Share this post Link to post Share on other sites
qiong 0 Posted July 17, 2019 Sorry, for autoit3, I am a new, rookie, and I am not a developer. I am just an IT staff. I don’t understand what you mean by using the command line. It’s not that I don’t follow what you said, but I completely can't understand what the command line means. Is it right to use "setup -i install"? It is like a group of college students discussing with a primary school student what is C and what is java. First of all, I have to understand then I can follow with you. For example, " You should have check how to create a desktop shortcut. It is a single line of code !!! " What is a line of code? How to write this code, where to write it, and in which way? ? Yes, the horse can’t see the water and how do you let him drink? I know that my question is like 1+1 is equal to ?. I hope that you will not be ridiculed. This forum does not limit the novices to ask questions, right? The code Run("setup.exe") WinWaitActive("Winpower") Send("!n") $hWnd = WinGetHandle("[ACTIVE]"); $ret = DllCall("user32.dll", "long", "LoadKeyboardLayout", "str", "08040804", "int", 1 + 0) DllCall("user32.dll", "ptr", "SendMessage", "hwnd", $hWnd, "int", 0x50, "int", 1, "int", $ret[0]) Send('nh') WinWait("Check Previous Version","",5) If WinExists("Check Previous Version","") Then Send("{Enter}") WinWaitActive("Save Configuration") Send("{TAB}") Send("{Enter}") Sleep(70000); EndIf WinWaitActive("Winpower") Opt ("SendKeyDelay", 100); Send("{TAB}") Send("511C1-01220----") Send("!n") WinWaitActive("Winpower") Send("!n") WinWaitActive("Winpower") Send("!n") WinWaitActive("Winpower") Send("!i") WinWaitActive("Winpower") Send("!d") Sleep(25000) WinClose("Winpower") I want to use " ControlClick", but I can't get any control Share this post Link to post Share on other sites
Nine 993 Posted July 17, 2019 8 hours ago, qiong said: You should have check how to create a desktop shortcut. It is a single line of code !!! Ok I am going to give you the 2 lines of code that will replace all of yours (untested of course) : RunWait ("setup.exe -i silent") FileCreateShortcut ("Your full path to winpower.exe", @Desktop & "\WinPower.lnk", "Your full path to working directory") Now you will need to adjust those 2 lines to fit the installation location directory. Not much of a signature but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Multi-keyboards HotKeySet Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
Bert 1,430 Posted July 17, 2019 11 hours ago, qiong said: Sorry, for autoit3, I am a new, rookie, and I am not a developer. I am just an IT staff. Wait - let me get this right. You are IT staff yet you don't know what command line is? Google is your friend. https://www.computerhope.com/jargon/c/commandi.htm The Vollatran project My blog: http://www.vollysinterestingshit.com/ Share this post Link to post Share on other sites
Earthshine 518 Posted July 17, 2019 (edited) you can't get any controls because this is a stupid installer created with java... lol, god I hate you java best to use the silent install options because the OP has no chance at doing this otherwise. Edited July 17, 2019 by Earthshine My resources are limited. You must ask the right questions Share this post Link to post Share on other sites