Sign in to follow this  
Followers 0
Prairie

Can't seem to wrap my head around making a ''clickbox''

5 posts in this topic

Here's the code I'm using now:

$xaxis = Random( [466 [, 558 [, 1]]] )

$yaxis = Random([294 [, 376 [, 1]]])

$clicks = Random([1 [, 3 [, 1]]])

$clickspeed = Random([10 [, 20 [, 1]]])

MouseClick("left", [$xaxis, $yaxis [, $clicks [, $clickspeed]]])

I'm very new to this and am not sure why this isn't working, is $ only for words? (and if so, what's the symbol for integers?).

I'm trying to make a box that gets clicked in a random location with co-ordinates as the walls that don't get clicked outside of. Any help is appreciated, thank you :)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

@Prairie

Welcome to autoit forum :)

Just remove all the ']' and '[' from your script

Cheers, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

remove all the ] and [.

Edit: too slow :(

Edited by Alek

[font="Impact"]Never fear, I is here.[/font]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

@Alek

Although im on my iPod, im faster than you, you should try to tape faster on your keyboard :)

Edit : @Prarie -> use CODE tags for write your scripts on the forum :)

Cheers, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Thanks guys, appreciate it.

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