Jump to content
tuanvu

How can have the same Radio to pause?

Recommended Posts

tuanvu

Opt("GUIOnEventMode", 1)
Opt("TrayOnEventMode", 1)

$pause = GUICtrlCreateRadio("pause", 24, 71,  120,17)
GUICtrlSetOnEvent(-1, "pause")   ;Func

$radio = GUICtrlCreateRadio("diem A", 24, 71,  120,17)
GUICtrlSetOnEvent(-1, "diemA")   ;Func

$radio1 = GUICtrlCreateRadio("diem B", 24, 71,  120,17)
GUICtrlSetOnEvent(-1, "diemB")   ;Func

$thoat = GUICtrlCreateRadio("thoat exit", 24, 71,  120,17)
GUICtrlSetOnEvent(-1, "thoat")   ;Func

func  pause()

;... ?

endfunc

 

func diemA()

MouseClick("left", 500,500,2")

endfunc

 

func diemB()

MouseClick("left", 700,700,2")

endfunc

func thoat()

exit

endfunc

 

Edited by tuanvu

Share this post


Link to post
Share on other sites
Fr33b0w
func _stop()

Exit

endfunc

Is this what You want? Question is a little bit unclear.

Share this post


Link to post
Share on other sites
Jos
2 hours ago, tuanvu said:

If $go = not $go then

That would take a miracle to be ever true, but for starters:
What are you trying to do with this script as it end right away at the moment?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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
mikell
32 minutes ago, Jos said:
3 hours ago, tuanvu said:

If $go = not $go then

That would take a miracle to be ever true

My wife wouldn't agree... but she has a particular way of thinking  :)

  • Like 2

Share this post


Link to post
Share on other sites
tuanvu
20 hours ago, Fr33b0w said:
func  _ dừng ( )

Lối thoát

endfunc

Đây có phải là những gì bạn muốn? Câu hỏi là một chút không rõ ràng.

No I want to pause

Share this post


Link to post
Share on other sites
tuanvu
18 hours ago, mikell said:

My wife wouldn't agree... but she has a particular way of thinking  :)

No I want to pause
 

Share this post


Link to post
Share on other sites
tuanvu
20 hours ago, Fr33b0w said:
func _stop()

Exit

endfunc

Is this what You want? Question is a little bit unclear.

No I want to pause
 

Share this post


Link to post
Share on other sites
tuanvu
18 hours ago, Jos said:

That would take a miracle to be ever true, but for starters:
What are you trying to do with this script as it end right away at the moment?

Jos

No I want to pause
 

Share this post


Link to post
Share on other sites
Malkey

See the examples at the end of the HotKeySet() function in the AutoIt help file.

Share this post


Link to post
Share on other sites
Jos
5 hours ago, tuanvu said:

No I want to pause

Understand you have difficulty with English but it must be clear to you there is no need to state something 4 times in BIG letters as that indicates you are shouting at us.
So don't do that please.

While I have your attention: What do you want?

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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
mikell
3 hours ago, Jos said:

While I have your attention: What do you want?

My pinky whispers to my ear that he wants - probably - to pause

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

×