Search found 106 matches

by Sam_
27 Jul 2019, 09:25
Forum: Offtopic
Topic: utilities/websites to test a PC's speed
Replies: 3
Views: 488

Re: utilities/websites to test a PC's speed

MATLAB's bench() function, with a few iterations.
by Sam_
19 Jul 2019, 13:27
Forum: Scripts and Functions
Topic: [CLASS] CtlColors - color your controls (2017-10-30)
Replies: 44
Views: 13832

Re: [CLASS] CtlColors - color your controls (2017-10-30)

I am trying to change the background color of some edit controls. This works great if the control's parent is the window, but it doesn't seem to work if their parent is another control on the window. FWIW, I can't get CColor to work either. I can create the edit controls as children of the window, c...
by Sam_
18 Jul 2019, 15:17
Forum: Ask For Help
Topic: adapting majkinetor's FormsFramework Panel for 64-bit
Replies: 2
Views: 222

Re: adapting majkinetor's FormsFramework Panel for 64-bit

assuming procAdr:=RegisterCallback("Panel_WndProc") gave u back a valid ptr to an existing function, check if ur WNDCLASSEX offsets are correct. id hardcode them procAdr:= RegisterCallback ("Panel_WndProc") returns a number and not an empty string, so so presumably it works. I tried following the f...
by Sam_
18 Jul 2019, 13:27
Forum: Ask For Help
Topic: adapting majkinetor's FormsFramework Panel for 64-bit
Replies: 2
Views: 222

adapting majkinetor's FormsFramework Panel for 64-bit

I'm trying to add 64-bit support to majkinetor's FormsFramework Panel , but I can't quite get it to work correctly. (If this has already been done by someone, please point me to it!) What I have so far is: Panel_registerClass() { static CS_PARENTDC:=0x80, CS_REDRAW:=3, COLOR_WINDOW:=5 clsName:="Pane...
by Sam_
17 Jul 2019, 13:46
Forum: Scripts and Functions
Topic: [Class] Toolbar - Create and modify (Updated 03/17/2016)
Replies: 54
Views: 15119

Re: [Class] Toolbar - Create and modify (Updated 03/17/2016)

BGM wrote:
17 Jul 2019, 11:51
@Sam Did you try my fix just above yours? I had come to the same conclusion about the error in StringToNumber. I would be interested to see if it works out for you.
I did try it, but it didn't help since I was trying to use strings, not numbers.
by Sam_
12 Jul 2019, 09:01
Forum: Scripts and Functions
Topic: [Class] Toolbar - Create and modify (Updated 03/17/2016)
Replies: 54
Views: 15119

Re: [Class] Toolbar - Create and modify (Updated 03/17/2016)

I have been running into some issues while trying to use this class to add a Toolbar to my GUI. I believe I have traced the issues to the StringToNumber() method returning the same number for different strings (the Command IDs are not unique thus the target labels get messed up). It looks like this ...
by Sam_
10 Jul 2019, 10:05
Forum: Ask For Help
Topic: Any MS Paint-like programs written in AHK?
Replies: 0
Views: 134

Any MS Paint-like programs written in AHK?

I am interested in any Microsoft Paint-like programs written in AHK. Has something like this ever been done? I know there are scattered functions and bits of code around the forums that do some relevant things with GDIPlus, but I don't know of anyone who has brought them together in a cohesive GUI i...
by Sam_
02 Jul 2019, 16:58
Forum: Ask For Help
Topic: spam shift
Replies: 1
Views: 289

Re: spam shift

I have learned how to do a couple of scripts but usually, I just copy paste how do I make a script to spam left shift. please and thank you. SpamLShift:=0 Return ^l:: SpamLShift:=1 While, SpamLShift Send, {LShift} Return Esc:: SpamLShift:=0 Return Use Ctrl+l to start spamming the left shift key and...
by Sam_
29 May 2019, 09:21
Forum: Wish List
Topic: A_Index0 Topic is solved
Replies: 15
Views: 1485

Re: A_Index0 Topic is solved

I have several large scripts that work with binary data structures (which are all 0-indexed). I store them as arrays for ease of manipulation, and to simplify things the arrays are also 0-indexed. This means that the first line of every loop in the script (and there are many) is Index:=A_Index-1 . I...
by Sam_
28 May 2019, 16:59
Forum: Tips and Tricks
Topic: Why you shouldn't use FileAppend to continuously write to the disk
Replies: 32
Views: 4416

Re: Why you shouldn't use FileAppend

What method do you use to deliberately crash the script? Ha! Slick -- I just figured it out. I thought CauseCrash() might be in a library or something. This is what came to mind: ;;; !!! Do not run this unless you want to crash the script !!! ;;; #Persistent SetTimer, CauseCrash, -1000 ; Will trigg...
by Sam_
28 May 2019, 09:44
Forum: Ask For Help
Topic: Program Not Running, wrong Syntax? Topic is solved
Replies: 5
Views: 368

Re: Program Not Running, wrong Syntax? Topic is solved

