Go Back   Nodiatis Forums > Nodiatis Forums > General Discussion > Uncivil or Off Topic
Forgot?

Reply
 
Thread Tools Display Modes

Few handy AHK scripts
Old 08-02-2013, 10:27 PM   #1
zenga
Epic Scholar
 
zenga's Avatar
 
zenga is offline
Join Date: Aug 2008
Location: Somewhere in Belgium
Posts: 2,086
Send a message via MSN to zenga
Default Few handy AHK scripts

Figured I can share some of my scripts I've made and used for Nod. Will share the ones I can easily extract for now from my main script, since my main could be easily changed into a bot as I made heavy use of pixel recognition (e.g. I had a spammable button to activate autoattack/autoshoot, but my script would check if the autoshoot button was actually available and would only pass the keystroke then to the nod client).

Those are autohotkey scripts, and you need to paste them in a textfile and give it an .ahk extension.

1. Open 3 firefox windows, resize the screen so that I don't have scrollbars, and rename the windows to the charname I want to play in that particular window. The hotkey is shift + 1

Code:
MakeWindowA()
	{
Run, C:\Program Files (x86)\Mozilla Firefox\firefox.exe -new-window "http://www.nodiatis.com"
WinWaitActive, Nodiatis - Free Online Multiplayer RPG
WinSetTitle, Zenga
WinMove,,,0,0,780,780
	}
MakeWindowB()
	{
Run, C:\Program Files (x86)\Mozilla Firefox\firefox.exe -new-window "http://www.nodiatis.com"
WinWaitActive, Nodiatis - Free Online Multiplayer RPG
WinSetTitle, Vasco
WinMove,,,-780,0,780,780
	}
MakeWindowC()
	{
Run, C:\Program Files (x86)\Mozilla Firefox\firefox.exe -new-window "http://www.nodiatis.com"
WinWaitActive, Nodiatis - Free Online Multiplayer RPG
WinSetTitle, Ugolin
WinMove,,,781,0,780,780
	}
+1::
MakeWindowA()
MakeWindowB()
MakeWindowC()
return
2. Reposition the windows if I somehow messed up. Hotkey is shift+2

Code:
RepositionWindows()
	{
	IfWinExist, Zenga
		{
			WinMove,,,0,0,780,780
		}
	IfWinExist, Vasco
		{
			WinMove,,,-780,0,780,780
		}
	IfWinExist, Ugolin
		{
			WinMove,,,781,0,780,780
		}
	}
+2::
RepositionWindows()
return
Will update this thread with more useful stuff (walk, group, queue for arena, fight) once I clean it up.
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 05:11 PM
Boards live since 05-21-2008


vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.