Search found 823 matches

by Hellbent
24 Nov 2019, 22:49
Forum: Ask For Help
Topic: Convert >19 digit number to string Topic is solved
Replies: 3
Views: 157

Re: Convert >19 digit number to string Topic is solved

I had a similar problem awhile ago with the Gui Hotkey control when changing from Shift + a number e.g. Shift + 1 and just the number 1

Same solution.
by Hellbent
24 Nov 2019, 22:18
Forum: Ask For Help
Topic: How to swap two windows? Not resize, only position
Replies: 6
Views: 260

Re: How to swap two windows? Not resize, only position

teadrinker wrote:
24 Nov 2019, 22:07

Code: Select all

WinGet, list
Much nicer than my playing peak-a-boo with one of the windows to get the two handles lol.

Thanks for sharing.
by Hellbent
24 Nov 2019, 21:28
Forum: Ask For Help
Topic: How to swap two windows? Not resize, only position
Replies: 6
Views: 260

Re: How to swap two windows? Not resize, only position

Here is a simple example. #SingleInstance,Force ;Swap positions between two instances of notepad Numpad1:: SwapPositions(){ static ft,hwnd1,hwnd2 if(!ft){ ft:=1 hwnd1 := WinExist("ahk_class Notepad") WinHide,% "ahk_ID " hwnd1 hwnd2 := WinExist("ahk_class Notepad") WinShow,% "ahk_ID " hwnd1 } WingetP...
by Hellbent
17 Nov 2019, 18:18
Forum: Ask For Help
Topic: Is it possible to make this kind of Gui
Replies: 14
Views: 2978

Re: Is it possible to make this kind of Gui

Any idea how to also simulate the slider movement when the mouse is pressed above or below the handle (like with the real slider)? Is this what you're talking about? #SingleInstance,Force global Active:=0 Interval := 5, ButtonValue := 0 Gui New, +LastFound +AlwaysOnTop -Caption Gui Color, Black Gui...
by Hellbent
16 Nov 2019, 17:14
Forum: Ask For Help
Topic: How to make a Gui like this one?
Replies: 4
Views: 1737

Re: How to make a Gui like this one?

Hope this helps. #SingleInstance,Force Gui,1:+AlwaysOnTop -Caption +LastFound -DPIScale -Theme Gui,1:Color,123456 WinSet,TransColor,123456 Gui,1:Font,s10 Bold ,Segoe UI Gui,1:Add,Text,x100 y10 w150 h40 gMoveWindow, Gui,1:Add,Progress,x100 y10 w150 h40 Background000000 c006699,100 Gui,1:Add,Text,x100...
by Hellbent
16 Nov 2019, 15:08
Forum: Ask For Help
Topic: Is it possible to make this kind of Gui
Replies: 14
Views: 2978

Re: Is it possible to make this kind of Gui

Here is a functional slider. #SingleInstance,Force global Active := 0 Gui New, +LastFound +AlwaysOnTop -Caption ;-DPIScale Gui Color, Black Gui Add, Progress, x27 y20 w11 h79 Background0x6B696A cDDAE00 Range0-68 Vertical hwndSliderBackground,0 Gui Add, Progress, hwndSliderHandle x27 y88 w11 h11 c0xF...
by Hellbent
14 Nov 2019, 09:13
Forum: Ask For Help
Topic: help me display overlay text when pixel is found
Replies: 1
Views: 116

Re: help me display overlay text when pixel is found

This is one of the simpler ways of doing it #SingleInstance,Force return GuiClose: GuiContextMenu: *ESC:: ExitApp NumPad1:: Show_Text() Sleep,2000 Gui,1:Destroy return Show_Text(){ Gui,1:New,+AlwaysOnTop -Caption +LastFound -DPIScale +ToolWindow Gui,1:Color,123456 WinSet,TransColor,123456 Gui,1:Font...
by Hellbent
14 Nov 2019, 07:08
Forum: Ask For Help
Topic: Checkbox Help
Replies: 3
Views: 158

Re: Checkbox Help

There is a series on youtube that teaches how to use ahk gui's.
It could use a update, but it should (Will) give you a huge boost in your knowledge of working with ahk gui's.

https://www.youtube.com/playlist?list=PLPI5C2_hIGGyLfU-dyL_dPO4yy8y7m7US
by Hellbent
14 Nov 2019, 05:15
Forum: Ask For Help
Topic: Send and Record Mouse click with position.
Replies: 3
Views: 222

Re: Send and Record Mouse click with position.

