Search found 1390 matches

by TheDewd
15 Oct 2019, 14:31
Forum: Other Programming Languages
Topic: Can anyone explain how the "sk" variable is generated?
Replies: 3
Views: 2625

Re: Can anyone explain this piece of Java code?

I also cannot understand Java, but I found references from Google searches that refer to the getSK() value as "SelectionKey".

https://docs.oracle.com/javase/7/docs/api/java/nio/channels/SelectionKey.html
by TheDewd
07 Oct 2019, 12:50
Forum: Ask For Help
Topic: Help to Extract Data
Replies: 4
Views: 508

Re: Help to Extract Data

If the data always matches this specific pattern, this should work: #SingleInstance, Force Data = (LTRIM Tracking Number:1Z9A6T164271256065 AY-06-101L ARYSE SM Left METFORCE ANKLE Ankle Brace L1906 1.00 Ea 0.32 Lb 0.32 Lb Tracking Number:1Z9A6T164270579325 AY-37/50-104 ARYSE XL METFORCE BACK Back Br...
by TheDewd
01 Oct 2019, 08:41
Forum: Ich brauche Hilfe
Topic: array frage
Replies: 3
Views: 530

Re: array frage

You have not defined the array named "Array" yet, so you cannot "Push" to the array that has not yet been created. Sie haben das Array mit dem Namen "Array" noch nicht definiert, daher können Sie das Array, das noch nicht erstellt wurde, nicht "pushen". Array := [] ; <-- ADD / Hinzufügen xa1 := "Anm...
by TheDewd
01 Oct 2019, 08:36
Forum: Ask For Help
Topic: Multiple input in a GUI
Replies: 4
Views: 659

Re: Multiple input in a GUI

#SingleInstance, Force Gui, Margin, 10, 10 Gui, Add, Text, w260 r1, PO Number(s): Gui, Add, Edit, y+10 wp r20 vEdit1 Gui, Add, Button, Default y+10 w80 h24 gClose, Close Gui, Add, Button, x+10 wp hp gOpen, Open Gui, Add, Button, x+10 wp hp gCancel, Cancel Gui, Show, Hide AutoSize, PO Numbers return...
by TheDewd
30 Sep 2019, 10:26
Forum: Ask For Help
Topic: Multiple input in a GUI
Replies: 4
Views: 659

Re: Multiple input in a GUI

Does this do what you need? #SingleInstance, Force Gui, Margin, 10, 10 Gui, Add, Text, w200 r1, PO Number(s): Gui, Add, Edit, y+10 wp rp +Limit7 +Number HWNDhEdit1 vEdit1 Gui, Add, Edit, y+10 wp rp +Limit7 +Number HWNDhEdit2 vEdit2 Gui, Add, Edit, y+10 wp rp +Limit7 +Number HWNDhEdit3 vEdit3 Gui, Ad...
by TheDewd
26 Sep 2019, 14:12
Forum: Tutorials
Topic: Encoding Binary data to a string
Replies: 2
Views: 3037

Re: Encoding Binary data to a string

...encoding a binary image to Base64, then being able to decode it back for usage (this will allow them not to have to share the actual image files.) Joe, My game " Bulldozer " makes use of encoding PNG images to Base64 to prevent having to include external images when sharing the script file. The ...
by TheDewd
26 Sep 2019, 13:31
Forum: General Discussion
Topic: [SVG] Autohotkey main icon as svg
Replies: 1
Views: 1585

Re: [SVG] Autohotkey main icon as svg

I had an attempt at re-creating the icons in PNG format (800x800 px). I, also, am not a professional designer, so don't expect the images to be perfect :D . I only worked on them for about 30 minutes maximum. https://github.com/westoncampbell/SharedAHK/tree/master/AHKIcons Normal https://i.imgur.com...
by TheDewd
26 Sep 2019, 11:57
Forum: Ask For Help
Topic: How to save data from GUI elements in a file/log ?
Replies: 1
Views: 363

Re: How to save data from GUI elements in a file/log ?

Give each control a variable name, and then use GuiSubmit to assign the control value to the chosen variable names. Once you have the variable values assigned, you can write them to a text file for example using FileAppend . #SingleInstance, Force Gui, Margin, 10, 10 Gui, Add, Checkbox, w200 vCB1, C...
by TheDewd
16 Sep 2019, 16:12
Forum: Ask For Help
Topic: CRC32 of Zipped files? Topic is solved
Replies: 2
Views: 633

Re: CRC32 of Zipped files? Topic is solved

That's exactly what I needed! Thank you very much!
by TheDewd
16 Sep 2019, 09:07
Forum: Ask For Help
Topic: CRC32 of Zipped files? Topic is solved
Replies: 2
Views: 633

CRC32 of Zipped files? Topic is solved

