Results 1 to 10 of 14

Thread: file-open-find-exe application

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    Senior Member Lionheart008's Avatar
    Join Date
    Sep 2008
    Location
    Germany, Bad Sooden-Allendorf
    Age
    52
    Posts
    944
    Rep Power
    111

    Re: file-open-find-exe application

    hello petr.

    perhaps you can check this version, if it's more elegant ?

    ' Empty GUI script created on 12-19-2009 18:25:02 by frank (ThinAIR)
    '-- test it! 
    
    Uses "ui", "os", "console"
     
     Dim startingApp,f As Long
     OS_ShellExecute ( "open", "excel.exe", "", "", %OS_WNDSTYLE_NORMAL )   
     startingApp = WIN_GetActive                        
     WIN_SetForeground(startingApp)   
     
     Do While startingApp = %TRUE  
       WIN_FindByTitle("Excel", %WIN_FINDTITLESTART)  'f=
     Loop 
     PrintL,"excel found! " + Str$(startingApp)           
      
     SendKeys ("{ENTER}1234567 898238 4422.58 8934 Angelina Jolie{ENTER},12")
     WaitKey
     
     '-- you can try to use alternative -------------------------------------- 
     'OS_ShellExecute ( "open", "winword.exe", "", "", %OS_WNDSTYLE_NORMAL )
      'SendKeys ("1242678 898238 4422.58 8934 {ENTER},22")          
     '------------------------------------------------------------------------
    
    nice day, thanks, frank lion"ice"head
    Last edited by ErosOlmi; 05-02-2019 at 21:30.
    you can't always get what you want, but if you try sometimes you might find, you get what you need

Members who have read this thread: 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •