AutoHotkey Community

It is currently May 26th, 2012, 7:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: July 6th, 2007, 7:45 am 
Offline

Joined: September 23rd, 2006, 1:58 pm
Posts: 149
I have created some basic stuff for the game automation fraction.

It´s nothing new or special, just some basic stuff,
but it covers some FAQs in the help-section of the forum.

I made some functions (just below), you can use in your own scripts
and some little tools:

A Click-Recorder/Script-Writer to record mouseclicks into ahk-scripts.

A SendMode/KeyDelay-Tester to quickly test different SendModes and KeyDelays with your own mouse-clicking and key-pressing hotkey or subroutine.


The folowing 7 functions are all independend of each other,
so you can copy only the needed ones:
There are two functions to let the user select a position or area on the screen.
    definescreenarea
    definescreenposition

There are four functions to randomly click/right-click in a certain screen-area.
    randomclick
    randomclickinarea
    randomrightclick
    randomrightclickinarea

The last function sleeps for a random time
    randomsleep


Code:
code removed due to protest.
http://www.autohotkey.com/forum/viewtopic.php?t=81795


Attention: these are only functions, you need to incorporate them in your own script to get any result

check out the functions in the following posts, too ...

Keywords:
auto-mine , auto-click , auto-buy , automine , autoclick , autobuy , click , drag , randomly , random-click , random-sleep , random , auto , click , mouse , move , game , browsergame, automation , drag and drop , click-recorder , record , script-writer , script , writer


Last edited by Zed Gecko on January 28th, 2012, 3:18 am, edited 8 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2007, 9:41 am 
Thx for your effort & sharing this. Would you mind to finaly add a WriteMeAScript() function :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2007, 5:46 pm 
^^
Roger, i´m trying really hard, but
i still have some trouble with the FindOutWhatTheUserReallyWants() function :roll:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2007, 6:37 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
this is like DWIM(x)
http://ars.userfriendly.org/cartoons/?i ... de=classic

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2007, 2:44 pm 
very cool,
i think DWIM(x) is so essential,
Chris should introduce this to autohotkey as soon as possible.
I can´t live without it anymore :lol:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2007, 3:05 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
I also have some functions for stealthy game macroing, here are two of them:

Code:
Click(x, y, p = "", e = 5) {
   Random, r, 5, 30
   SetDefaultMouseSpeed, r
   Random, r, -e, e
   x += r
   Random, r, -e, e
   y += r
   Click %p% %x% %y%
   Sleep, 10
}

Sleep(d, e = 0.4) {
   Random, r, d * (1 - e), d * (1 + e)
   Sleep, r
}

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 11th, 2007, 6:39 am 
Offline

Joined: September 23rd, 2006, 1:58 pm
Posts: 149
similar to the randomclick()-function i made the

randomclickdrag()-function
Code:
code removed due to protest.
http://www.autohotkey.com/forum/viewtopic.php?t=81795



Last edited by Zed Gecko on January 28th, 2012, 3:19 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 1st, 2007, 7:49 pm 
Offline

Joined: July 15th, 2007, 1:43 am
Posts: 1320
I've also made some functions. dieomclick() dieomsleep()

Code:
; dieomclick
; Example dieomclick(100, 100, 10) Clicks X90-110 Y90-110
dieomclick(xcoord, ycoord, offset = 0)
{
   Random, diex, -%offset%, %offset%
   Random, diey, -%offset%, %offset%
   xcoord += %diex%
   ycoord += %diey%
   Click, Left, %xcoord%, %ycoord%
}


Code:
; dieomsleep
; example dieomsleep(1000, 100) Waits 900-1100 Milliseconds
dieomsleep(sleep, rsleep = 0)
{
   Random, dies, -%rsleept%, %rsleep%
   sleep += %dies%
   Sleep, %sleep%
}

_________________
Religion is false. >_>


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Simple Click-Recorder
PostPosted: May 31st, 2008, 10:12 pm 
Offline

Joined: September 23rd, 2006, 1:58 pm
Posts: 149
I made a little Click-Recorder,
it records Left/Middle/Right-MouseClicks and displays them as an ahk-script, so you can include them in your scripts.
The functionality is limited:
    you can record MouseClicks,
    and you can change the CoordMode for clicks from relative to screen and back.

Usage: after the script is started, it shows a MsgBox which tells you all usable hotkeys:
Press "Pause" to start/stop the click-recording.
Press "Escape" to show/update the GUI!
Press "Ctrl+Alt+M" to toggle the CoordMode.
Press "Ctrl+Alt+T" enable/disable a Tooltip showing your last action.

Code:
code removed due to protest.
http://www.autohotkey.com/forum/viewtopic.php?t=81795


Last edited by Zed Gecko on January 28th, 2012, 3:19 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher and 9 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group