Search found 1082 matches

by Capn Odin
Today, 05:07
Forum: Ask For Help
Topic: [Help] [Gdip] How to add Caption to a Picture ?
Replies: 6
Views: 100

Re: [Help] [Gdip] How to add Caption to a Picture ?

You will have to manually brake the line using `n
by Capn Odin
Yesterday, 18:06
Forum: Ask For Help
Topic: Using WinActivate and a Global Variable (Trying Global Messagelist?)
Replies: 4
Views: 59

Re: Using WinActivate and a Global Variable (Trying Global Messagelist?)

Sorry I forgot it wasn't a function. CoordMode, Mouse, Screen index := 1 WheelDown::Activate(index -= 1) WheelUp::Activate(index += 1) Activate(ByRef index) { Static MessageList := [[1, 2], [3, 4], [5, 6], [7, 8]] index := index > MessageList.Length() ? 1 : (index < 1 ? MessageList.Length() : index)...
by Capn Odin
Yesterday, 15:31
Forum: Ask For Help
Topic: Using WinActivate and a Global Variable (Trying Global Messagelist?)
Replies: 4
Views: 59

Re: Using WinActivate and a Global Variable (Trying Global Messagelist?)

Like this ? CoordMode, Mouse, Screen index := 1 WheelDown::Activate(index -= 1) WheelUp::Activate(index += 1) Activate(ByRef index) { Static MessageList := [[1, 2], [3, 4], [5, 6], [7, 8]] index := index > MessageList.Length() ? 1 : (index < 1 ? MessageList.Length() : index) for i, v in MessageList[...
by Capn Odin
Yesterday, 13:03
Forum: Ask For Help
Topic: [Help] [Gdip] How to add Caption to a Picture ?
Replies: 6
Views: 100

Re: [Help] [Gdip] How to add Caption to a Picture ?

if(!pToken := Gdip_Startup()) { MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system ExitApp } Gdip_SaveBitmapToFile(Caption("Image Caption : I'm Firefox", "fox.jpg"), "img1.png") Gdip_SaveBitmapToFile(Caption("Image C...
by Capn Odin
18 Jun 2017, 06:24
Forum: Ask For Help
Topic: Phonebook Regex loop extraction
Replies: 5
Views: 92

Re: Phonebook Regex loop extraction

You store the last found position in pos. You then pass RegExMatch pos+1 as the fourth parameter, to ensure that the last found match won't be found again.

Code: [Select all]GeSHi © Codebox Plus

While(pos := RegExMatch(Haystack, NeedleRegEx, UnquotedOutputVar, pos + 1)) {

}
by Capn Odin
17 Jun 2017, 16:20
Forum: Ask For Help
Topic: Treeview population issues
Replies: 2
Views: 53

Re: Treeview population issues

The issue is likely that the buttons start a new "thread" witch interrupts the previous "thread" try adding Critical to the top of your label.
by Capn Odin
17 Jun 2017, 15:28
Forum: Ask For Help
Topic: HELP ME
Replies: 1
Views: 24

Re: HELP ME

Code: [Select all]GeSHi © Codebox Plus

MButton::Send, ^{Space}
$j::Send, ^j
by Capn Odin
17 Jun 2017, 15:24
Forum: Ask For Help
Topic: Can you transfer a variable from 1 process to another using a pointer? Topic is solved
Replies: 5
Views: 90

Re: Can you transfer a variable from 1 process to another using a pointer? Topic is solved

You need to call OpenProcess here is an example. VarSetCapacity(variable, 10) pointer := &variable StrPut("Hej", pointer+0) Process, Exist RunWait, % A_AHKPath " ""pointer 2.ahk"" " pointer " " ErrorLevel MsgBox, % pointer "`n" StrGet(p...
by Capn Odin
17 Jun 2017, 04:41
Forum: Ask For Help
Topic: How to stack columns from an n-dimensional data array?
Replies: 9
Views: 199

Re: How to stack columns from an n-dimensional data array?

