Jump to content

Bring the window to the front of the screen


PHAK
 Share

Recommended Posts

  • Developers
7 hours ago, JockoDundee said:

@Jos, just realized, I may have inadvertently “burfed” :)

That's fine,  doubt this will lead anywhere anyways other than "Doesn't work". ;) 

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

10 hours ago, JockoDundee said:

 

#include <WinAPISysWin.au3>
#include <WindowsConstants.au3>

$g_hWnd=WinGetHandle("[TITLE:Untitled - Notepad]")

AlwaysOnTop($g_hWnd)

Func AlwaysOnTop($hWnd)
   While True
      _WinAPI_SetWindowPos($hWnd, $HWND_TOPMOST, 0, 0, 0, 0, BitOR($SWP_NOACTIVATE, $SWP_NOSIZE, $SWP_NOMOVE))
      WinWaitNotActive(WinGetHandle("[ACTIVE]"))
   WEnd
EndFunc

 

And how I do it for another application

Link to comment
Share on other sites

  • Developers
1 minute ago, PHAK said:

You can help instead of complaining all the time
What to do I'm new

Provide the damn info as requested in stead of making stupid posts and you get help from me. ;) 

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

  • Developers
On 10/23/2020 at 2:03 PM, Jos said:

So: put in comments in that script what you expect those lines to do and what isn't working, because we can't replicate your issue when we do not have your "3.exe" and have no clue what it does. use Au3info as well to get the details of your shown window for "3.exe" and show them here.  

Don't think this was a really difficult question ...right?

On 10/23/2020 at 3:12 PM, PHAK said:

Looks like you did not read what I wrote
I was just looking to attack

I brought up the drive

And also video 

I want it to be
Window is always top

... and this answer didn't make too much sense...  not even sure what the hell those first 2 lines were about.
Anyways, you really need to put your brain in gear and start showing some sensible responses/effort which will lead to getting proper help around here.

Can't make it clearer and more explicit. ;)  

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

21 minutes ago, Jos said:

Don't think this was a really difficult question ...right?

... and this answer didn't make too much sense...  not even sure what the hell those first 2 lines were about.
Anyways, you really need to put your brain in gear and start showing some sensible responses/effort which will lead to getting proper help around here.

Can't make it clearer and more explicit. ;)  

https://drive.google.com/file/d/1COAGYH_KM8LoxQ-XYNk27sUQ4qFf2SoH/view?usp=sharing

password

1234

;)  

Edited by PHAK
Link to comment
Share on other sites

  • Developers

Post all info here please as I am not a fan of having to go to places I don't know.  Also no movies needed just the plain information asked.

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

  • Developers
1 hour ago, PHAK said:

I will ask otherwise
How do I run a Word sample application (C / ... location)

Is is already shown to you for Notepad, so what do your really need more then?

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

4 hours ago, PHAK said:

And how I do it for another application

Let’s not get ahead of ourselves here.  Try these steps first.

  1. Make sure notepad is not running.
  2. Launch notepad.
  3. Locate the newly launched notepad window by looking for a window with a TITLE bar that says “Untitled - Notepad
  4. Run the script I provided previously.
  5. Now play around by moving  various windows over the notepad window.
  6. Make sure that the script works as you would like it.

If you accept, and wish to expand the functionality of the script to work on other windows/apps, please do the following:

  1. Run the app you wish to add.
  2. Look for the TITLE bar of the window to appear
  3. Write down exactly what the title bar says.
  4. Post the info here.
  5. Provide for up to (7) working days for the work to be completed.
  6. Provide a nominal “service charge” of $10 U.S. or equivalent, per window.
  7. I will then provide an “unlock” string to enable your new window.
  8. You will need to replace a certain section of the script with the “unlock” string.
  9. For an additional charge, I can also provide a way to KILL any running scripts, which may become quite irritating if many are concurrently running.

Thanks!

Code hard, but don’t hard code...

Link to comment
Share on other sites

Link to comment
Share on other sites

On 10/26/2020 at 5:24 AM, PHAK said:

I managed on my own
# I did in C

nice.  I was going to mention that you might find C easier than autoit for this type of job.

if you’re still having trouble, maybe try Microsoft assembler, it’s wicked easy to learn and pretty darn fast too. 😉

Code hard, but don’t hard code...

Link to comment
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
 Share

  • Recently Browsing   0 members

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