Jump to content

How to get focus back to my scritp?


alexischeng
 Share

Recommended Posts

I want to make something like Sony "Jog" and I can call up the program but I can't get forcus back to my script afterwards.

Script attached & this is the prog.ini file

[prog_id]

0=CMD

1=MS Word

2=MS Excel

3=MS Outlook

4=MS PowerPoint

5=Blank

6=Blank

7=Blank

8=Blank

9=Blank

[Prog_path]

0=cmd

1=c:\program files\Microsoft Office\Office11\WinWord.exe

2=c:\program files\Microsoft Office\Office11\Excel.exe

3=c:\program files\Microsoft Office\Office11\Outlook.exe

4=c:\program files\Microsoft Office\Office11\PowerPNT.exe

5=

6=

7=

8=

9=

[Prog_proc]

0=cmd.exe

1=winword.exe

2=excel.exe

3=outlook.exe

4=powerpnt.exe

5=

6=

7=

8=

9=

Jog.au3

Link to comment
Share on other sites

Func _pro()
    ControlFocus ("Jog", "", "msctls_trackbar321" )
    $Process= $pro_proc[$Run_Pro]
    $Prog_Path = $pro_path[$Run_Pro]

    If not Stringlen ($pro_path[$Run_Pro])=0 then
        If not ProcessExists($Process) Then
            Run ($Prog_Path)
            WinWaitNotActive("Jog")
            WinActivate("Jog")
        EndIf
    EndIf

Endfunc

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
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...