Jump to content

SIMPLE question


litlmike
 Share

Recommended Posts

Total noob question:

I am trying to do a very simple task.

I want a script that will run in the background,

Type "{ENTER}-oncam" whenever I press SHIFT + a

Type "{ENTER}-offcam" whenever I press SHIFT + s

And as bonus, it would be nice to be able to pause the script whenever I press PAUSE, but not neccesary.

Thanks for the help.

Here is what I did so far (probably way off):

;

; Script Function:

; Type "{ENTER}-oncam", or "{ENTER}-offcam"

; Ability to pause script

HotKeySet("{+a}", "Oncam")

HotKeySet("{+s}", "Offcam")

Func Oncam()

Send("{ENTER}-oncam")

Sleep(100)

EndFunc

Func Offcam()

Send("{ENTER}-offcam")

Sleep(100)

EndFunc

; Finished!

Link to comment
Share on other sites

  • Developers

Total noob question:

I am trying to do a very simple task.

I want a script that will run in the background,

Type "{ENTER}-oncam" whenever I press SHIFT + a

Type "{ENTER}-offcam" whenever I press SHIFT + s

And as bonus, it would be nice to be able to pause the script whenever I press PAUSE, but not neccesary.

<{POST_SNAPBACK}>

Looks close to me... what isn't working ?

As far as the Pause question.. The helpfile is your friend, it contains this very example.... :idiot:

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

  • Developers

Hey thanks for the feedback.  I am begining to understand!

However, after I compiled the script, and ran it, opened Notepad.exe, and pressed

SHIFT + a

Nothing happened.  Did I do something wrong?

Attached is a copy of the .exe

<{POST_SNAPBACK}>

Easier when you post the script source ....

Think that Shift+a only works with the current unstable.

v 3.0.102 has this limit:

Single keys of a-z or A-Z. At least one Alt, Ctrl, or Win modifier is required with these keys.

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

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