Sign in to follow this  
Followers 0
Zefed

How to stop script no close program?

8 posts in this topic

Hello!

I wonder if we can stop/pause(to start at the beginning or paus as in tray) the script use button? (without using hotkey and without leaving the gui!)

I searched the forum but found only from hotkey but i'm interested button

(sorry for my bad English.. I must use translator :P

Share this post


Link to post
Share on other sites



Hello!

I wonder if we can stop/pause(to start at the beginning or paus as in tray) the script use button? (without using hotkey and without leaving the gui!)

I searched the forum but found only from hotkey but i'm interested button

(sorry for my bad English.. I must use translator :P


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

This is not working for me. (You probably do not know how this applied) 

No exit loop. 

When the script runs at all as if gui crashes..

Share this post


Link to post
Share on other sites

Zefed,

Post the code you are using - see here how to do it. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Test", 295, 274, 256, 124)
$Spam = GUICtrlCreateEdit("", 8, 104, 273, 161)
$Start = GUICtrlCreateButton("Start", 8, 64, 131, 33)
$Stop = GUICtrlCreateButton("Stop", 152, 64, 131, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


HotKeySet("{Esc}","stop")


Func stop()
Exit
EndFunc


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

Case $Stop



Case $Start

$SpamRead = GUICtrlRead($Spam)

Sleep(3000)

while 1
Send($SpamRead)
Send("{enter}")
Sleep(600)
WEnd

EndSwitch
WEnd 

 

Ok, Im write this for test. 

Edited by Zefed

Share this post


Link to post
Share on other sites

Zefed,

$Spam = GUICtrlCreateEdit

Just what are you intending to spam with this script? :huh:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

I do not know - I wrote a mini-spam bot(?) because it came first to mind. Even checked on yt but there are the same hotkeys 

Share this post


Link to post
Share on other sites

Zefed,

 

I do not know - I wrote a mini-spam bot(?) because it came first to mind

A strange choice for a first script - and not something we would want to support. Please start a new thread when you have a less-controversial project in mind - this one is closed. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


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