Jump to content
Sign in to follow this  
Zordon

Increase numpad input

Recommended Posts

Hey,

I'm kinda new to this but have a basic understanding somewhat.. I'm trying to send numpad inputs from 0 - 9 in sets of 4 (0000-9999) increasing one at a time. I have it set to hit a specific key, E, then input the numpad.. I want to to cycle

hit E
input 0000, then wait a second
hit E
input 0001,

repeat to 9999

all being sent from the numpad

Sorry if this sound confusing

Here's my code so far

 

Global $client = "Prog"
Global $play = WinExists($client)
Global $paused

HotKeySet("{Esc}", "Quit")
HotKeySet("{9}", "Pause")

If $play = 0 Then
   MsgBox (16, "Error", "Prog is not running - please try again.")
Else
   WinActivate($client, "")
   While 1
      Placename()
   WEnd
EndIf
Exit 0

Func Placename()
   send("{E}")
   send("{NUMPAD0}")
EndFunc

Func Pause()
    $paused = NOT $paused
    While $paused
        sleep(100)
        ToolTip("Paused - Press '9' to Resume")
    WEnd
    ToolTip("")
EndFunc

Func Quit()
   Exit 0
EndFunc

 

I got to to just do the 0000 but wondering on how best to go about doing the increasing amount.

Thank you for any help you can give me on this :)

Share this post


Link to post
Share on other sites
1 hour ago, Zordon said:

To be honest it is..

Thank you for your honesty and this will be the last mistake made in our forums for you.
So, please read our forum rules now first before continuing.

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

Share this post


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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...