Page 1 of 1

running multiple accounts on the same computer with autoit

Posted: May 1st, 2009, 2:44 pm
by deltacha
is there a way to run more than one autoit script and account on a computer at the same time without using virtual machines?

i can use virtual machines but they crash sometimes and use a lot of cpu power.

for example the idea is to run two accounts on the same computer and each running a delete script. i have tried with user accounts and it isn't working

anyone know how to accomplish this?

Posted: May 3rd, 2009, 2:05 pm
by _obelix_
idea (can't test it atm): modify the delete script to send every minute an "ALT+Tab" keystroke, so active window switches to the other client instance running?

just make sure, you have the spot for delete at the same position so the script does not delete something you want to keep.


as i said - just an idea, can't test it atm.

Posted: May 12th, 2009, 4:45 am
by r04r
What you could do is give both SWG windows a different title, when running windowed, with the following autoit script:

Code: Register to unlock hidden link

$title = "Star Wars Galaxies"
$i=0
While WinExists($title)
	$i=$i+1
	WinSetTitle($title,"","SWG"&$i)
WEnd
Then accordingly in your code put WinActivate("SWG#") replacing the # with the instance of the SWG window you want to run. Just look at the title of the SWG window.

For example, if you want to switch between windows on a given interval, you could use a third autoit script,

Code: Register to unlock hidden link

$interval = 10 ; In seconds
HotKeySet("{ESC}", "Terminate")
While 1=1
	WinActivate("SWG1")
	Sleep($interval*1000)
	WinActivate("SWG2")
	Sleep($interval*1000)
WEnd

;Terminate Script
Func Terminate()
	Exit 0
EndFunc   ;==>Terminate
Then you'll of course have to make sure your other script doesn't mess up, E.G. having the interfaces exactly the same.


If there is enough interest, I can write up a script that works with multiple SWG's to delete junk

Posted: May 15th, 2009, 7:09 am
by phelan1777
I am interested in this as can and do run more then one account on my PCs.

Posted: May 16th, 2009, 11:36 am
by r04r
I totally haven't tested this, because I just have one account, etc. Just run this script first before using:

Code: Register to unlock hidden link

$title = "Star Wars Galaxies"
$i=0
While WinExists($title)
   $i=$i+1
   WinSetTitle($title,"","SWG"&$i)
WEnd 

Posted: May 16th, 2009, 3:39 pm
by djsdark
EDIT: Nvm, missread your code Ro4r, what I was thinking is exactly what you made lol. Good one!

Posted: May 16th, 2009, 5:09 pm
by r04r
I'd appreciate it if someone could try it out. I have no idea if it works! Hehee... heh...