Jump to content

Recommended Posts

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 post
Share on other sites
  • Developers

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:


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 post
Share on other sites

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 by Nine
Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...