ghettochild Posted May 7, 2004 Share Posted May 7, 2004 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? Link to comment Share on other sites More sharing options...
Developers Jos Posted May 7, 2004 Developers Share Posted May 7, 2004 (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 May 7, 2004 by JdeB 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...
ghettochild Posted May 7, 2004 Author Share Posted May 7, 2004 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted May 7, 2004 Developers Share Posted May 7, 2004 this is making autoit to show its window.... $self = AutoItWinGetTitle() WinActivate($self, "") any idea why you need this? 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...
scriptkitty Posted May 7, 2004 Share Posted May 7, 2004 ...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. Link to comment Share on other sites More sharing options...
ghettochild Posted May 7, 2004 Author Share Posted May 7, 2004 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... 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