Search found 1305 matches

by TheDewd
25 Jul 2019, 09:16
Forum: Ask For Help
Topic: Finding a pattern within Modulus? Simple sending of numbers
Replies: 8
Views: 513

Re: Finding a pattern within Modulus? Simple sending of numbers

I thought that NumA must use increments of +3 (1, 4, 7, 10, 13, ...).

Your latest reply shows NumA as +1 (1, 2, 3, 4, 5, 6, 7, ...).

Can you please clarify?
by TheDewd
25 Jul 2019, 07:30
Forum: Ask For Help
Topic: Finding a pattern within Modulus? Simple sending of numbers
Replies: 8
Views: 513

Re: Finding a pattern within Modulus? Simple sending of numbers

#SingleInstance, Force NumA := 1 NumB := 2 NumC := 3 ToolTip, % NumA "`n" NumB "`n" NumC return F1:: ; Up NumA += (NumA = 67 ? 2 : 3) NumB += (NumB = 68 ? 2 : 3) NumC += (NumC = 69 ? 2 : 3) NumA := (NumA > 69 ? 1 : NumA) NumB := (NumB > 70 ? 2 : NumB) NumC := (NumC > 71 ? 3 : NumC) ToolTip, % NumA ...
by TheDewd
24 Jul 2019, 14:52
Forum: Ask For Help
Topic: Finding a pattern within Modulus? Simple sending of numbers
Replies: 8
Views: 513

Re: Finding a pattern within Modulus? Simple sending of numbers

Start = NumA : 1 Num B: 2 Num C: 3 Right x1 = (this is the only one which adds 69 instead of 46) NumA : 1 Num B: 70 Num C: 71 NumA: 1 NumB: 2+69 = 71 NumC: 3+69 = 72 I am still confused because your example doesn't seem to match my math. Regarding your inquiry about where to start with coding -- I ...
by TheDewd
24 Jul 2019, 12:58
Forum: Ask For Help
Topic: Finding a pattern within Modulus? Simple sending of numbers
Replies: 8
Views: 513

Re: Finding a pattern within Modulus? Simple sending of numbers

I think I understand Up and Down , but I'm confused on your instructions for Left and Right regarding the ranges. #SingleInstance, Force NumA := 1 NumB := 2 NumC := 3 return F1:: ; Up NumA += (NumA = 67 ? 2 : 3) NumB += (NumB = 68 ? 2 : 3) NumC += (NumC = 69 ? 2 : 3) NumA := (NumA > 69 ? 1 : NumA) N...
by TheDewd
24 Jul 2019, 07:59
Forum: Ask For Help
Topic: Problem with RegExMatch Topic is solved
Replies: 6
Views: 218

Re: Problem with RegExMatch Topic is solved

Code: Select all

#SingleInstance, Force

Haystack := "Re: 091795.0001 this also 055916.0002 and 96190.14 also 69190/11"

Pos := 0

While (Pos := RegExMatch(Haystack, "\b\d{4,6}(\.|\/)\d{1,4}\b", Match, Pos + 1)) {
	MsgBox, % Match
}
by TheDewd
22 Jul 2019, 15:20
Forum: Ask For Help
Topic: What algorithm is used for logid?
Replies: 2
Views: 141

Re: What algorithm is used for logid?

TCP/UDP Ports?
by TheDewd
22 Jul 2019, 14:50
Forum: Ask For Help
Topic: Exiting Subscript only
Replies: 7
Views: 308

Re: Exiting Subscript only

