JorgeLuis Posted July 6, 2022 Share Posted July 6, 2022 HI, I need to run a ".exe" program into a window Autoit. Can you help me? adamve 1 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 6, 2022 Moderators Share Posted July 6, 2022 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 Exit 1 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
JorgeLuis Posted July 6, 2022 Author Share Posted July 6, 2022 A emulator 3270. To try to limit the action of the app so it doesn't affect other apps when I change the mouse pointer position. Link to comment Share on other sites More sharing options...
Nine Posted July 6, 2022 Share Posted July 6, 2022 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... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
JorgeLuis Posted July 6, 2022 Author Share Posted July 6, 2022 I tried, but the autoit script affected the other applications when I try to open a word document, for example while the autoit script is running. Link to comment Share on other sites More sharing options...
Nine Posted July 6, 2022 Share Posted July 6, 2022 Show your script that causes the issue. Please make it runable to us. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
JorgeLuis Posted July 7, 2022 Author Share Posted July 7, 2022 (edited) 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 July 7, 2022 by JorgeLuis Link to comment Share on other sites More sharing options...
JorgeLuis Posted July 8, 2022 Author Share Posted July 8, 2022 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 More sharing options...
Moderators Melba23 Posted July 8, 2022 Moderators Share Posted July 8, 2022 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 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
JorgeLuis Posted July 8, 2022 Author Share Posted July 8, 2022 (edited) OK. I will look for another language for my scripts. Bye. Edited July 8, 2022 by JorgeLuis Musashi 1 Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted November 28, 2022 Moderators Share Posted November 28, 2022 Fantastic idea "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts