Search found 112 matches
- 26 May 2016, 11:07
- Forum: Ask for Help (v1)
- Topic: Breaking a Settimmer
- Replies: 6
- Views: 1426
Re: Breaking a Settimmer
You could then divide the cycle: foobar := false While ( condition ) { ;do something if ( foobar ) break ;do something if ( foobar ) break ;do something if ( foobar ) break ;do something if ( foobar ) break } If you call some functions which take a lot of time (or you want to interrupt them immediat...
- 26 May 2016, 08:55
- Forum: Ask for Help (v1)
- Topic: Breaking a Settimmer
- Replies: 6
- Views: 1426
Re: Breaking a Settimmer
if you want to be able to break a loop from outside, you can use a variable:
Code: Select all
foobar := true
While ( (condition) and foobar ) {
;do something
}
#s::
foobar := false
return
- 26 May 2016, 08:43
- Forum: Ask for Help (v1)
- Topic: INPUTBOX MULTIPLE LINES?
- Replies: 1
- Views: 666
Re: INPUTBOX MULTIPLE LINES?
You insert a new line by `n
Code: Select all
inputbox, fob, FOB CODE, Enter FOB CODE`n13000-1 Location 1`n13000-2 Location 2`n13000-3 Location 3, 320,240
- 26 May 2016, 08:40
- Forum: Ask for Help (v1)
- Topic: a noob question
- Replies: 4
- Views: 1185
Re: a noob question
Shift is represented by a +, so this will work as well:
Code: Select all
*Numpad1::
Send, {enter}
Send, +\
Send, {enter}
Return
- 26 May 2016, 07:06
- Forum: Ask for Help (v1)
- Topic: Combine Multi Key to 1 key
- Replies: 4
- Views: 1461
Re: Combine Multi Key to 1 key
Oh yes, this is better, I forgot about $rootmos wrote:This is working for me:Code: Select all
$3:: SendInput {3} SendInput {4} SendInput {5} Return
- 26 May 2016, 06:29
- Forum: Ask for Help (v1)
- Topic: Combine Multi Key to 1 key
- Replies: 4
- Views: 1461
Re: Combine Multi Key to 1 key
Give us some example of what should happen on what keypresses.
In your example, whenever you press 3 the script will send 345 except it will capture its own 3 and replace it again into 345 and so on recursively.
Try this:
In your example, whenever you press 3 the script will send 345 except it will capture its own 3 and replace it again into 345 and so on recursively.
Try this:
Code: Select all
3::
Suspend, On
Send {3}
Suspend, Off
Send {4}
Send {5}
return
- 26 May 2016, 05:55
- Forum: Ask for Help (v1)
- Topic: Variable security inside a running script
- Replies: 8
- Views: 3150
Re: Variable security inside a running script
The password in question is never sent as text, never pasted, never written to disk and appears no-where in your code (only the variable name is in the code). What I meant was when you run the program, the program asks you for your password and stores that in a variable (not saved in an ini or any ...
- 26 May 2016, 04:32
- Forum: Ask for Help (v1)
- Topic: Using InStr to find start of string that spans multiple lines
- Replies: 4
- Views: 1901
Re: Using InStr to find start of string that spans multiple lines
First debug: filecode = ( not important thisline - end not important ) max := strLen( filecode ) out := "code: 'character'" Loop, % max { out .= "`n" char := SubStr( filecode, A_Index, 1 ) out.= Asc( char ) . ": '" . char . "'" } MsgBox, % out Now you can see how the filecode is parsed. If still in ...
- 26 May 2016, 03:56
- Forum: Ask for Help (v1)
- Topic: Variable security inside a running script
- Replies: 8
- Views: 3150
Re: Variable security inside a running script
I suspect that there may be some software that can do this but is it something that one should be concerned about? I don't think so. You can encrypt the password in memory, but you only make it harder to acquire the password (and only a little harder), unless you encrypt it with another password, w...
- 26 May 2016, 03:38
- Forum: Ask for Help (v1)
- Topic: Background Window Typing Topic is solved
- Replies: 19
- Views: 8896
Re: Background Window Typing Topic is solved
Yes, but I basically added all keys there, maybe there's one or two missing (and all Fx keys). There are also other options like Input , but I had this code ready to share. Is there a way to toggle these hotkeys without exit, reload o suspend the script? Yea, sure, instead of suspending the script ...
- 25 May 2016, 14:48
- Forum: Ask for Help (v1)
- Topic: Send, x doesn't call ~x hotkey, nor does ALT+120
- Replies: 6
- Views: 1308
Re: Send, x doesn't call ~x hotkey, nor does ALT+120
Thanks for your great assistance, evilC! It makes me glad that not only I miss(understand) some stuff from docs. The reason why I want this functionality is because I want to catch text typed by other scripts as well, so goto doesn't work. So I'll either use the method in my previous post or Input, ...
- 25 May 2016, 13:04
- Forum: Ask for Help (v1)
- Topic: Background Window Typing Topic is solved
- Replies: 19
- Views: 8896
Re: Background Window Typing Topic is solved
How about this? Thank you, brackets and other stuff work with this method, but it's limited by array items. I will see which version would fit better. Yes, but I basically added all keys there, maybe there's one or two missing (and all Fx keys). There are also other options like Input , but I had t...
- 25 May 2016, 10:55
- Forum: Ask for Help (v1)
- Topic: Switching every 30 second between two hotkeys
- Replies: 9
- Views: 2101
Re: Switching every 30 second between two hotkeys
Some people are not programmers and don't want to learn but still use AHK - I think Sven's answer is perfectly fine, but if someone actually steps up and provides teh codez, then I wouldn't criticize him for that. And like Blackholyman says, by helping others you can learn yourself - I just helped a...
- 25 May 2016, 10:29
- Forum: Ask for Help (v1)
- Topic: Background Window Typing Topic is solved
- Replies: 19
- Views: 8896
Re: Background Window Typing Topic is solved
How about this? #NoEnv NORMAL_KEYS := "abcdefghijklmnopqrstuvwxyz`1234567890-=[];'\,./" NAMED_KEYS := ["Space", "NumpadAdd", "NumpadSub", "NumpadMult", "NumpadDiv", "NumpadDot", "Numpad0", "Numpad1", "Numpad2", "Numpad3", "Numpad4", "Numpad5", "Numpad6", "Numpad7", "Numpad8", "Numpad9", "Esc", "Ente...
- 25 May 2016, 08:06
- Forum: Ask for Help (v1)
- Topic: Send, x doesn't call ~x hotkey, nor does ALT+120
- Replies: 6
- Views: 1308
Re: Send, x doesn't call ~x hotkey, nor does ALT+120
This, however, will work:
Code: Select all
flag := false
F12::
Send x ;the tooltip will appear
return
x::
Tooltip, x pressed, 0,0,1
Suspend, On
Send x
Suspend, Off
Sleep, 500
Tooltip,,,,1
return
- 25 May 2016, 07:25
- Forum: Ask for Help (v1)
- Topic: Send, x doesn't call ~x hotkey, nor does ALT+120
- Replies: 6
- Views: 1308
Re: Send, x doesn't call ~x hotkey, nor does ALT+120
So adding ~ or the same hotkey again with up will cause the first one to behave as $ ? I thought this F12:: Send x ;no tooltip will appear return ~x:: Tooltip, x pressed, 0,0,1 Sleep, 500 Tooltip,,,,1 return can be solved by a flag, but I failed: flag := false F12:: Send x ;no tooltip will appear re...
- 25 May 2016, 05:16
- Forum: Ask for Help (v1)
- Topic: Send, x doesn't call ~x hotkey, nor does ALT+120
- Replies: 6
- Views: 1308
Send, x doesn't call ~x hotkey, nor does ALT+120
I've made a script called intrusiveCALC and got into the following problem: As I have a spanish keyboard I don't have a direct key for the elevation symbol ^ and if I type ALT+94 does not work doing that [...] 1. It seems that if you register a hotkey with a tilde ~ (to not cancel out the default be...
- 25 May 2016, 05:08
- Forum: Scripts and Functions (v1)
- Topic: intrusiveCALC
- Replies: 7
- Views: 3126
Re: intrusiveCALC
Nice script, I'm gonna use it As I have a spanish keyboard I don't have a direct key for the elevation symbol ^ and if I type ALT+94 does not work doing that Input methods are my concern for a while now, as I haven't really investigated this script's compatibility with other scripts. I see two prob...
- 24 May 2016, 03:53
- Forum: Scripts and Functions (v1)
- Topic: intrusiveCALC
- Replies: 7
- Views: 3126
Re: intrusiveCALC
Do you enjoy it, Guest888? Thank you for finding out the bug, I took for granted that the icon is inserted in compile file, but apparently I misunderstood the docs on that matter. I already fixed the bug. You can download the updated executable, which will work as a single file now, so you can put i...
- 23 May 2016, 15:13
- Forum: Scripts and Functions (v1)
- Topic: intrusiveCALC
- Replies: 7
- Views: 3126
Re: intrusiveCALC
Thanks Guest3456 for your opinion! I hope there will be more people interested. Guest888, what AHK version are You using? Have you tried to download all the files? Because this is not a single file script, you need at least intrusiveCalc.ahk and Calc.ahk + icon.ico for the tray icon. Alternatively y...