Sign in to follow this  
Followers 0
alienresurrected

Running script "in background"

11 posts in this topic

Hi peeps.Can some1 tell me how to make script run in minimized window?I made this little script that opens web certain site and logs in and out(to gain lvls,don't ask),but how can i make it run in min mode?I use {TAB} to switch between log in and out buttons,so when i switch to other window it starts jumping through by pressing TAB button.How do i make it to run "in background" like,so i can do something else-browse internet ie.???

Plz help.

Share this post


Link to post
Share on other sites

GUISetState(@SW_MINIMIZE)


Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
Share on other sites

or WinSetState, because it may not be a GUI :)


FootbaG

Share this post


Link to post
Share on other sites

Where do i place it?I put it at the beggining of the script and it doesn't work.

Share this post


Link to post
Share on other sites

Line 25

w/o code its hard to say


Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
Share on other sites

I only get error msg no matter where i place it.

Share this post


Link to post
Share on other sites

w/o code its hard to say

<{POST_SNAPBACK}>


Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
Share on other sites

$vAccount = IniRead("config.ini", "Account", "password", "Account key not found")

$vWeb = IniRead("config.ini", "Web", "web", "Web key not found")

$i = 0

AutoItSetOption("MouseCoordMode",0)

loadMozilla()

AdlibEnable("MozillaCheck")

HotKeySet("^!x", "MyExit")

gotoCustomPc()

logIn()

repeat()

myExit

AdlibDisable()

Func MozillaCheck()

If WinExists("Custom PC - Mozilla") == 0 Then

MsgBox(0,"My Bot","You need Mozilla to run, and the window is not present in memory.")

Exit

EndIf

EndFunc

Func loadMozilla()

Run("C:\Program Files\mozilla.org\Mozilla\mozilla.exe")

Sleep(4000)

EndFunc

Func gotoCustomPc()

Send("^+l")

ClipPut($vWeb)

Send("^v")

Send("{ENTER}")

Sleep(4000)

EndFunc

Func logIn()

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}")

Sleep(3000)

Send("{SHIFTDOWN}")

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}")

Send("{SHIFTUP}")

Sleep(500)

ClipPut($vAccount)

Send("^v")

Send("{ENTER}")

Sleep(3000)

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}")

Sleep(3000)

EndFunc

Func repeat()

Do

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}")

Sleep(3000)

Send("{SHIFTDOWN}")

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}")

Send("{SHIFTUP}")

Sleep(500)

ClipPut($vAccount)

Send("^v")

Send("{ENTER}")

Sleep(3000)

Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{ENTER}")

Sleep(3000)

$i = $i + 1

Until $i = 100

EndFunc

Func myExit()

Exit

EndFunc

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Use ControlSend("Custom PC - Mozilla","","","what ever was in Send") instead of Send("what ever was in Send")

and:

{TAB 8} = {TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}

Edited by Ejoc

Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Thx for {TAB 8} :) but what u mean by "whatever was in send"?

U mean all those TAB's and ENTER's and other stuff?

Edited by alienresurrected

Share this post


Link to post
Share on other sites

I don't know if anyone actually answered this or I am just misunderstanding the answer but how do we run things in the background, minimized? I want to authenticate to my network while playing Final Fantasy. If anything takes Final Fantasy out of fullscreen mode it shuts down, so I need my IE window to open without disrupting that. I tried GUISetState(@SW_MINIMIZE) and WinSetState(@SW_MINIMIZE) . I put them right before I ran the IE executable and got an error. Thanks to anyone who can help

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