| Author |
Message |
Forum: Support Topic: Unnatural Characters to file. |
| Lafncow |
|
Posted: March 16th, 2010, 12:48 am
|
|
Replies: 6 Views: 1460
|
Use AutoHotkey_L (now merged with AutoHotKeyU)...it can do it!
just add this to your script:
Code: FileEncoding, UTF-8 |
|
 |
Forum: Scripts Topic: Program Launching/Instance Tracking Function |
| Lafncow |
|
Posted: November 11th, 2009, 6:12 pm
|
|
Replies: 0 Views: 474
|
| This function runs a command & keeps track of the resulting window. I use it for my hotkeys to launch programs, a second swipe of the hotkey returns focus to the already open instance of the program or closes it if it's already focused. It can take extra parameters in a string to make the new wi... |
|
 |
Forum: Support Topic: Complete Newb, Totally Lost |
| Lafncow |
|
Posted: October 30th, 2009, 9:56 pm
|
|
Replies: 13 Views: 555
|
| ...and one more line after the line with the send command: return so that it ends after you trigger it. I think you should also add #persistent at the start of the script. ...and then read the manual! :D edit: as jethrow pointed these 2 lines arent needed since "#persistent" is implied whe... |
|
 |
Forum: Support Topic: Macro help |
| Lafncow |
|
Posted: October 30th, 2009, 1:30 am
|
|
Replies: 1 Views: 276
|
| This'll do it (tested): #Persistent F5:: DoF6() return DoF6() { ;declare local variable for function static isOn := 0 ;the real work if isOn = 1 { SetTimer, KeyPresser, Off isOn = 0 } else { SetTimer, KeyPresser, 5500 isOn = 1 } } KeyPresser: Send, {... |
|
 |
Forum: Offtopic Topic: this forum is garbage |
| Lafncow |
|
Posted: October 29th, 2009, 10:24 pm
|
|
Replies: 54 Views: 3021
|
| so in the space of 2 days: you double posted your problem titled one of them simply "macro" (which could nearly describe anything) didnt explain your problem well didnt spend the time to learn the basics first got pissy that people pointing you in the right direction hadnt bent over and do... |
|
 |
Forum: Support Topic: Watch Folder for new images, then resize automatically |
| Lafncow |
|
Posted: October 28th, 2009, 12:49 am
|
|
Replies: 11 Views: 2621
|
| I dont know the answer off the top of my head but am also interested. I could be wrong, but it doesnt look like irfanview will let you resize your thumbnail via command line. This looks like a simple alternative here , using ImageMagick following this template: convert -resize 200 image.png "th... |
|
 |
Forum: Support Topic: Random copy |
| Lafncow |
|
Posted: October 27th, 2009, 5:49 pm
|
|
Replies: 1 Views: 233
|
| Well you could do it this way: //set variables Color1 := "blue.gif" Color2 := "black.gif" Color3 := "red.gif" Random, Pick, 1, 3 //resolve the "Pick" number to a color file Pick := Color%Pick% //copy with "1" flag for overwrite mode FileCopy, %Pick%,... |
|
 |
Forum: Support Topic: help with a script: check website for keyword |
| Lafncow |
|
Posted: October 27th, 2009, 5:59 am
|
|
Replies: 13 Views: 992
|
hey, d-man, you should be appreciative to those who take the time to help you. (for reference)
anyway, if you add
Code: webpage := RegExReplace(webpage,"<.+?>","")
right after your FileRead line, it will remove the HTML so you are only searching the text. |
|
 |
Forum: Support Topic: help with a script: check website for keyword |
| Lafncow |
|
Posted: October 27th, 2009, 2:51 am
|
|
Replies: 13 Views: 992
|
|
 |
Forum: Support Topic: One click to toggle alwasy on top, priority, alplha blending |
| Lafncow |
|
Posted: October 27th, 2009, 1:10 am
|
|
Replies: 4 Views: 456
|
| I know nothing about the mouse aspect of it, but... Here's a hotkey I use to set/reset transparency & on-top-ness in one go: ^#t:: WinGet, active_id, ID, A WinGet, TransID, Transparent, ahk_id %active_id% If (TransID = 200) { WinSet, AlwaysOnTop, Off, ahk_id %active_id% WinSet, Tran... |
|
 |
Forum: Support Topic: How to change Priority to "AboveNormal"? |
| Lafncow |
|
Posted: October 27th, 2009, 1:03 am
|
|
Replies: 3 Views: 1240
|
sorry about that, I mixed up my syntax. this for example will launch the calculator at abovenormal:
Code: Run, cmd.exe /c start /abovenormal CALC.EXE |
|
 |
Forum: Support Topic: Storing flags using bit operations |
| Lafncow |
|
Posted: October 27th, 2009, 12:47 am
|
|
Replies: 6 Views: 484
|
| ok, proof of concept time! I adapted the above to take any number of flags, break them up into appropriately sized integers (32bit specified below) and then walk through the integers decoding again. I'll probably want to change this so that the decoding goes in order instead of reverse of the encodi... |
|
 |
Forum: Support Topic: How to change Priority to "AboveNormal"? |
| Lafncow |
|
Posted: October 27th, 2009, 12:18 am
|
|
Replies: 3 Views: 1240
|
| you can dynamically set priority at launch time by doing run start /abovenormal "path to your program" OR to make that program launch on above normal every time simply make a shortcut with the target C:\Windows\System32\cmd.exe /c start /abovenormal "path to/hotkey.exe" OR once y... |
|
 |
Forum: Support Topic: trouble running script |
| Lafncow |
|
Posted: October 26th, 2009, 10:31 pm
|
|
Replies: 2 Views: 224
|
hmm, maybe just simplify it by finding the exact URL of voting request. Not positive this would work, but:
1) URLDownloadToFile, request, foo
2) delete files in cookie folder
3) repeat
...or just quit being such a cheater |
|
 |
Forum: Support Topic: help with a script: check website for keyword |
| Lafncow |
|
Posted: October 26th, 2009, 9:43 pm
|
|
Replies: 13 Views: 992
|
| ...OR, to lighten the load you could first do a regex to remove all markup, something like the example in the documentation: <.+?> and then do your keyword search. this should have a lot less overhead than the xpath solution, but on 2nd thought, they still leave you vulnerable to false positives on ... |
|
 |
| Sort by: |