Is there a more painless way to get the CRC32 value for files within a ZIP file? I'm really only interested in the CRC32 to use for checking the validity of the files against a database. Here's some code I put together that uses 7za.exe to display information about files in an archive... I'm using R...
by TheDewd
12 Sep 2019, 16:01
Forum: Scripts and Functions
Topic: CLSID/IID search tool.
Replies: 5
Views: 1114

Re: CLSID/IID search tool.

by TheDewd
06 Sep 2019, 15:38
Forum: Ask For Help
Topic: Text to speech upon activating the script Topic is solved
Replies: 1
Views: 284

Re: Text to speech upon activating the script Topic is solved

Just put it as the first line in your script.

Add the command to the Auto-execute section of your script...
https://www.autohotkey.com/docs/Scripts.htm#auto
by TheDewd
06 Sep 2019, 15:34
Forum: Ask For Help
Topic: How do I center a window?
Replies: 1
Views: 263

Re: How do I center a window?

F1:: WinTitle = A SysGet, Display_, Monitor, 1 WinGetPos,,, WinW, WinH, % WinTitle WinMove, % WinTitle,, % Floor( (Display_Right/2)-(WinW/2) ), % Floor( (Display_Bottom/2)-(WinH/2) ) return https://www.autohotkey.com/boards/viewtopic.php?p=40398#p40398 https://www.google.com/search?q=site:autohotke...
by TheDewd
06 Sep 2019, 15:26
Forum: Ask For Help
Topic: How to make a new line inside IniWrite every day? Topic is solved
Replies: 5
Views: 478

Re: How to make a new line inside IniWrite every day? Topic is solved

I updated my post once again... Fixed a flaw that would reset the key count value to zero if you reload the script.

Also changed keys to F1 Up and F2 Up so it wouldn't repeatedly count if you held the keys down for a long time.

Looks good now!
by TheDewd
06 Sep 2019, 15:21
Forum: Ask For Help
Topic: How to make a new line inside IniWrite every day? Topic is solved
Replies: 5
Views: 478

Re: How to make a new line inside IniWrite every day? Topic is solved

@SirSocks,

Thank you! I updated my post, and added how to get the total keypresses from ALL days.
by TheDewd
06 Sep 2019, 15:12
Forum: Ask For Help
Topic: How to make a new line inside IniWrite every day? Topic is solved
Replies: 5
Views: 478

Re: How to make a new line inside IniWrite every day? Topic is solved

Edit: Updated #SingleInstance, Force ~F1 Up:: ~F2 Up:: Today := A_YYYY . A_MM . A_DD IniRead, KeyCount, Stats.ini, Stats, %Today%, 0 KeyCount++ IniWrite, %KeyCount%, Stats.ini, Stats, %Today% return F12:: Total := 0 IniRead, GetStats, Stats.ini, Stats Pos := 0 While (Pos := RegExMatch(GetStats, "=(...
by TheDewd
06 Sep 2019, 14:26
Forum: Ask For Help
Topic: Object Follow Mouse Topic is solved
Replies: 21
Views: 2121

Re: Object Follow Mouse Topic is solved

For me it works great! :) It's not easy for me modify. If you still have any qustions, feel free to ask. Thanks! I figured out how to re-write your code in a style that is easier for me to read/debug, removing the function binds, etc. #SingleInstance, Force SetBatchLines, -1 CoordMode, Mouse, Scree...
by TheDewd
04 Sep 2019, 16:10
Forum: Ask For Help
Topic: Object Follow Mouse Topic is solved
Replies: 21
Views: 2121

Re: Object Follow Mouse Topic is solved

One more my try: SetBatchLines, -1 CoordMode, Mouse guiHomeX := 300, guiHomeY := 300 step := 30 period := 200 Gui, New, -Caption +ToolWindow +AlwaysOnTop +hwndhGui Gui, Color, Red Gui, Font, s16 q5, Calibri Gui, Add, Text, x0 y2 w30 h30 Center, 0 Gui, Show, x%guiHomeX% y%guiHomeY% w30 h30 OnMessage...
by TheDewd
30 Aug 2019, 14:37
Forum: Ask For Help
Topic: Object Follow Mouse Topic is solved
Replies: 21
Views: 2121

Re: Object Follow Mouse Topic is solved

@boiler,
That's EXACTLY what I wanted. Thank you so much! This should allow me to continue work on the script.

@teadrinker,
You've definitely taught me (by example) a new way to track the mouse distance from an object. Much appreciated.
by TheDewd
30 Aug 2019, 14:34
Forum: Ask For Help
Topic: Object Follow Mouse Topic is solved
Replies: 21
Views: 2121

Re: Object Follow Mouse Topic is solved

@teadrinker, That definitely does what I want, but I'm not sure how to tweak it, for example to move in 16px increments instead of 1px -- similarly to the linked website. It's very fast and fluid at the moment. Impressive solution! :shock: I also like the addition of the "Go Home" feature. :lol: Not...

Go to advanced search