## Search found 1305 matches

25 Jul 2019, 09:16
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, ...).

25 Jul 2019, 07:30
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 ...
24 Jul 2019, 16:05
Topic: FormatTime problem and cannot input string of equal signs Topic is solved
Replies: 3
Views: 169

### Re: FormatTime problem and cannot input string of equal signs Topic is solved

FormatTime, Date,, yyyy-MM-dd (ddd)
24 Jul 2019, 14:52
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 ...
24 Jul 2019, 12:58
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...
24 Jul 2019, 07:59
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
}``````
22 Jul 2019, 15:20
Topic: What algorithm is used for logid?
Replies: 2
Views: 141

### Re: What algorithm is used for logid?

TCP/UDP Ports?
22 Jul 2019, 14:50
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...
22 Jul 2019, 14:18
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...
22 Jul 2019, 13:50
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
22 Jul 2019, 12:32
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...
22 Jul 2019, 12:13
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...
22 Jul 2019, 11:56
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...
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...
22 Jul 2019, 11:28
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.
22 Jul 2019, 11:24
Forum: Pulovers Macro Creator
Replies: 2
Views: 225

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...
22 Jul 2019, 11:15
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...
19 Jul 2019, 12:42
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...
11 Jul 2019, 13:31
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...
11 Jul 2019, 09:13