Can you also do a tiny explanation on why the asterisk needed to be changed? Third, depending on the context, I suppose the "*" I used might should be "\*" or "\*.*". I don't know that the change was necessary and the docs don't seem to go into that much detail on FilePattern. This suggestion was m...
by Sam_
24 May 2019, 13:12
Forum: Ask For Help
Topic: Program Not Running, wrong Syntax? Topic is solved
Replies: 5
Views: 368

Re: Program Not Running, wrong Syntax? Topic is solved

What jumps out at me right off the bat is that I doubt the following will do what you want msgbox, filecreatedir, I:\My Drive\Webcam\Webcam - Projects\%no%\%clipboard%\ [...] msgbox, filecopy, I:\My Drive\Webcam\Webcam - Template\New Webcam Project Template.xlsx, I:\My Drive\Webcam\Webcam - Projects...
by Sam_
22 May 2019, 16:09
Forum: Ask For Help
Topic: Remapping CTRL + h as backspace Topic is solved
Replies: 4
Views: 309

Re: Remapping CTRL + h as backspace Topic is solved

I have remapped Capslock as CTRL. I am also trying to use CTRL + h as backspace, i.e., deleting the first token left to the current cursor position: Capslock::Ctrl ^h:: send {BS} return Using the actual CTRL keys in combination with the h key does the job: If I hold the CTRL key and press the key, ...
by Sam_
22 May 2019, 15:02
Forum: Ask For Help
Topic: Making a key input rotate through four outputs
Replies: 4
Views: 251

Re: Making a key input rotate through four outputs

Thanks for this! Could we go one step further and make the first button press into a mouseclick before going to A then 1 then 2 and back to mouseclick? 1-2-3-4 were placeholders, sorry I should have been more specific More like this? WhatToSend:=["A",1,2] Idx:=0 Space:: If (Idx=0) { MouseClick ; ht...
by Sam_
22 May 2019, 14:32
Forum: Ask For Help
Topic: Making a key input rotate through four outputs
Replies: 4
Views: 251

Re: Making a key input rotate through four outputs

Code: Select all

Idx:=1
Space::
	Send,%Idx%
	Idx:=(Idx=4?1:Idx+1)
Return
or even shorter

Code: Select all

Idx:=0
Space::Send,% Idx:=(Idx=4?1:Idx+1)
both of which are just shorthand forms of

Code: Select all

Idx:=1
Space::
	Send,%Idx%
	If (Idx=4)
		Idx:=1
	Else
		Idx:=Idx+1
Return
by Sam_
22 May 2019, 14:22
Forum: Ask For Help
Topic: Inconsistent result when reading from CSV file
Replies: 10
Views: 659

Re: Inconsistent result when reading from CSV file

Hi all, I have a simple CSV file called Template.CSV (attached) with couple of columns and rows. I would like to read the content of it and SEND it through. I also want to replace the blank cells with TAB . Here is my code: !F12:: ;Alt + F12 ;SetKeyDelay, 400 #SingleInstance force SplitPath, A_Scri...
by Sam_
22 May 2019, 13:34
Forum: Ask For Help
Topic: Program Not Running, wrong Syntax? Topic is solved
Replies: 5
Views: 368

Re: Program Not Running, wrong Syntax? Topic is solved

ifexist % "I:\My Drive\Webcam\Webcam - Projects\" SubStr(userinput, 1, 4) "\" SubStr(userinput, 1, 15) "*", D [...] Run, % "I:\My Drive\Webcam\Webcam - Projects\" SubStr(userinput, 1, 4) "\" SubStr(userinput, 1, 15) "*", D What's that last , D supposed to do? Personally, I'd do it like this: Loop, ...
by Sam_
22 May 2019, 10:35
Forum: Ask For Help
Topic: Opening Multiple file windows to specific location
Replies: 4
Views: 282

Re: Opening Multiple file windows to specific location

You can open one, wait for notepad to be opened and then with win key + left arrow you can have it move to the left. Then open another one, wait for notepad, repeat same combo with right arrow. This would work for snapping them, but I want to specify an exact position and window size so that I can ...
by Sam_
21 May 2019, 17:23
Forum: Ask For Help
Topic: Please help
Replies: 1
Views: 194

Re: Please help

Hello, I recently got the new surface pen, and i want to remap the hotkeys. But it looks like it can't register any keystrokes, i tried the: #F20, #F19, #F18 but nothing seems to work... The code runs just fine if i try it on other keystrokes like F10. So does the new surface pen use other keystrok...
by Sam_
21 May 2019, 17:04
Forum: Ask For Help
Topic: Is it possible to make this kind of Gui
Replies: 4
Views: 300

Re: Is it possible to make this kind of Gui

Wouldn't it just be easier to Center align the text control?

Code: Select all

Gui Add, Text, x25 y107 Center c0xFFFFFF, 20
To specify more than one option, include a space between each (note the space after 27 and before y):

Code: Select all

GuiControl,Move,vol,% "x27 " "y" Var

Go to advanced search