Jump to content
Sign in to follow this  
Unc3nZureD

AutoHotkeySet problem

Recommended Posts

Unc3nZureD

Hi! i get stucked with my script. How can i use more send funcion in a script?

like if I press F1 then send("xy")

if I press F2 then send("cc")

ok i know the AutoHotkeySet command, but how can i use more send("...") command?

huhh, im not really good in english :idea:

if i press F1 then it pressing always 00000...

if i press the F2 too then it press the 000+11111...

ive done a source code but if a func is activated is can't activate an other func without disabling the 1st.

so my source is this:

msgbox(0, "[unc3nZureD]", "message")

Global $Paused

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

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

HotKeySet("{u}", "Func1")

HotKeySet("{i}", "Func2")

HotKeySet("{o}", "Func3")

HotKeySet("{p}", "Help")

;;;; Body of program would go here ;;;;

While 1

Sleep(100)

WEnd

;;;;;;;;

Func TogglePause()

$Paused = NOT $Paused

While $Paused

sleep(100)

ToolTip('Script is "Paused"',0,0)

WEnd

ToolTip("")

EndFunc

Func Terminate()

Exit 0

EndFunc

Func Func1()

While 1

Send("{0}")

Sleep(100)

Send("{0}")

Sleep(100)

WEnd

EndFunc

Func Func2()

$delay = InputBox("Delay","Enter the time of your buff" & @CRLF & "But you need to *1000 example 10sec = 10000")

While 1

Sleep($delay)

Send("{1}")

WEnd

Exit

EndFunc

Func Func3()

While 1

Send("{2}")

Sleep(200)

Send("{2}")

Sleep(200)

WEnd

EndFunc

Func Help()

Run("notepad.exe")

WinWaitActive("[CLASS:Notepad]")

Send("szevasz{ENTER}")

Sleep(500)

Send("zser")

Sleep(500)

EndFunc

so again the question:

how can i solve the switching. i dont wanna switch between 2 function, i want to use 2 func in 1 time.

I hope u understand it :)

if my source need modification please write it

thx

Share this post


Link to post
Share on other sites
Unc3nZureD

if any1 didn't understand it, pls write me.

Share this post


Link to post
Share on other sites
murder567

I get what your saying but unfortunately it is not possible.

You cannot make it do two functions at the same time because autoit is single-threaded so it only does one thing at a time.

Share this post


Link to post
Share on other sites
Unc3nZureD

ok thx. If any1 knows in visual basic, pls pm me. or mail. ty

Share this post


Link to post
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
Sign in to follow this  

×