Jump to content

setting an inputbox to 'always on top' mode


The_Lorax
 Share

Recommended Posts

Hello,

I need to set an inputbox to 'always on top' mode, so when I switch to another application it keeps the focus, but allows me to manipulate the other app.

I tried using WinSetOnTop, but couldn't get it to work.

Anyone know if this is possible?

:P

You can't make a INPUTBOX allways on top, and at the same time be able to use another app. You could make your windows AllwaysOnTop, but when using the other app, the inputbox loses focus until you use your app again... bad explanation i know

;)

Link to comment
Share on other sites

You can't make a INPUTBOX allways on top...

Sure you can... ;) although it requires some amount of fiddling (works both compiled and uncompiled):

local const $IB_TITLE = "My Input Box Title"

local const $IB_TEXT = "Please enter something."

if $cmdLine[0] and $cmdLine[1] = "!topMyBox" then

winWait($IB_TITLE, $IB_TEXT)

winSetOnTop($IB_TITLE, $IB_TEXT, 1)

exit

endIf

if @compiled then run(@autoItEXE & " !topMyBox")

if not(@compiled) then run(@autoItEXE & ' "' & @scriptFullPath & '" !topMyBox')

local $result = inputBox($IB_TITLE, $IB_TEXT)

if not(@error) then msgBox(0x40040, "Result", "You entered:" & @CRLF & $result)

This is actually quite a reasonable scenario, so it would be a reasonable feature request. You might like to post to the Idea Lab forum suggesting this capability for an upcoming release.
Link to comment
Share on other sites

I tried adapting that to fit my code and it didn't work. I'm trying to take the users input, add it to a pixelchecksum from the window in the background and then write it to a file. I don't fully understand your code so I think i'm asking it to do something it can't

Thanks for your help anyway, I think i'll give up for now.

Tim

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...