Jump to content
Sign in to follow this  
Snhd

Mouseclick button

Recommended Posts

Snhd

hello!

How can I get this Code to a button ? :

HotKeySet("{F8}", "_pause") ; "F8"

Global $pause

While True

MouseClick("left", 418, 312)

MouseClick("left", 485, 312)

MouseClick("left", 448, 312)

MouseClick("left", 484, 312)

MouseClick("left", 485, 312)

WEnd

Func _pause()

$pause = Not $pause

While $pause

Sleep(500)

WEnd

EndFunc ;==>_pause

Share this post


Link to post
Share on other sites
Snhd

Why did you open a new topic on the same subject?

=>

As to your question: I have no idea what you are asking, pls explain.

omg... look i need that code to a button so when i click the button that code will start !!

if you dont know what i mean now then stfu

Share this post


Link to post
Share on other sites
pieeater

telling a dev to "stfu" is a great way to get banned.

HotKeySet("{F8}", "_pause") ; "F8"
Global $pause = 0
Func _buttonFunc()
if $pause then
     MouseClick("left", 418, 312)
     MouseClick("left", 485, 312)
     MouseClick("left", 448, 312)
     MouseClick("left", 484, 312)
     MouseClick("left", 485, 312)
else
     sleep(500)
endif
endfunc

func _pause()
     $pause = not $pause
endfunc

now just make the button run the _buttonFunc() function

Edited by pieeater

[spoiler]My UDFs: Login UDF[/spoiler]

Share this post


Link to post
Share on other sites
Jos

If you dont know what i mean now then stfu

I will not tolerate you talking to me like that and you should have known that given your history with me.

This time you get a 2 weeks ban to think if you really want to return here and behave or simply stay away.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×