AutoHotkey Community

It is currently May 26th, 2012, 4:42 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: March 31st, 2009, 6:19 pm 
Offline

Joined: March 30th, 2009, 7:17 pm
Posts: 9
I have a script which is kind of working well.

I would like the change the part where I have to press CTRL+F12 to being and F12 to pause. To only have to press F12 to start / stop this.

I have also noticed that the "Pause" function sometimes buggers up the rest of the script and forces me to "Reload this script" in order to make it work properly. Can anyone see why this is happening ?

Code:
#InstallKeybdHook ;allows this programme to work on any machine

F12::
Pause toggle
SoundBeep 750

^f12::
Soundbeep 250, 750
Loop

;---------HARVESTING MACRO STARTS--------------------

{
Send r ; Un-sheaths harvesting tool by pressing R ingame.
Loop 25 {
Soundbeep 50
MouseClick, left ; Swing
Sleep, 11000 ;waits for 11 seconds
}

Send r ;sheaths harvesting tool by pressing R ingame
sleep, 1000 ;Waits for 1 seconds

Send 0 ; switch to rest skill by press 0 ingame
sleep, 1000 ; waits 1 second

MouseClick, left ; activates rest
sleep, 60000 ; waits 60 seconds

Send w ; stands up
sleep, 2000 ; waits 2 second

}

Return

^PGDN:: ;Starts Ventrilo overlay, Ventrilo, and Darkfall
Run C:\Program Files\Ventrilo\VoiceOverlay.exe -minimize -enable
Run C:\Program Files\Ventrilo\Ventrilo.exe
Run C:\Program Files\Darkfall\Lobby.exe

Return

F1:: ;Sword and Shield Slots 1 and 2
Send, {SHIFTDOWN}1{SHIFTUP}
sleep 100
Send, 1
sleep 1000
send, 2
sleep 500
Send, {SHIFTDOWN}2{SHIFTUP}

Return


F2:: ;Bow Slot 3
Send, {SHIFTDOWN}1{SHIFTUP}
sleep 100
Send, 3
sleep 500
Send, {SHIFTDOWN}3{SHIFTUP}
Return


F3:: ;Staff Slot 4
Send, {SHIFTDOWN}1{SHIFTUP}
sleep 100
Send, 4
sleep 500
Send, {SHIFTDOWN}4{SHIFTUP}

Return

F4:: ;Harvesting tool in Slot 5
Send, {SHIFTDOWN}1{SHIFTUP}
sleep 100
Send, 5

Return

F5:: ;Harvesting tool in Slot 6
Send, {SHIFTDOWN}1{SHIFTUP}
sleep 100
Send, 6

Return

F10:: ;Heal & back to Sword and sheild

Send, {SHIFTDOWN}1{SHIFTUP}
sleep 100
Send, 4
sleep 500
Send, {SHIFTDOWN}4{SHIFTUP}
sleep 500
send 9
sleep 200
click
sleep 5000
Send, {SHIFTDOWN}1{SHIFTUP}
sleep 100

Send, 1
sleep 1000
send, 2
sleep 500
Send, {SHIFTDOWN}2{SHIFTUP}

Return

F11::
Pause toggle
SoundBeep 750

^f11::
soundbeep 250, 750
Loop

Loop {
Soundbeep 50
MouseClick, left ; Click
Sleep, 20500
}


Return

F9::
Send r
sleep 1000
Send 0
sleep 500
Click

Return


[Title edited. Please write descriptive titles for your topics. ~jaco0646]


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Miguel, notsoobvious and 14 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