Jump to content

Simple script i think...


IBeSeeN
 Share

Recommended Posts

Ok i have a problem with this script i edited..it works fine when i first start it but when i go to toggle it... thats were the problems start..i have to push shift then push end to toggle...but when i go to toggle it back on.. it just clicks and dosent hold shift..

dose anyone know how to fix this so it toggles right or is it impossable?

Global $Paused

HotKeySet("{END}", "TogglePause")

HotKeySet("{HOME}", "Terminate")

While 1

Sleep(100)

WEnd

Func TogglePause()

$Paused = NOT $Paused

While $Paused

Send("{SHIFTDOWN}")

sleep(100)

MouseClick("Left")

WEnd

EndFunc

Func Terminate()

Exit 0

EndFunc

Thanks IBeSeeN

Edited by IBeSeeN
Link to comment
Share on other sites

In your Func TogglePause() you set $paused= not $paused.. so when it hits the "while" loop, it skips right past it. Try this:

Global $Paused
HotKeySet("{END}", "TogglePause")
HotKeySet("{HOME}", "Terminate")

While 1
Sleep(100)
While NOT $Paused
Send("{SHIFTDOWN}")
sleep(100)
MouseClick("Left")
WEnd
WEnd

Func TogglePause()
$Paused = NOT $Paused
EndFunc

Func Terminate()
Exit 0
EndFunc

Infinity is a floorless room without walls or ceiling.Anyone who cannot cope with mathematics is not fully human. At best he is a tolerable subhuman who has learned to wear shoes, bathe, and not make messes in the house.

Link to comment
Share on other sites

In your Func TogglePause() you set $paused= not $paused.. so when it hits the "while" loop, it skips right past it. Try this:

Global $Paused
HotKeySet("{END}", "TogglePause")
HotKeySet("{HOME}", "Terminate")

While 1
Sleep(100)
While NOT $Paused
Send("{SHIFTDOWN}")
sleep(100)
MouseClick("Left")
WEnd
WEnd

Func TogglePause()
$Paused = NOT $Paused
EndFunc

Func Terminate()
Exit 0
EndFunc
meh same problem but not it dosent need me to toggle it on... im useing this in diablo 2 Lod so it will auto cast hammers in uber trist for me...
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...