Sign in to follow this  
Followers 0
litlmike

SIMPLE question

4 posts in this topic

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!

Share this post


Link to post
Share on other sites



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:


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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