Page 1 of 4 123 ... LastLast
Results 1 to 15 of 46
  1. #1
    dwdude's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    220
    Reputation
    10
    Thanks
    47

    [AHK] Quick teleport, trade spam, auto-select, auto-deposit/withdraw, customizable!

    Hey there. Decided I'd release the autohotkey script I've been working on.

    IMPORTANT:
    If you are trying to use the auto-select, auto-deposit, and auto-withdraw, you must be using a Flash projector and it must be the default 800x600 size. If you are not, hotkeys F5 F6 and F7 will not move to the correct position on your screen.

    Controls:
    Code:
    F1 = "Heal please!"
    F2 = "He lives and reigns and conquers the world"
    F3 = Trade message
    F4 = Send Trade to yourself (from a mule)
    
    F5 = Select all in trade (Selects all 8 items in your trade window, then presses accept after 3 seconds. Just wait)
    F6 = Withdraw
    F7 = Deposit
    F8 = Low Quality (rather touchy, so you may have to press it a few times)
    
    F9 = Change MyName
    F10 = Change Trade Message
    F11 = Change Teleport
    F12 = Disable/Enable hotkeys
    
    MiddleMouseButton = Quick teleport
    ` = /pause
    plz = /tutorial
    As you can see, it is similar to QuickSpeech, but more useful and easier to customize.

    Here is the script itself. I have it commented pretty well so you can learn from it if you are learning AutoHotKey, but there are only a few default values that you should really worry about anyway.

    Credits go to me, as well as BMJ for inspiring me to create something better.
    Code:
    ; ======================================
    ; CHANGE THESE FOR SCRIPT STARTUP VALUES
    ; CHANGE THESE FOR SCRIPT STARTUP VALUES
    ; CHANGE THESE FOR SCRIPT STARTUP VALUES
    ; CHANGE THESE FOR SCRIPT STARTUP VALUES
    ; CHANGE THESE FOR SCRIPT STARTUP VALUES
    ; ======================================
    Teleport = Kalle
    MyName = BMJ
    TradeMessage = Selling Amulet for 1 bbow!
    
    ; =========================
    ; DO NOT CHANGE ANYTHING BELOW THIS LINE
    ; DO NOT CHANGE ANYTHING BELOW THIS LINE
    ; DO NOT CHANGE ANYTHING BELOW THIS LINE
    ; DO NOT CHANGE ANYTHING BELOW THIS LINE
    ; =========================
    
    TradeMessageToggle = 0
    HotkeyStatus = Enabled
    
    ; Prompt to disable all hotkeys. Placement is important; we want to be able ti disable hotkeys from any window
    F12::
    	MsgBox, 4, Disable?, Would you like to disable all hotkeys? Yes = Disabled, No = Enable. Currently: %HotkeyStatus%
    	IfMsgBox Yes
    		HotkeyStatus = Disabled
    	IfMsgBox No
    		HotkeyStatus = Enabled
    return
    
    
    ; Any hotkeys below this line will only work in a flash player window
    ; NOTE: If you are not using a flash projector, comment out the line below by putting a ; in front of it.
    ; NOTE: If you do comment it out, F5 F6 and F7 will not work.
    #IfWinActive Adobe Flash Player 11
    
    ; Quick teleport. OHSHIT moments
    MButton::
    	if HotkeyStatus = Enabled
    	{
    		SendInput {raw}/teleport %Teleport%
    		Send {Enter}
    	}
    return
    
    
    ; When you type plz, it changes it to /tutorial.
    :*b:plz::/tutorial{Enter}
    
    
    ; Top left button on keyboard, toggles pause
    `::
    	if HotkeyStatus = Enabled
    	{
    		SendInput {raw}/pause
    		Send {Enter}
    	}
    return
    
    
    ; =========================
    ;
    ;	FX KEY SCRIPTS
    ;
    ; =========================
    
    
    ; Heal please!
    F1::
    	if HotkeyStatus = Enabled
    	{
    		Send {Enter}
    		SendInput {raw}Heal please!
    		Send {Enter}
    	}
    return
    
    
    ; Ocean trench message
    F2::
    	if HotkeyStatus = Enabled
    	{
    		Send {Enter}
    		SendInput {raw}He lives and reigns and conquers the world
    		Send {Enter}
    	}
    return
    
    
    ; Send trade/spam message, changing the last part so it is always visible
    F3::
    	if HotkeyStatus = Enabled
    	{
    		if TradeMessageToggle = 0
    		{
    			Send {Enter}
    			SendInput {raw}%TradeMessage%
    			Send {Enter}
    			TradeMessageToggle = 1
    		}
    		else if TradeMessageToggle = 1
    		{
    			Send {Enter}
    			SendInput {raw}%TradeMessage%.
    			Send {Enter}
    			TradeMessageToggle = 2
    		}
    		else if TradeMessageToggle = 2
    		{
    			Send {Enter}
    			SendInput {raw}%TradeMessage%..
    			Send {Enter}
    			TradeMessageToggle = 0
    		}
    	}
    return
    
    
    ; Send trade to yourself (from a mule, for instance)
    F4::
    	if HotkeyStatus = Enabled
    	{
    		SendInput {raw}/trade %MyName%
    		Send {Enter}
    	}
    return
    
    
    ; Select all items in trade, then accept
    F5::
    	if HotkeyStatus = Enabled
    	{
    		XValue := 630
    		YValue := 350
    		OffsetX := 45
    		OffsetY := 100
    		Iteration := 0
    		NewRow := 0
    
    		MouseMove, %XValue%, %Yvalue%, 0
    		
    		Loop, 8
    		{
    			LoopTrade(XValue, YValue, Iteration, OffsetX, OffsetY, NewRow)
    		}
    	}
    return
    
    
    ; Withdraw all items from vault
    F6::
    	if HotkeyStatus = Enabled
    	{
    		XValue := 630
    		YValue := 575
    		OffsetX := 45
    		OffsetY := 100
    		Iteration := 0
    		NewRow := 0
    
    		MouseMove, %XValue%, %Yvalue%, 0
    
    		Loop, 8
    		{
    			LoopWithdraw(XValue, YValue, Iteration, OffsetX, OffsetY, NewRow)
    		}
    	}
    return
    
    
    ; Select all items in a trade and accept
    F7::
    	if HotkeyStatus = Enabled
    	{
    		XValue := 630
    		YValue := 475
    		OffsetX := 45
    		OffsetY := 100
    		Iteration := 0
    		NewRow := 0
    
    		MouseMove, %XValue%, %Yvalue%, 0
    
    		Loop, 8
    		{
    			LoopDeposit(XValue, YValue, Iteration, OffsetX, OffsetY, NewRow)
    		}
    	}
    return
    
    
    ; Low Quality
    F8::
    	if HotkeyStatus = Enabled
    	{
    		Send {Alt}
    		SendInput {raw}VQL
    	}
    return
    
    
    ; Change your name, for use with F4
    F9::
    	if HotkeyStatus = Enabled
    	{
    		OldName = %MyName%
    		InputBox, MyName, Change Name, What is your character's name? This is used for sending /trade when pressing F4. Current name: %OldName%
    		if ErrorLevel
    			MyName = %OldName%
    	}
    return
    
    
    ; Change trade/spam message
    F10::
    	if HotkeyStatus = Enabled
    	{
    		OldMessage = %TradeMessage%
    		InputBox, TradeMessage, Change Message, What do you want your new message to be? Current message: %OldMessage%
    		if ErrorLevel
    			TradeMessage = %OldMessage%
    	}
    return
    
    
    ; Change quick teleport. Cancel = keeps previous
    F11::
    	if HotkeyStatus = Enabled
    	{
    		PrevTeleport = %Teleport%
    		InputBox, Teleport, Change Teleport, Who do you want to have as a safe teleport? "%Teleport%" is current.
    		if ErrorLevel
    			Teleport = %PrevTeleport%
    	}
    return
    
    
    ; ================
    ;
    ;     FUNCTIONS
    ;	DO NOT MODIFY
    ;
    ; ================
    
    
    LoopWithdraw(ByRef x, ByRef y, ByRef iter, ByRef offsetX, ByRef offsetY, ByRef newRow)
    {
    	Send {LButton down}
    	y := y - offsetY
    	Sleep 250
    
    	MouseMove, %x%, %y%, 0
    	Send {LButton up}
    	Sleep 250
    	
    	iter := iter + 1
    	if iter = 4
    	{
    		newRow := 1
    	}
    	if newRow = 1
    	{
    		y := y + 45
    		x := x - 45 - 45 - 45 - 45
    		newRow := 0
    	}
    
    	x := x + offsetX
    	y := y + offsetY
    	MouseMove, %x%, %y%, 0
    }
    
    LoopDeposit(ByRef x, ByRef y, ByRef iter, ByRef offsetX, ByRef offsetY, ByRef newRow)
    {
    	Send {LButton down}
    	y := y + offsetY
    	Sleep 250
    
    	MouseMove, %x%, %y%, 0
    	Send {LButton up}
    	Sleep 250
    	
    	iter := iter + 1
    	if iter = 4
    	{
    		newRow := 1
    	}
    	if newRow = 1
    	{
    		y := y + 45
    		x := x - 45 - 45 - 45 - 45
    		newRow := 0
    	}
    
    	x := x + offsetX
    	y := y - offsetY
    	MouseMove, %x%, %y%, 0
    }
    
    LoopTrade(ByRef x, ByRef y, ByRef iter, ByRef offsetX, ByRef offsetY, ByRef newRow)
    {
    	Send {LButton down}
    	Send {LButton up}
    	
    	iter := iter + 1
    	if iter = 4
    	{
    		newRow := 1
    	}
    	if newRow = 1
    	{
    		y := y + 45
    		x := x - 45 - 45 - 45 - 45
    		newRow := 0
    	}
    	if iter = 8
    	{
    		y := y + 225
    		MouseMove, %x%, %y%, 0
    		Sleep 3000
    		Send {LButton down}
    		Send {LButton up}
    	}
    	else
    	{
    		x := x + offsetX
    		MouseMove, %x%, %y%, 0
    	}
    }
    Let me know if you have any issues and I will help correct them!
    Last edited by dwdude; 09-12-2012 at 12:18 PM. Reason: Modified controls section to be clearer.

  2. The Following 10 Users Say Thank You to dwdude For This Useful Post:

    059 (09-12-2012),CalciumFire (09-17-2012),Dr Donkey Kong (09-23-2012),juliuse (11-13-2012),pings (09-12-2012),runekri3 (09-12-2012),Twont (10-02-2012),Wesleyvs (08-14-2015),xorc (10-05-2012),yonaz333 (09-12-2012)

  3. #2
    runekri3's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    792
    Reputation
    9
    Thanks
    240
    My Mood
    Cheerful
    Thats nice

    It can be used to make duping easier aswell
    Though the script I am using is a bit easier.

    Good job

  4. #3
    dwdude's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    220
    Reputation
    10
    Thanks
    47
    Quote Originally Posted by runekri3 View Post
    Thats nice

    It can be used to make duping easier aswell
    Though the script I am using is a bit easier.

    Good job
    You are indeed correct there, it does

    What script are you using? From the ones I've seen on the forum, they are slower and less customizable.

  5. #4
    purple_stuff's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    24
    Reputation
    10
    Thanks
    3
    Cool, put it on ******

  6. #5
    Flamewind's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    9
    You should try AutoHotKey_L, it supports For loops and switch statements

  7. #6
    runekri3's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    792
    Reputation
    9
    Thanks
    240
    My Mood
    Cheerful
    Quote Originally Posted by dwdude View Post
    You are indeed correct there, it does

    What script are you using? From the ones I've seen on the forum, they are slower and less customizable.
    I used flamewinds one.
    I edited it a bit so that the only thing I need to do is press the hotkeys and walk to vault portal or walk to a chest.

    Thanks flamewind

  8. #7
    dwdude's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    220
    Reputation
    10
    Thanks
    47
    Quote Originally Posted by Flamewind View Post
    You should try AutoHotKey_L, it supports For loops and switch statements
    Don't worry, I use it. Not everybody does though, which is why I'm not using it in that script.

    You don't really need for loops that much anyway, the default Loop keyword works similarly enough. The only part I've found myself using mostly is context-sensitive hotkeys using expressions. Same with switches. I can see a few spots in my script that could use a switch, but it doesn't change the product anyway, just the code, which works fine and doesn't require an extra thing to use it.

    ---------- Post added at 02:05 PM ---------- Previous post was at 02:03 PM ----------

    Quote Originally Posted by runekri3 View Post
    I used flamewinds one.
    I edited it a bit so that the only thing I need to do is press the hotkeys and walk to vault portal or walk to a chest.

    Thanks flamewind
    That's the same thing as my script, except this has extra features which are used when you're actually playing the game too.

  9. #8
    Flamewind's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    9
    Quote Originally Posted by runekri3 View Post
    What script are you using? From the ones I've seen on the forum, they are slower and less customizable.
    I used flamewinds one.
    I edited it a bit so that the only thing I need to do is press the hotkeys and walk to vault portal or walk to a chest.

    Thanks flamewind
    Np bro, the newer version of my script has more features, like a gooey (GUI lol).

    Quote Originally Posted by dwdude View Post
    Don't worry, I use it. Not everybody does though, which is why I'm not using it in that script.

    You don't really need for loops that much anyway, the default Loop keyword works similarly enough. The only part I've found myself using mostly is context-sensitive hotkeys using expressions. Same with switches. I can see a few spots in my script that could use a switch, but it doesn't change the product anyway, just the code, which works fine and doesn't require an extra thing to use it.
    Yea, same with my script, using for loops only helps by shortening the code used in finding the next slot in your inventory for exchanging items/trading.

    I'll send you both my script. Feel free to look through the code.

  10. #9
    runekri3's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    792
    Reputation
    9
    Thanks
    240
    My Mood
    Cheerful
    Quote Originally Posted by dwdude View Post
    Don't worry, I use it. Not everybody does though, which is why I'm not using it in that script.

    You don't really need for loops that much anyway, the default Loop keyword works similarly enough. The only part I've found myself using mostly is context-sensitive hotkeys using expressions. Same with switches. I can see a few spots in my script that could use a switch, but it doesn't change the product anyway, just the code, which works fine and doesn't require an extra thing to use it.

    ---------- Post added at 02:05 PM ---------- Previous post was at 02:03 PM ----------



    That's the same thing as my script, except this has extra features which are used when you're actually playing the game too.
    His script has detection for the error messages which I didnt see in your script.

  11. #10
    marceliino's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Location
    gone forever
    Posts
    858
    Reputation
    74
    Thanks
    2,744
    Quote Originally Posted by Flamewind View Post
    Np bro, the newer version of my script has more features, like a gooey (GUI lol).


    Yea, same with my script, using for loops only helps by shortening the code used in finding the next slot in your inventory for exchanging items/trading.

    I'll send you both my script. Feel free to look through the code.
    Can i get ur GUI For ur script

  12. #11
    dwdude's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    220
    Reputation
    10
    Thanks
    47
    Quote Originally Posted by runekri3 View Post
    His script has detection for the error messages which I didnt see in your script.
    Because the timing is different for everyone. I made the script with people in mind that don't want to edit anything, thus having them rely on looking at the screen. Besides, releasing code that has completely automated duping is something I do not agree with and adding code that shows how to view connection messages on the screen does nearly all the work. From that point, editing the script to be completely autonomous is very easy.

    ---------- Post added at 03:43 PM ---------- Previous post was at 03:40 PM ----------

    Quote Originally Posted by Flamewind View Post
    Yea, same with my script, using for loops only helps by shortening the code used in finding the next slot in your inventory for exchanging items/trading.

    I'll send you both my script. Feel free to look through the code.
    Sure thing. I'll take a look at it. Just message it to me. A pastebin link or something works.

  13. #12
    Flamewind's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    9
    Sorry, was editing my script a bit, sending it to you now.
    I also just thought of some new features, I'll do them tomorrow.
    https://i.imgur.com/DguLP.png
    Goooeeey
    Last edited by Flamewind; 09-12-2012 at 04:24 PM.

  14. #13
    bastix12's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    0
    Reputation
    10
    Thanks
    0
    You have to finish BEFORE THE END THE BUILD

  15. #14
    pings's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Montreal, Quebec
    Posts
    161
    Reputation
    10
    Thanks
    253
    My Mood
    Sad
    thanks nice job!!

  16. #15
    runekri3's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Posts
    792
    Reputation
    9
    Thanks
    240
    My Mood
    Cheerful
    Quote Originally Posted by dwdude View Post
    Because the timing is different for everyone. I made the script with people in mind that don't want to edit anything, thus having them rely on looking at the screen. Besides, releasing code that has completely automated duping is something I do not agree with and adding code that shows how to view connection messages on the screen does nearly all the work. From that point, editing the script to be completely autonomous is very easy.

    ---------- Post added at 03:43 PM ---------- Previous post was at 03:40 PM ----------



    Sure thing. I'll take a look at it. Just message it to me. A pastebin link or something works.
    No Im not hating on you yours is very nice. Its just that yours is more gameplay oriented but his is more to duping. And his automation takes actually more effort then manual to me, thats why I edited it but I wont give it away because of the same reason you said.
    Quote Originally Posted by Flamewind View Post
    Sorry, was editing my script a bit, sending it to you now.
    I also just thought of some new features, I'll do them tomorrow.
    https://i.imgur.com/DguLP.png
    Goooeeey
    I actually tried to make the script detect how many ms to sleep but I couldnt find a way to like time how long it takes which would have a decent accuracy

Page 1 of 4 123 ... LastLast

Similar Threads

  1. [1.06.00] Maplestory Server Checker+Auto-Injector+Auto-Login
    By MagixAries in forum MapleStory Spammers, Injectors, and Multi Tools
    Replies: 16
    Last Post: 02-23-2012, 11:01 AM
  2. [Release] Runescape (Auto Typer/Auto Clicker) Nice layout - Simple & Easy to use!
    By tazzyopz in forum RuneScape Discussions
    Replies: 4
    Last Post: 02-10-2012, 05:47 PM
  3. [Release] Auto Shooter/Auto Clicker!
    By Takari in forum Combat Arms Europe Hacks
    Replies: 46
    Last Post: 04-28-2010, 10:41 AM
  4. [Release] Auto Shooter/Auto Clicker!
    By Takari in forum Combat Arms Hacks & Cheats
    Replies: 23
    Last Post: 04-13-2010, 12:36 PM
  5. [Release] Auto Shooter/Auto Clicker!
    By Takari in forum CrossFire Hacks & Cheats
    Replies: 80
    Last Post: 04-02-2010, 01:44 PM

Tags for this Thread