AlphaUMi Posted October 2 Share Posted October 2 Hi! I'm asking for help to get a very simple script working... sorry, I'm totally noob! Instead of speaking in general, I'll describe exactly what my scenario is. I use CDisplayEx as my ebook\comics reader, and I configured JoyToKey (a program that converts joypad input to keyboard input) in order to browse and control CDisplayEx with a joypad. I want to make my setup portable, so that I can install it on my USB pen. In order to do so, I need a script (that I eventually convert to exe) that can do the following: Assuming "CDisplayEx" folder is the working directory, 1) Silently add "CDisplayExSettings.reg" to the Windows registry, without confirmation. This will add the settings to the registry. 2) Probably it is better to wait 1 second for the operation to complete, but I don't know if this is really necessary. 3 ) Run "CDisplayEx\JoyToKey\joytokey.exe" 4) Run "CDisplayEx\CDisplayEx.exe" 5) Wait for CDisplayEx.exe process to be closed 6) On CDisplayEx.exe closed, terminate JoyToKey process too. 7) Possibly delete CDisplayEx entry from the registry (I don't know if this is possible, but it is not strictly required). Anyway, the entry is HKEY_CURRENT_USER\SOFTWARE\CDisplayEx 8 ) Exit the script (or better said, the autoit exe, since I'll convert the script to exe) I think this should be a very simple task, but not exactly my cup of tea! 😎 I hope someone here is willing to help. Thanks in advance! "Vitam impendere vero" Link to comment Share on other sites More sharing options...
argumentum Posted October 2 Share Posted October 2 1 hour ago, AlphaUMi said: 3 ) Run "CDisplayEx\JoyToKey\joytokey.exe" do it all in autoit 1 hour ago, AlphaUMi said: Hi! I'm asking for help to get a very simple script working... sorry, I'm totally noob! it's all good. Am a noob at reading comics too. Show your attempt and I'll help you correct it. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
junkew Posted October 2 Share Posted October 2 https://www.autoitscript.com/autoit3/docs/functions/RegDelete.htm https://www.autoitscript.com/autoit3/docs/functions/Run.htm https://www.autoitscript.com/autoit3/docs/functions.htm Just read the examples and try FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets 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