Someone might be along shortly to provide an example for you.
In the meantime you can check out this tutorial that covers this exact topic.

After the little demo at the beginning you can skip to 4:50

https://www.youtube.com/watch?v=owXY9fqu6WQ
by Hellbent
13 Nov 2019, 21:50
Forum: Scripts and Functions
Topic: Image2Include - #include images in your scripts
Replies: 10
Views: 1931

Re: Image2Include - #include images in your scripts

Awesome stuff. I had come to the assumption that this type of image converting was only suitable for small images almost a year ago. In the long run I'm glad that I had that false assumption because it was one of the driving forces that made me create my bitmap maker which is better suited for creat...
by Hellbent
13 Nov 2019, 20:20
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 845

Re: How can I get the data from txt file? Topic is solved

Try this.

Code: Select all

if(Abs(card1 - card7)<=10){
	Gui,Font,cBlack
	GuiControl,Font,card13
	GuiControl,,card13, % (card1 - card7)
}else	{
	Gui,Font,cRed
	GuiControl,Font,card13
	GuiControl,,card13, % (card1 - card7)
}
by Hellbent
13 Nov 2019, 20:02
Forum: Ask For Help
Topic: Checkbox Help
Replies: 3
Views: 158

Re: Checkbox Help

This is pretty much the same as the colored button (switch) you wanted yesterday https://www.autohotkey.com/boards/viewtopic.php?f=76&t=69772 #SingleInstance,Force Gui,1:+AlwaysOnTop Gui,1:Add,CheckBox,x50 y40 vToggle gLabel,Set Timer Gui,1:Show,w200 h100,Checkbox return GuiClose: GuiContextMenu: *E...
by Hellbent
13 Nov 2019, 09:12
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 845

Re: How can I get the data from txt file? Topic is solved

tmplinshi wrote:
13 Nov 2019, 08:55
Time to learn RegEx?
Never!!!!! :lol: (But seriously if I can go until I die without spending one second trying to figure out what the symbols mean, i'll die that much happier. Just doesn't interest me.)

Nice work. :bravo:
by Hellbent
13 Nov 2019, 08:39
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 845

Re: How can I get the data from txt file? Topic is solved

Marcosa1020 wrote:
13 Nov 2019, 08:31
Can you get the value from a.log and b.txt to Text AHK ?
If the txt is just a spec sheet then you only need to get the data from your log. The data from the spec sheet can just get typed right into the script, there's no need to look for the value, it never changes, it's the log that changes.
by Hellbent
13 Nov 2019, 08:37
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 845

Re: How can I get the data from txt file? Topic is solved

Marcosa1020 wrote:
13 Nov 2019, 08:31
Yes, if it can get the value accurately.
Well you're only testing 6 points (from what your gui suggests). So you only need to get the recommended / max / min / [w/e] from spec sheet for the 6 items and hard code them.

Is that a true statement?
by Hellbent
13 Nov 2019, 08:09
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 845

Re: How can I get the data from txt file? Topic is solved

The text file looks like factory component specs. Do you really need to search through it? Seems to me to be the kind of thing that you could hard code and then compare to your log.

20191113082117.png
20191113082117.png (81.6 KiB) Viewed 508 times
by Hellbent
13 Nov 2019, 07:56
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 845

Re: How can I get the data from txt file? Topic is solved

Thank you.

I'll take a crack at it after I grab a bite to eat.
by Hellbent
13 Nov 2019, 07:44
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 845

Re: How can I get the data from txt file? Topic is solved

Marcosa1020 wrote:
13 Nov 2019, 07:41
What do you mean? Do you want to the original a.log and b.txt?
Whatever you have posted above as a download. Post that as plain text (inside some code tags)
by Hellbent
13 Nov 2019, 07:27
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 845

Re: How can I get the data from txt file? Topic is solved

I don't know what is the "VAR", this is much more difficult than I could have imagined. Sorry, I normally think of myself as a novice and neglect the fact that I do have a fair bit of experience regardless of my novice status. I had seen that you have been around here longer than I have even known ...
by Hellbent
13 Nov 2019, 07:01
Forum: Ask For Help
Topic: How can I get the data from txt file? Topic is solved
Replies: 23
Views: 845

Re: How can I get the data from txt file? Topic is solved

Ok, then this should be a rather simple problem to solve. This is just off the top of my head, and likely could use some refinement. For the txt file. It seems to me that you could just load the txt file into a var, then split it by lines, then search for lines that start with a 3 and then a space. ...

Go to advanced search