Sign in to follow this  
Followers 0
ghettochild

Autoit Window Showing

6 posts in this topic

i have an input box that i am playing with... in the back, behind the box and offset toward the middle of the screen is a window with the title "AutoIt v3". I tried to @sw_hide the thing to no avail. I am sure that I am just missing something obvious. help? anyone?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

i have an input box that i am playing with...  in the back, behind the box and offset toward the middle of the screen is a window with the title "AutoIt v3". I tried to @sw_hide the thing to no avail.  I am sure that I am just missing something obvious. help? anyone?

can you show the portion of the script that causes this behaviour ?? Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

ok here is the entire code, i dont know what part is giving the problem. yes, i know its choppy, messy, and already done but it is just an excercise because i want to know how to use the program. BTW I have no programming experience and have been using the program for about 2 days now.

WinMinimizeAll()

run("notepad","",@SW_MAXIMIZE)

winwait("Untitled - Notepad")

WinSetTitle ("","","Program" )

run("notepad","",@SW_MAXIMIZE)

winwait("Untitled - Notepad")

WinSetTitle ("","","Info Dump" )

$comloop = 1

;lets make a variable called comloop and set it equal to 1

While $comloop = 1

$self=AutoItWinGetTitle()

Winactivate($self,"")

$Cmd = InputBox("Click Easy", "Command","","",500,60,0,0)

If @error = 1 Then

WinKill("Info Dump","")

exit

else

WinActivate ("Click Easy", "")

$cmds = StringSplit($cmd, " ")

If $cmds[1]= "sleep" Then

WinActivate ("Program")

send("sleep(")

send($cmds[2])

send(")")

send("{enter}")

$cmds[1] = 0

elseIf $cmds[1] = "titlewait" then

mouseclick("left")

$title = WinGetTitle("")

$text = WinGetText("")

WinActivate ("Program")

send ("WinWait({SHIFTDOWN}'{SHIFTUP}")

send($title)

send("{SHIFTDOWN}'{SHIFTUP},{SHIFTDOWN}'{SHIFTUP}")

send($text)

send("{SHIFTDOWN}'{SHIFTUP})")

send("{enter}")

$cmds[1] = 0

$title = 0

$text = 0

ElseIf $cmds[1] = "click" Then

$pos = MouseGetPos()

WinActivate ("Program")

send("MouseClick(")

Send("{SHIFTDOWN}'{SHIFTUP}")

send("left")

Send("{SHIFTDOWN}'{SHIFTUP}")

send(", ")

send($pos[0])

send(", ")

send($pos[1])

send(")")

send("{enter}")

$cmds[1] = 0

Elseif $cmds[1] = "help" Then

WinActivate ("Info Dump")

send("Available commands are:")

send("{enter}{enter}")

send("click{tab}{tab}(adds a click to the code at the current mouse coordinates, relative to the topleft part of the screen)")

send("{enter}")

send("sleep{tab}{tab}(puts a pause in the program for a secondary parameter number of milliseconds)")

send("{enter}")

send("titlewait{tab}(adds a wait command to the window currently under the mouse)")

send("{enter}")

send("--------------------------------------------------------------------")

send("{enter}")

WinActivate ("Program")

msgbox(0,"Information","Check your Info Dump")

EndIf

EndIf

WEnd

$comloop=0

Share this post


Link to post
Share on other sites

this is making autoit to show its window....

$self = AutoItWinGetTitle()
   WinActivate($self, "")

any idea why you need this?


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

...yea, if you activate the actual autoit program, you bring its window to the top. That is what you are seeing.

Let AutoIt stay running in the system tray.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

oh! i was using that to pop the input window back up so that people would not have to click on it everytime they needed to type... :D

Share this post


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
Sign in to follow this  
Followers 0