Search found 69 matches
- 18 Apr 2014, 00:25
- Forum: Scripts and Functions (v1)
- Topic: Dynamic Hotstrings
- Replies: 46
- Views: 24024
Re: Dynamic Hotstrings
While looking more careful at the function (and appreciating it even more), I did notice some double keys defined in the breakkeys variable and also a small bug when using conditional hotstrings: When a trigger's condition isn't satisfied, the trigger gets reset too, preventing any extended trigger...
- 15 Apr 2014, 10:39
- Forum: Scripts and Functions (v1)
- Topic: Windows Explorer - Hotkey to Create a NewFolder
- Replies: 2
- Views: 2058
Re: Windows Explorer - Hotkey to Create a NewFolder
Seems so.jNizM wrote:The same like the Windows-Explorer Hotkey Ctrl + Shift + N ?
I never knew about that hotkey.
Ah well, this script can still be a good example on how to use the Shell.Application com object.
- 15 Apr 2014, 04:38
- Forum: Scripts and Functions (v1)
- Topic: Dynamic Hotstrings
- Replies: 46
- Views: 24024
Re: Dynamic Hotstrings
Both create hotkeys for every key monitored, which might interfere with other personal hotkeys unrelated to the script. The hotkeys that are used for monitoring are prefixed with ~ . ~ : When the hotkey fires, its key's native function will not be blocked (hidden from the system). So, I don't think...
- 15 Apr 2014, 03:40
- Forum: Scripts and Functions (v1)
- Topic: Windows Explorer - Hotkey to Create a NewFolder
- Replies: 2
- Views: 2058
Windows Explorer - Hotkey to Create a NewFolder
This script uses the Shell.Application com object to create a new folder and select it and go into rename mode. The same way windows explorer does it. There might be a small time lag between the creation and going into rename mode. Other than that, it works fine. Tested in Win 7 Ultimate X86 with AH...
- 11 Apr 2014, 03:57
- Forum: Scripts and Functions (v1)
- Topic: Dynamic Hotstrings
- Replies: 46
- Views: 24024
Re: Dynamic Hotstrings
I don't know about the limitations, but by default, this scripts treat the trigger as a string rather than a regex. You'd have to set the mode parameter to 3 if you wish to use regex. As for another difference, I never got this to work with titan's function: hotstrings(":\)", ":smiley_face:") It mos...
- 11 Apr 2014, 02:26
- Forum: Scripts and Functions (v1)
- Topic: Dynamic Hotstrings
- Replies: 46
- Views: 24024
Dynamic Hotstrings
#Include Hotstring.ahk Hotstring("i)((d|w)on)(t)", "$1'$3",3) ;DONT -> DON'T ;dont -> don't ;dOnt -> dOn't ;WONT -> WON'T ;and so on. Hotstring("i)colou?rs","$0 $0 everywhere!", 3) ; Regex, Case insensitive ; colors -> 'colors colors everywhere!' ; colours -> 'colours colours everywhere!' You can f...
- 27 Feb 2014, 11:38
- Forum: Ask for Help (v1)
- Topic: How to get the long name (fullpath) of the dropped folder?
- Replies: 3
- Views: 2523
Re: How to get the long name (fullpath) of the dropped folde
Regarding what nimda said, you can check this link out: http://ahkscript.org/docs/Scripts.htm#cmd This part specifically: If the parameters are file names, the following example can be used to convert them to their case-corrected long names (as stored in the file system), including complete/absolute...
- 26 Feb 2014, 23:07
- Forum: Ask for Help (v1)
- Topic: if any of these windows are active then ... do this
- Replies: 6
- Views: 2326
Re: if any of these windows are active then ... do this
Get the active class name, and try to find it in a list. #1:: WinGetClass, activeClass, A ;Gets the classname of the active window. ;~ MsgBox %activeClass% if activeClass in Notepad, CalcFrame MsgBox The active window is either Notepad or Calculator! return or you can also use the WinActive function...
- 24 Feb 2014, 15:05
- Forum: Ask for Help (v1)
- Topic: Exact string match
- Replies: 15
- Views: 20728
Re: Exact string match
like this?
Code: Select all
desiredName := "carbon"
if ("Radium" = desiredName){
Msgbox You desire Radium!
}
- 24 Feb 2014, 14:57
- Forum: Ask for Help (v1)
- Topic: Exact string match
- Replies: 15
- Views: 20728
Re: Exact string match
== is case sensitive. Example: MsgBox % "STRING" = "string" ; = is case insensitive so, yields 1. MsgBox % "STRING" == "string" ; == case sensitive so, yields 0 Instr has a caseSensitive option, so you can set it as how you see fit. The syntax is : InStr(Haystack, Needle [, CaseSensitive = false, S...
- 23 Feb 2014, 10:22
- Forum: Ask for Help (v1)
- Topic: Dynamic Hotstrings
- Replies: 2
- Views: 1769
Re: Dynamic Hotstrings
or you can use my one if you want : https://github.com/Menixator/ahk-repo/b ... string.ahk
- 22 Feb 2014, 10:37
- Forum: Ask for Help (v1)
- Topic: Best way avoiding error. Function definition after label.
- Replies: 3
- Views: 2608
Re: Best way avoiding error. Function definition after label
Code: Select all
goto, start
start:
De1()
return
De1()
{
;some code
}
- 22 Feb 2014, 00:14
- Forum: Ask for Help (v1)
- Topic: How to Get the download file size?
- Replies: 2
- Views: 1942
Re: How to Get the download file size?
Here is an example:
Code: Select all
oHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1")
oHttp.open("GET", "http://www.google.com",false)
oHttp.send()
MsgBox % oHttp.ResponseBody.MaxIndex()+1 ;+1 because it's zero based. The result will be in bytes.
- 19 Feb 2014, 13:20
- Forum: Other Programming Languages
- Topic: OT vba numpad equivalents
- Replies: 5
- Views: 5342
Re: OT vba numpad equivalents
I searched a LOT!
Sad to say, I couldn't find any leads.
Except you know? If you are always willing to use AHK COM object.
Sad to say, I couldn't find any leads.
Except you know? If you are always willing to use AHK COM object.
- 08 Feb 2014, 09:36
- Forum: Off-topic Discussion
- Topic: « What's on your mind? » Topic is solved
- Replies: 4901
- Views: 1426675
Re: « What's on your mind? » Topic is solved
Found a project called wikitten. Loving it!
Although real time markdown -> html conversion would've been a cool feature for it ._.
Although real time markdown -> html conversion would've been a cool feature for it ._.
- 08 Feb 2014, 09:03
- Forum: Scripts and Functions (v1)
- Topic: Common WMI tasks
- Replies: 8
- Views: 12756
Re: Common WMI tasks
LOLjNizM wrote:AHK - WMI - Snippets
...
- 28 Jan 2014, 13:56
- Forum: Ask for Help (v1)
- Topic: File's comments Topic is solved
- Replies: 15
- Views: 5819
Re: File's comments Topic is solved
ermm. you can open the properties window with run.
Then you can try to send a couple of Control+Tabs to navigate to the right tab.And again, Tab to navigate to the right field.
Code: Select all
Run, properties "D:\RSS.ahk"
Sleep, 1000
- 25 Jan 2014, 09:40
- Forum: Wish List
- Topic: Add COM Object Reference Page to the wiki.
- Replies: 8
- Views: 3924
- 25 Jan 2014, 00:43
- Forum: Other Utilities & Resources
- Topic: Atom feed urls for http://ahkscript.org
- Replies: 5
- Views: 3892
Re: Atom feed urls for http://ahkscript.org
Very useful! Thanks for sharing this with us SKAN!
- 24 Jan 2014, 10:40
- Forum: Wish List
- Topic: Add COM Object Reference Page to the wiki.
- Replies: 8
- Views: 3924
Add COM Object Reference Page to the wiki.
Although the wiki may be in it's young stages, it would be quite helpful if there was a COM object reference page, much like the thread that jethrow managed. I tried to create a page myself, but it turns out I don't have the permission to create one myself. So, I was hoping that someone, that is som...