Search found 327 matches

by MannyKSoSo
15 Mar 2019, 13:29
Forum: Ask For Help
Topic: Help with UrlDownloadToFile
Replies: 14
Views: 196

Re: Help with UrlDownloadToFile

It should make the file in the same location as the .ahk file. I am not sure that the firewall is blocking it
by MannyKSoSo
15 Mar 2019, 11:16
Forum: Ask For Help
Topic: Help with UrlDownloadToFile
Replies: 14
Views: 196

Re: Help with UrlDownloadToFile

;Since UrlDownload is an older function it uses regular text as the inputs instead of variables and the output file is located in the same dir ;as the autohotkey location location := "new.html" Website := "https://www.autohotkey.com/boards/viewtopic.php?f=76&t=62776&sid=54f846d2d896a27dbf20df235aa8...
by MannyKSoSo
15 Mar 2019, 08:07
Forum: Ask For Help
Topic: Help with UrlDownloadToFile
Replies: 14
Views: 196

Re: Help with UrlDownloadToFile

How about this

Code: Select all

;Since UrlDownload is an older function it uses regular text as the inputs instead of variables and the output file is located in the same dir
;as the autohotkey location
UrlDownloadToFile, www.google.com, new.html
MsgBox Done!
Exitapp
by MannyKSoSo
06 Mar 2019, 09:33
Forum: Ask For Help
Topic: SCRIPT HELP
Replies: 4
Views: 107

Re: SCRIPT HELP

#NoEnv #Persistent #SingleInstance, force SetMouseDelay, 10 SendMode, event f12:: ;<- use the f12 key to start/stop the clicking routine clicktoggle := !clicktoggle if (!clicktoggle) { SetTimer, startclick, off tooltip return } return startclick: tooltip, auto-clicking is on MouseClick, left, 259, ...
by MannyKSoSo
06 Mar 2019, 09:07
Forum: Ask For Help
Topic: SCRIPT HELP
Replies: 4
Views: 107

Re: SCRIPT HELP

