Jump to content

Help for a simple script needed


Recommended Posts

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

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

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