Jump to content

trouble whith making the program run in background


orryzn
 Share

Recommended Posts

hey hello

uhm i have this program just and wel iam am trying to make a code for any program

i found out how to put the program i wanted in there and how to get it start up and focus on that one and i can let it start

and do what i want it to do its just wel i am looking on a way how to let it run in the back ground so i can like go on a chatting sytem and chat a bit while the program is being controlled auto it in the background i got this to happen in a way bye the function

WinSetState("[TITLE:Talisman Online | Sun and Moon | 1.2.1461.0 ]","",@SW_SHOWMINNOACTIVE)

but it doesnt keep doing it all the way when it starts to do what its needed to do it pops up evrytime and blocks whith what i am doing

how could i let i juts keep it in the background and dont even notice its running only from the minemum frame

i cant set i in a loop or in continu loop when it still will be able to do all its actions ??

pls help me if you know thnk you for your time

Link to comment
Share on other sites

I didn't understand what you said.

But maybe you want something like this :

While 1

; do your stuff here

Sleep (100) ; sleeps for 100ms to not eat too much CPU time

WEnd

And you can exit the script from the tray icon.

Edited by Inverted
Link to comment
Share on other sites

hi thnx for replying this fast well this is what i have made so far hehe i have program for like 5 hours only i dont know if this is good orso

but i want the inteded program thats running bye autoit in the background while i can do other stuff

While 1 = 1

$handle = WinGetHandle("[TITLE:Talisman Online | Sun and Moon | 1.2.1461.0 ]","")

AutoItSetOption ("WinTitleMatchMode", 3)

WinActivate("[TITLE:Talisman Online | Sun and Moon | 1.2.1461.0 ]","")

WinActive("[TITLE:Talisman Online | Sun and Moon | 1.2.1461.0 ]","")

WinActivate("[TITLE:Talisman Online | Sun and Moon | 1.2.1461.0 ]","")

SendKeepActive("[TITLE:Talisman Online | Sun and Moon | 1.2.1461.0 ]","")

Sleep(1500)

send (" {x}")

Sleep(1500)

Send ("{TAB}")

Sleep(500)

send ("{é}")

Sleep(1000)

Send ("{é}")

Sleep(1000)

Send ("{é}")

Sleep(1500)

Send ("{é}")

Sleep(1500)

Send ("{é}")

Sleep(1500)

Send ("{é}")

Sleep(500)

Send ("{TAB}")

WEnd

Link to comment
Share on other sites

and wel i found this WinSetState("[TITLE:Talisman Online | Sun and Moon | 1.2.1461.0 ]","",@SW_SHOWMINNOACTIVE)

that way it runs in the background but when it starts an action it comes back up in screen and blocks everything i was doing at that moment :s

how could i set this so it runs the whole code in winsetstate @sw_showminnoactive ???

thnx again for any help

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