Jump to content

Recommended Posts

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

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

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

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

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