Gui, Add, Button, gButtonActionExitApp, Exit AHKcommander ButtonActionExitApp() { Global ; Assume-global mode For Process In ComObjGet("winmgmts:").ExecQuery("SELECT * FROM Win32_Process WHERE name = 'Autohotkey.exe' AND CommandLine LIKE '%Didi_AHKcommander.ahk%'") { Process, Close, % Process.Proce...
by TheDewd
22 Jul 2019, 14:18
Forum: Ask For Help
Topic: minimize all windows, open file and restore
Replies: 1
Views: 91

Re: minimize all windows, open file and restore

It should be possible to assign a hotkey to loop through all active windows, store their positions to a variable, minimize all windows, and then restore their positions upon pressing the hotkey again. There's also the alternative which involves opening a new explorer window and navigating to the use...
by TheDewd
22 Jul 2019, 13:50
Forum: Ask For Help
Topic: RegExReplace not working like in Notepad++ Topic is solved
Replies: 2
Views: 123

Re: RegExReplace not working like in Notepad++ Topic is solved

Try using dollar symbol. See below...

Code: Select all

RegExReplace(StringLeft, "(left(?:(?!left).)*)left((?:(?!left).)*)", "$1right$2")

https://www.autohotkey.com/docs/commands/RegExReplace.htm#BackRef
by TheDewd
22 Jul 2019, 12:32
Forum: Ask For Help
Topic: Drag 'n' drop onto Windows shortcut to display GUI
Replies: 2
Views: 185

Re: Drag 'n' drop onto Windows shortcut to display GUI

Here's what worked for me: 1) Create a shortcut to the main AutoHotkey executable. 2) Modify the shortcut path to include the path to your AutoHotkey script: "C:\Users\TheDewd\Downloads\AutoHotkey\AutoHotkey.exe" C:\Users\TheDewd\Downloads\temp.ahk 3) Drag a file onto the shortcut, or double-click t...
by TheDewd
22 Jul 2019, 12:13
Forum: Ask For Help
Topic: How to change default editor in AHK PORTABLE?
Replies: 7
Views: 429

Re: How to change default editor in AHK PORTABLE?

Try creating the following path using the registry editor: HKEY_CLASSES_ROOT\Applications\AutoHotkey.exe\shell\edit\command Then create a new string value in the "command" key with the path to your editor, like this: "C:\Users\TheDewd\Notepad++.exe" "%1" Untested! I can't create the "edit" key under...
by TheDewd
22 Jul 2019, 11:56
Forum: Ask For Help
Topic: Can I change a script taskbar icon of a msgbox?
Replies: 2
Views: 181

Re: Can I change a script taskbar icon of a msgbox?

Courtesy of StackOverflow. https://stackoverflow.com/questions/12573868/how-do-i-set-the-autohotkey-msgbox-taskbar-icon Since you're not using a Gui for your script, it seems this would best achieve the results you requested. #SingleInstance, Force #NoTrayIcon Menu, Tray, Icon, Shell32.dll, 5 ; Fold...
by TheDewd
22 Jul 2019, 11:36
Forum: Wish List
Topic: Gui support for webp image format
Replies: 1
Views: 195

Re: Gui support for webp image format

I just want to leave a link to your previous post: https://www.autohotkey.com/boards/viewtopic.php?t=66335&p=285147 In case anyone can use those findings as inspiration to create a better solution, or become enlightened to how they may include WebP images in their own project. It was determined that...
by TheDewd
22 Jul 2019, 11:28
Forum: Ask For Help
Topic: Temporal hotkeys for one minute Topic is solved
Replies: 4
Views: 137

Re: Temporal hotkeys for one minute Topic is solved

@gregster Thank you! I fixed my code.
by TheDewd
22 Jul 2019, 11:24
Forum: Pulovers Macro Creator
Topic: Macro to log out Social Media accounts (FaceBook, YouTube)
Replies: 2
Views: 225

Re: Macro to log out Social Media accounts (FaceBook, YouTube)

Social media accounts? Hmm... Maybe you can inspect the source from Super Logout to get an idea. They use HTML and JavaScript to achieve this. https://github.com/superlogout/superlogout.github.io Actual website -- Do not click unless you want to be logged out of your active sessions: https://superlo...
by TheDewd
22 Jul 2019, 11:15
Forum: Ask For Help
Topic: Temporal hotkeys for one minute Topic is solved
Replies: 4
Views: 137

Re: Temporal hotkeys for one minute Topic is solved

#SingleInstance, Force ; Allow only one running instance of script KeysActive := 0 ; Initial value - Disabled return F3:: ; If Hotkeys are already enabled, do nothing... If (KeysActive = 1) { return } ; Otherwise, start a timer for 1 minute SetTimer, Timer1, -60000 ; 1 minute KeysActive := 1 ; Enab...
by TheDewd
19 Jul 2019, 12:42
Forum: Ask For Help
Topic: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved
Replies: 9
Views: 673

Re: How to extract only first paragraph from Wikipedia using API Calls? Topic is solved

url := "https://en.wikipedia.org/w/api.php?format=json&action=query&prop=extracts&exintro&explaintext&redirects=1&titles=AutoHotkey" whr := ComObjCreate("WinHttp.WinHttpRequest.5.1") whr.Open("POST", url, false) whr.Send() html := whr.ResponseText RegExMatch(html, """extract"":""(.*?)""}", Match) M...
by TheDewd
11 Jul 2019, 13:31
Forum: Ask For Help
Topic: How do I retrieve one file name and hold to a variable? Topic is solved
Replies: 3
Views: 137

Re: How do I retrieve one file name and hold to a variable? Topic is solved

Untested! MyVar := "" gui, add, edit ,vfolder_gui, ; Paste folder location in the gui that contain photos gui, add, button, grun,run gui, show return Run: gui, submit, nohide Loop Files, %folder_gui%\*.jpg ; looks for photos jpg within the folder { MyVar := A_LoopFileName Break } msgbox, % MyVar ret...
by TheDewd
11 Jul 2019, 09:13
Forum: Ask For Help
Topic: help me comprehend this
Replies: 1
Views: 114

Re: help me comprehend this

This is not the complete script. It's missing some of the variable assignments.

Go to advanced search