Sign in to follow this  
Followers 0

Clicking Problem

2 posts in this topic

Hey guys im pretty new to the forum and im having some trouble on my script. The script is working as i intended too except that sometimes it doesn't click or at least clicks are not being registered.

heres my script

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused, $Runner
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("{F9}", "ShowMe")

;;;; Body of program would go here ;;;;
While 1

Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        ToolTip('Script is "Paused"', 0, 0)
EndFunc   ;==>TogglePause

Func Terminate()
    Exit 0
EndFunc   ;==>Terminate

Func ShowMe()
    $Runner = Not $Runner
    While $Runner
        sleep (1222)
        sleep (1222)
        sleep (1222)
EndFunc   ;==>ShowMe

Share this post

Link to post
Share on other sites

Hello Smiggle,

First, Welcome to the AutoIt Forums :graduated:

The script example you provide, works for me, I tested by turning 'ShowMe()' on and off several times, without any problems. I believe the problem lies with the rest of the code which you did not supply.


My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

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  
Followers 0