I tried to make something concise, but it ended op obtuse. :? Clipboard = ( a d g b e h c f i ) MsgBox, % ToString(Split(Clipboard)) Split(Str) { obj := Object() for i, row in StrSplit(Str, "`n") { for j, val in StrSplit(row, "`t") { if(!obj[j]) { obj[j] := Object() } obj[j].Push...
by Capn Odin
16 Jun 2017, 14:51
Forum: Ask For Help
Topic: Delete all on line AFTER specified text is found
Replies: 3
Views: 43

Re: Delete all on line AFTER specified text is found

Can you explain how my script fails in this case or provide some test data where it fails ?
by Capn Odin
16 Jun 2017, 14:45
Forum: Ask For Help
Topic: GuiClose odd behaviour 1GuiClose vs AnyThingElseGuiClose ? Topic is solved
Replies: 2
Views: 34

Re: GuiClose odd behaviour 1GuiClose vs AnyThingElseGuiClose ? Topic is solved

As seen here Labels, the default name is 1, so for a GUI named 1 the appropriate GuiClose is still the default one without any prefix.
by Capn Odin
16 Jun 2017, 14:26
Forum: Ask For Help
Topic: Delete all on line AFTER specified text is found
Replies: 3
Views: 43

Re: Delete all on line AFTER specified text is found

var := "Billings, MT;93;62;80;53;Not as warm;NNE;10;44%;20%;8`nBirmingham, AL;80;70;81;69;Thunderstorms;SSW;6;81%;90%;4`nBismarck, ND;92;57;92;63;Mostly sunny;SE;12;46%;36%;8`nBoise, ID;85;51;77;49;Mostly sunny, nice;N;8;36%;0%;8" MsgBox, % RegExReplace(var, "(\w+, \w+\;(\d+\;){4})[^...
by Capn Odin
16 Jun 2017, 14:15
Forum: Ask For Help
Topic: Remapped ScrollLock, now LED doesn't work
Replies: 3
Views: 34

Re: Remapped ScrollLock, now LED doesn't work

Since ScrollLock isn't really used you can just let it fire by using the modifier ~

Code: [Select all]GeSHi © Codebox Plus

~ScrollLock::
by Capn Odin
12 Jun 2017, 14:39
Forum: Ask For Help
Topic: Looking for already-created GUI script to display links to frequently-used Apps, Files, & Folders
Replies: 2
Views: 48

Re: Looking for already-created GUI script to display links to frequently-used Apps, Files, & Folders

Well I have this script I made for someone else. SetTitleMatchMode, 2 Paths := Object() NumOfButtons := 0 BackgroundColor := "FF0000" ;Gui, Destroy ; If Gui Destroy is not used, all GUI windows are automatically destroyed when the script exits. . Gui, +AlwaysOnTop +ToolWindow -SysMenu -Cap...
by Capn Odin
12 Jun 2017, 11:05
Forum: Ask For Help
Topic: Loop not working Topic is solved
Replies: 13
Views: 84

Re: Loop not working Topic is solved

This

Code: [Select all]GeSHi © Codebox Plus

(!A_CaretX) not (InStr(GFVar, "Edit")
should be

Code: [Select all]GeSHi © Codebox Plus

(!A_CaretX) and/or not (InStr(GFVar, "Edit")
by Capn Odin
12 Jun 2017, 10:54
Forum: Ask For Help
Topic: Loop not working Topic is solved
Replies: 13
Views: 84

Re: Loop not working Topic is solved

raphaelcatossi wrote:I understand. Sorry for the foolish example. I actually want to integrate with this but I don't know what's next, is the NOT thing at the end not working?

You need an and or an or prior to the not.
by Capn Odin
12 Jun 2017, 10:42
Forum: Ask For Help
Topic: Loop not working Topic is solved
Replies: 13
Views: 84

Re: Loop not working Topic is solved

Code: [Select all]GeSHi © Codebox Plus

Loop {
ControlGetFocus, GFVar, A
if(InStr(GFVar, "Edit")) {
Tooltip, Edit
} else {
Tooltip, % GFVar
}
Sleep 100
}
by Capn Odin
09 Jun 2017, 12:37
Forum: Scripts and Functions
Topic: Laughing Man
Replies: 4
Views: 608

Re: Laughing Man

Nice example. There is less cpu and memory usage compared to the the gif. I wonder, how much space would it take to store all bitmaps, and then loop through them, you know, after one turn you are redoing the same work all over again. Cheers. http://i.imgur.com/Vov6Le8.png #SingleInstance, Force #No...
by Capn Odin
09 Jun 2017, 06:02
Forum: Ask For Help
Topic: Record microphone
Replies: 2
Views: 76

Re: Record microphone

Try reading this Recording Audio Seven Ways in AHK (6 ways even work). I haven't tried them myself but they seem promising.
by Capn Odin
09 Jun 2017, 04:59
Forum: Ask For Help
Topic: Determine the difference between a number in a string and a number? Topic is solved
Replies: 8
Views: 179

Re: Determine the difference between a number in a string and a number? Topic is solved

While within AHK a variable instantiated with "97" is identiacl to one instantiated with 97. I don't believe it is possible to determine how a variable was instantiated, however it may be possible to determine if the last assignment was related to strings or numbers, by using a method of a...

Go to advanced search