Merlini Posted March 17, 2021 Share Posted March 17, 2021 Hello Fellas! First of all I have to say that Im a beginner so dont be mad if im Stupid! :) I want set a window on top, I tried it with Notepad ,because I will get the other software in the next days! So I want to make a loop and brecause notepad goes into the browser I want it to go back on the top when its turn starts. I tried it with WinSetOnTop and Winstate, but I could do it. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 17, 2021 Developers Share Posted March 17, 2021 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nine Posted March 17, 2021 Share Posted March 17, 2021 (edited) The value returned by run is a PID (process ID). While Win* functions require a hWnd (window handle). You need to get the handle of the notepad process with WinGetHandle. ps. When you post code, do not use an image. Please use this tool. pps. When you have an issue, I cannot recommend more strongly to put some error handling after each statement. That way you would have understand that the WinSetOnTop function was failing... Edited March 17, 2021 by Nine “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...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now