Sign in to follow this  
Followers 0
chocodile

i cant get my script to work please help!!!!!!!!!

4 posts in this topic

hi,

i made the attached script with autoitt record and for some reason it wont play back could some one take a look at it and help fix it please!!!!!!

#region ---Au3Recorder generated code Start (v3.3.7.0) ---

#region --- Internal functions Au3Recorder Start ---

Func _Au3RecordSetup()

Opt('WinWaitDelay',100)

Opt('WinDetectHiddenText',1)

Opt('MouseCoordMode',0)

EndFunc

Func _WinWaitActivate($title,$text,$timeout=0)

WinWait($title,$text,$timeout)

If Not WinActive($title,$text) Then WinActivate($title,$text)

WinWaitActive($title,$text,$timeout)

EndFunc

AU3RecordSetup()

#endregion --- Internal functions Au3Recorder End ---

_WinWaitActivate("bin","")

MouseClick("left",523,850,1)

MouseClick("left",523,850,1)

_WinWaitActivate("Start menu","")

MouseClick("left",43,537,1)

_WinWaitActivate("bin","")

MouseClick("left",467,940,1)

_WinWaitActivate("classname=Shell_TrayWnd","")

_WinWaitActivate("Add a device","")

MouseClick("left",475,445,1)

_WinWaitActivate("classname=Shell_TrayWnd","")

_WinWaitActivate("Driver Software Installation","")

MouseClick("left",499,151,1)

_WinWaitActivate("Add a device","")

MouseMove(481,34)

MouseDown("left")

MouseMove(489,189)

MouseUp("left")

_WinWaitActivate("bin","")

MouseClick("left",1208,22,1)

_WinWaitActivate("How to Make AutoIt Follow Your Movements | eHow.com - Mozilla Firefox","")

MouseClick("left",1200,25,1)

_WinWaitActivate("Add a device","")

MouseMove(499,11)

MouseDown("left")

MouseMove(513,-263)

MouseUp("left")

MouseClick("left",581,447,1)

_WinWaitActivate("Program Manager","")

MouseClick("left",263,992,1)

_WinWaitActivate("How to Make AutoIt Follow Your Movements | eHow.com - Mozilla Firefox","")

MouseClick("left",301,100,1)

Send("blue")

MouseClick("left",307,116,1)

_WinWaitActivate("Mozilla Firefox","")

MouseClick("right",118,214,1)

MouseClick("left",136,255,1)

MouseClick("left",89,222,1)

MouseClick("left",90,209,1)

#endregion --- Au3Recorder generated code End ---

Share this post


Link to post
Share on other sites



Hi, chocodile, welcome to the forum. Can you please explain in greater detail what you're trying to accomplish? You have a lot of MouseClicks in there, and there may be a much easier way to do what you want.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Change AU3RecordSetup() to this _AU3RecordSetup() there's a bug in the recorder that drops the initial underscore before the function name AU3RecordSetup. DON'T change the function name, just the point where it calls the function.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

hi this was an attempt automate bluetooth commandline tools bluetooth headset pairing and connection with autoit the systray mouse clicks were in response to windows 7 dialog boxes during driver selection if there is a easier way to pair and connect a bluetooth headset please show me!!!any way here is my batch file for discovery and pairing:

:begin

set bluetoothadd=

set class=

set pin= 0000

FOR /F "tokens=1-2 delims=-" %%A IN ('c:btdiscovery -d"%%a%% - %%t%%"') DO SET bluetoothadd=%%A & SET class=%%B

echo %bluetoothadd%

echo %class%

if %class% == Headset c:btpair -b%bluetoothadd% -p%pin%

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