Jump to content

How run a ".exe" program into a new window Autoit.


Recommended Posts

  • Moderators

JorgeLuis,

I am not sure you could be less clear if you tried. What type of ".exe" program - and why does it need to be in "a window AutoIt"?

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

You are a man of a few words I can tell.  Still clear as mud.  But have you tried to interact with the emulator instead of embedding it ?  See Run and look at communicating with the app thru its stream...

Link to comment
Share on other sites

Ok.

HotKeySet("{[}", "_Exit10")

Run("C:\Program Files\emulator\emulator.exe")
sleep(1500)
Send("{ENTER}")
Sleep(1500)

Local $hWnd = WinWait("[CLASS:gdkWindowToplevel]", "", 10)
Local $xyz

Send("APP01")
Sleep(1500)
Send("{ENTER}")
Sleep(1500)

While 1
    
    $xyz = 0

    For $i = 0 To 2
        $xyz = $xyz + 1
        Sleep(1500)
        Send($xyz)
        Sleep(1500)
        Send("{ENTER}")
        Sleep(1500)
        Send("{F12}")
    Next

    Sleep(1500)
WEnd

Func _Exit10()

   Exit 0

EndFunc

Edited by JorgeLuis
Link to comment
Share on other sites

How could I run this script in a separate window without affecting other applications. Minimize this window and continue working with Chrome, word, excel without being affected by this script:

HotKeySet("{[}", "_Exit10")

Run("C:\Program Files\emulator\emulator.exe")
sleep(1500)
Send("{ENTER}")
Sleep(1500)

Local $hWnd = WinWait("[CLASS:gdkWindowToplevel]", "", 10)
Local $xyz

Send("APP01")
Sleep(1500)
Send("{ENTER}")
Sleep(1500)

While 1
    
    $xyz = 0

    For $i = 0 To 2
        $xyz = $xyz + 1
        Sleep(1500)
        Send($xyz)
        Sleep(1500)
        Send("{ENTER}")
        Sleep(1500)
        Send("{F12}")
    Next

    Sleep(1500)
WEnd

Func _Exit10()

   Exit 0

EndFunc

Link to comment
Share on other sites

  • Moderators

jorgeluis,

You are rapidly becoming annoying. Yu already have this thread running and yet you post the same script in a new one. Please do not do it again - threads merged.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • 4 months later...
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...