on your f12 hotkey you go straight into the startclick hotkey when you toggle the key. You need to put another return before the startclick to fix this issue. (I didn't test anything, but that is the first thing I notice).
by MannyKSoSo
05 Mar 2019, 11:34
Forum: Ask For Help
Topic: A way to run a script with a non-included library?
Replies: 5
Views: 118

Re: A way to run a script with a non-included library?

You can place the data from MyLibrary.ahk in your normal script (as long as its just functions or a class). But its usually better to separate those long functions. The other thing you can do (which will still use the #Include) is to place the MyLibrary.ahk in the AutoHotKey lib folder and then do t...
by MannyKSoSo
05 Mar 2019, 09:30
Forum: Ask For Help
Topic: I want to learn the use of classes in AutoHotKey. Please help?
Replies: 15
Views: 313

Re: I want to learn the use of classes in AutoHotKey. Please help?

https://www.autohotkey.com/boards/viewtopic.php?f=76&t=58414&p=246797&hilit=Translate#p246797 That topic has a very good use for a class. You could indeed turn it into a function and use it that way, but in the case that an object is being made for the http calls makes it easier for use as a class t...
by MannyKSoSo
28 Feb 2019, 14:25
Forum: Ask For Help
Topic: I always get the same error code... Topic is solved
Replies: 3
Views: 118

Re: I always get the same error code... Topic is solved

On all of your Gui, Add, Picture you are using the same hwndPicture, which is a variable. So you are duplicating wndPicture over multiple controls when that value is supposed to be a unique value of only one control (as its the hwnd of that control). If you don't need the hwnd simply use remove hwnd...
by MannyKSoSo
27 Feb 2019, 14:37
Forum: Ask For Help
Topic: Make a script only affect a certain program?
Replies: 1
Views: 88

Re: Make an script only for one program?

You can use ControlSend https://autohotkey.com/docs/commands/ControlSend.htm This will allow the window to be in the background, but it can be a little trickier when its just a chrome tab. I am not well versed in ControlSend, but there are some good forms to read on it that are similar to your examp...
by MannyKSoSo
27 Feb 2019, 12:24
Forum: Ask For Help
Topic: {tab} not working in new email
Replies: 1
Views: 100

Re: {tab} not working in new email

You could do this m := ComObjActive("Outlook.Application").CreateItem(0) m.Subject := "Outlook Automation" m.To := "emailaddress@company.com; secondemailaddress@company.com" ;m.CC := "emailaddress@company.com" ; FileList := "" ; Loop, Parse, Selected, `n, `r ; { ; m.attachments.add(A_LoopField) ; Sp...
by MannyKSoSo
19 Feb 2019, 16:01
Forum: Ask For Help
Topic: Hotkeystrings don't work 20% of the time
Replies: 12
Views: 471

Re: Hotkeystrings don't work 20% of the time

If you want to view the latest information it ran, just run the .ahk file (should run fine) and in your task bar find your .ahk that is running and right click it. The top option is open. Click that option and it should open the window the shows what ran last. It is a little hard to read, but should...
by MannyKSoSo
15 Feb 2019, 10:18
Forum: Ask For Help
Topic: Can AutoHotkey do this?
Replies: 1
Views: 79

Re: Can AutoHotkey do this?

So one question that would be important is the report itself. Is it a link to a download (with a known url) or is that url dynamically generated at that specific time and date. If its not a dynamically generated one you may be able to skip logging in. But so far all of this seems very doable, just m...
by MannyKSoSo
06 Feb 2019, 15:57
Forum: Ask For Help
Topic: How to add else if in loop
Replies: 7
Views: 199

Re: How to add else if in loop

So is your goal to have both xbutton1 and rbutton going at the same time or are you trying to trigger them at different times?
by MannyKSoSo
06 Feb 2019, 10:34
Forum: Ask For Help
Topic: How to add else if in loop
Replies: 7
Views: 199

Re: How to add else if in loop

that is because it reaches the last else statement before you press the xbutton1. You would have to have the rbutton down with the xbutton1 at the same time then release it. Otherwise it will reach the else statement. Also add the "p" option to the getkeystate for xbutton1 and that should help.
by MannyKSoSo
06 Feb 2019, 09:38
Forum: Ask For Help
Topic: How to add else if in loop
Replies: 7
Views: 199

Re: How to add else if in loop

Your else if cannot be a trigger for another hotkey. Instead you should use another getkeystate with that button like so
else if getkeystate("xbutton1")
by MannyKSoSo
01 Feb 2019, 12:51
Forum: Ask For Help
Topic: Hi! Need some help - simple script
Replies: 5
Views: 199

Re: Hi! Need some help - simple script

The Shift Del is just for deleting files from that form post, so you shouldn't need it for your script. And if you use [ code ] (remove spaces to use the tag and /code for end of code tag) tags you will be able to post code (as seen if that other post).
by MannyKSoSo
28 Jan 2019, 11:24
Forum: Ask For Help
Topic: Syntax advice
Replies: 1
Views: 105

Re: Syntax advice

You could have an external script that takes your variables instead of writing it to your main script, and if you make it #SingleInstance, Ignore you can have as many as you want. For example Run %A_AHKPath% "JsonTest.ahk" %Lat% %Long% 1294 100 ;Variables to pass in ;JsonTest.ahk Loop %0% Var%A_Inde...
by MannyKSoSo
23 Jan 2019, 10:19
Forum: Ask For Help
Topic: RegExMatch question
Replies: 13
Views: 484

Re: RegExMatch question

If you want to match new line characters I recommend using \R as this can match `r,`n, `r`n.
by MannyKSoSo
18 Jan 2019, 14:10
Forum: Ask For Help
Topic: Why is the GUI not aborted
Replies: 3
Views: 169

Re: Why is the GUI not aborted

throughout your whole code I only see 1 "Return" statement, so your code is going through the whole code until it hits that return. So I'm not sure exactly where you want to auto-execute to stop, but I think this is just a problem of code running that should not be ran yet.

Go to advanced search