Jump to content

Beginner to Functions/hotkeys


Recommended Posts

ok so i have made a few AutoIt scripts before i have tried my hand at making a GUI but i cant seem to ever get the "Start" and "Stop" buttons to actually work. i have been trying to do simple tasks like making a count down timer that will take the users input (any number) and display the time given and -1 every second. BUT, my "Stop" button doesnt take effect until it gets through the Do/While statement.

so, i have seen a couple scripts with these hotkey functions and i was wondering if that is an "any time" function. like if i put 60 into my counter, and i wanna reset it, will the function hotkey be able to interrupt the script??

if so, where would u guys suggest i go to read up and view examples on how to setup functions in my scripts??

Thx guys,

Jon S.

Edited by Kidney
Link to comment
Share on other sites

  • Developers

It greatly helps when you post what you have and isn't working so we have something to "shoot" at.

Jos

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

Link to comment
Share on other sites

  • Moderators

Kidney,

Welcome to the AutoIt forum. :)

You are the latest (but you will certainly not be the last) in a very, very long line of people asking about this! :D

AutoIt does not interrupt running functions except in certain circumstances. I wrote a tutorial in the Wiki to explain how to do it - take a look and see if it helps. The tutorial covers several ways to interrupt a function, but your guess about HotKeys is spot on and if you just read the parts about HotKeys you will see how to use them to do what you want. ;)

If it all gets too complicated, then post your script and we will see how we can incorporate a HotKey into it for you. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

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...