Sign in to follow this  
Followers 0
flower

Problem using AutoIt with windows Vista

2 posts in this topic

Used a script in Windows XP with no problem, copy over to another computer with Vista and it doesn't work.

This is happening with 2 different scripts. it's just a simple script that hits the space bar every few minutes and another that moves the mouse around. This is not my exact script, I copied an example from another page.

WinWaitActive("Whatever program I want here")

HotKeySet("{PAUSE}", "Start")

HotKeySet("!{PAUSE}","Quit")

TogglePause()

func Start()

HotKeySet("{PAUSE}")

HotKeySet("{PAUSE}", "TogglePause")

ToolTip('AntiAFK started.',0,0)

While 1

Send("{SPACE}")

Sleep(Random(120000,240000))

WEnd

EndFunc

Func TogglePause()

ToolTip('AntiAFK Stopped.',0,0)

HotKeySet("{PAUSE}")

HotKeySet("{PAUSE}", "Start")

While 1

sleep(100)

WEnd

EndFunc

func Quit()

Exit

EndFunc

Share this post


Link to post
Share on other sites



I have a large number of scripts that work with both XP and Vista, I havn't run into a problem with a script failing on vista that works on xp. The one thing that I do that may be different from most is I turn off user account control.


Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

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