Search found 1232 matches

by Capn Odin
Yesterday, 19:06
Forum: Ask For Help
Topic: Location of table describing multiple equal-sign operators
Replies: 4
Views: 52

Re: Location of table describing multiple equal-sign operators

-= subtract something from a variable.

Code: [Select all]GeSHi © Codebox Plus

var := 10
var -= 5
MsgBox, % var

Is the table not the one on the page in the docs ?
by Capn Odin
17 Nov 2017, 19:31
Forum: Ask For Help
Topic: Sound detection
Replies: 7
Views: 114

Re: Sound detection

It is possible but I only know how to get the volume. #SingleInstance force DetectHiddenWindows On BackgroundColor := "C6D43C" Gui, 1:New, +AlwaysOnTop +ToolWindow -Caption +LastFound +0x800000 +E0x00000020, Volumn Gui, Margin, 0, 0 Gui, Color, %BackgroundColor% ;Gui, Add, Progress, w20 h3...
by Capn Odin
17 Nov 2017, 19:16
Forum: Ask For Help
Topic: How to genuinely compile a script? Is there any "loop" faster alternative?
Replies: 12
Views: 279

Re: How to genuinely compile a script? Is there any "loop" faster alternative?

You definitely can compile AHK since the script is being turned into instructions that are run on the cpu, if you store the instructions you would have a compiled AHK script. However this will only work for a script that terminates. But I would suggest using another language for applications where t...
by Capn Odin
17 Nov 2017, 15:58
Forum: Ask For Help
Topic: Use Alt as a trigger key
Replies: 1
Views: 21

Re: Use Alt as a trigger key

Change c:: to LAlt::

Edit: and GetKeyState("c", "P") to GetKeyState("LAlt", "P")
by Capn Odin
17 Nov 2017, 06:58
Forum: Offtopic
Topic: AHKathon! [AHK Hackathon] 12/17
Replies: 21
Views: 1529

Re: AHKathon! [AHK Hackathon] 12/17

I have a big assignment due the 6th, so I won't be able to attend, not that this is much of a problem as I am the least creative person in the community.
by Capn Odin
16 Nov 2017, 16:55
Forum: About This Community
Topic: Rule Poll
Replies: 24
Views: 554

Re: Rule Poll

⋅  Require Open Source : ⋅ I agree that we should be open-source, but I think some things make more sense to share closed, such as DLLs and machine code used in a script or provided for convenience. e.g. fast image search, wrappers made in other languages that expose functionali...
by Capn Odin
26 Oct 2017, 13:54
Forum: Scripts and Functions
Topic: create circular image cut out
Replies: 12
Views: 526

Re: create circular image cut out

Windows 10 Pro 64 bit
by Capn Odin
26 Oct 2017, 12:58
Forum: Scripts and Functions
Topic: create circular image cut out
Replies: 12
Views: 526

Re: create circular image cut out

ramonstart wrote:It did not work here :cry:

I also ran AutoHotkeyU32 and nothing :problem:

All I can tell you is that this code snippet makes it work on my system. If I don't use it the image is never saved.
by Capn Odin
26 Oct 2017, 12:06
Forum: Scripts and Functions
Topic: create circular image cut out
Replies: 12
Views: 526

Re: create circular image cut out

This is looking great. Where is the avatar saved? I can not find I think that it only works with ahk 32, try adding this at the top of the script. if(A_PtrSize != 4) { SplitPath, % A_AHKPath, , folder Run, % folder "\AutoHotkeyU32.exe " """" A_ScriptFullPath ""...
by Capn Odin
09 Oct 2017, 03:45
Forum: Ask For Help
Topic: need help with doing math using variables Topic is solved
Replies: 3
Views: 83

Re: need help with doing math using variables Topic is solved

You don't use % to retrieve the value of a variable in an expression, basically remove the % in the middle line.
by Capn Odin
25 Sep 2017, 14:33
Forum: Ask For Help
Topic: Simple Script is Way Too Complicated
Replies: 3
Views: 115

Re: Simple Script is Way Too Complicated

It is probably shift to capitalise the f.
by Capn Odin
25 Sep 2017, 08:12
Forum: Ask For Help
Topic: Capture a longer hotstring before a shorter one ?
Replies: 10
Views: 252

Re: Capture a longer hotstring before a shorter one ?

the president in the white house in the night
the white snow in the night

This was written using the above code.

white house + Tab + in the night

white + Tab + in the night
by Capn Odin
25 Sep 2017, 06:15
Forum: Ask For Help
Topic: Capture a longer hotstring before a shorter one ?
Replies: 10
Views: 252

Re: Capture a longer hotstring before a shorter one ?

Code: [Select all]GeSHi © Codebox Plus

#Hotstring EndChars-()[]{}:;'"/\,.?!`n `t
::white house::the president in the white house
::white::the white snow
by Capn Odin
25 Sep 2017, 05:19
Forum: Ask For Help
Topic: Script: auto create folder with file name ...
Replies: 9
Views: 184

Re: Script: auto create folder with file name ...

Try

Code: [Select all]GeSHi © Codebox Plus

FileMove, % ClipBoard, C:\Users\Farmacia San Paolo\Documents\AHK\Prova\
by Capn Odin
25 Sep 2017, 04:23
Forum: Ask For Help
Topic: Capture a longer hotstring before a shorter one ?
Replies: 10
Views: 252

Re: Capture a longer hotstring before a shorter one ?

The problem is that Space is a Ending Character meaning that by hitting space you are telling the script that a hotstring may have ended. Try removing the Space from the end chars. (I have already removed it) #Hotstring EndChars-()[]{}:;'"/\,.?!`n `t You can execute the hotstring by typing any ...
by Capn Odin
25 Sep 2017, 03:37
Forum: Ask For Help
Topic: Capture a longer hotstring before a shorter one ?
Replies: 10
Views: 252

Re: Capture a longer hotstring before a shorter one ?

The syntax is correct, but it sets the "thread's" priority, which determines which other threads can interrupt it.

Edit: It may be more accurate to say, it determines which threads it can interrupt.
by Capn Odin
20 Sep 2017, 04:13
Forum: Ask For Help
Topic: Trying to get ctrl+m to work and other things..
Replies: 7
Views: 137

Re: Trying to get ctrl+m to work and other things..

It does terminate regardless of F10

Edit: when you press ^F10 it starts sending ^m every 1/10 of a second. The script always check every second whether or not the program exists.
by Capn Odin
20 Sep 2017, 04:08
Forum: Ask For Help
Topic: %A_ThisMenuItem% needs to be fixed?
Replies: 9
Views: 158

Re: %A_ThisMenuItem% needs to be fixed?

Think of it this way, if you want to change something regarding a sub-menu you will use. Menu, MyMenu, Add, &AHK, MenuHandler return MenuHandler: Menu, MyMenu, Add, % A_ThisMenuItem, NewMenuHandler return NewMenuHandler: ExitApp return RButton::Menu, MyMenu, Show Witch only works because the &am...
by Capn Odin
20 Sep 2017, 03:01
Forum: Ask For Help
Topic: Trying to get ctrl+m to work and other things..
Replies: 7
Views: 137

Re: Trying to get ctrl+m to work and other things..

I still don't quite understand, but maybe this is the behaviour you want ?

Code: [Select all] [Expand]GeSHi © Codebox Plus


Go to advanced search