ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Coding Snacks

Seeking autohotkey code to make input stop

(1/2) > >>

cmori:
I use an old simple version of Autohotkey and wish someone can provide code to make this come to a stop.  Currently, it runs on, adding other stuff after, like typing "admin" from a later hotkey (shown below). Just want #j to stop at end of line.

I have this hotkey -
#j::
Sendraw http://jpegbay.com

and have tried this -
"Send, http://jpegbay.com

 - yet it will not come to a stop.


How I use it: I put cursor in browser box, hit hotkey #j [meaning Winkey j] yet it fails. It will not stop right after .com.  Instead it continues to play another hotkey after it.

In case it helps to know, I have these hotkeys before and after #j 


#i::Send, z ;HOLD for later use.

#j::
Sendraw http://jpegbay.com
;Sleep, 100
;Send {enter}

#k::
Send, admin{tab} ; for FOSCAM page
Send, {enter}
Sleep 3000
Send, {tab} ;type


skwire:
If your hotkey is longer than one line, you must add a "Return" in order to keep it from running on.  To fix your example:


--- Code: Autohotkey ---#i::Send, z ;HOLD for later use. ; One line hotkey -- doesn't need a "Return" #j::Sendraw http://jpegbay.com;Sleep, 100;Send {enter}Return #k::Send, admin{tab} ; for FOSCAM pageSend, {enter}Sleep 3000Send, {tab} ;typeReturn

cmori:
Just put in a Return.  And it works! 

Amazing how simple, yet escaped me completely.

You the best!

...

Not expecting an answer for this, however, if you have one or can point me, may I ask:
Do you have a sw that will let me lock files within a folder? 

In case I did not phrase question right, take my example:
I have a folder called Fin for finance docs.  I want to keep pals doing stuff on my computer from accessing my personal financial records that I have scanned into this folder for quick access instead of rifling through stacks of paper.  I know this folder opened because it now shows a date with year 2014 and I never looked in this year.  I want that folder locked somehow, not sure how, maybe pass, maybe hidden, whatever works.  Of course I have to get in when I want without knowing a lot of code.  Just looking for easy and simple solution if one here.  I will certainly make a donation for it.  Already looked online and found some, yet seem overly complex for me.

tomos:
^ no-one else uses my main computer, so I'm not 100% sure, but would it not simply be a case of make them use a different account, and block access for other users to relevant folders (?)

cmori:
Terrific idea and could do that, except I would have to log out or turn computer off, and right now no password needed to use computer.  So I'd have to set passwords for each guy, and they would have to remember it.  While a good idea, this method already has issues built in - they will not recall their pass.  I don't mind if they access anything else on computer and play games I paid for (messing up my scores), however I do mind them rummaging through my financial records.  So I need something that will make that folder invisible or hidden, like some windows files, or have it request a simple one step password from me.

Navigation

[0] Message Index

[#] Next page

Go to full version