Search found 684 matches

by FanaticGuru
8 minutes ago
Forum: Ask For Help
Topic: Beginner "Pseudo-random" Question Topic is solved
Replies: 12
Views: 180

Re: Beginner "Pseudo-random" Question Topic is solved

Anyways, I'm trying to make my "randomly" generated points a little more human-like. If this is to fool an anti-bot software like those of MMO games, you better know that it is actually not hard to figure out someone is using a "weighted" form of randomness such as box muller tr...
by FanaticGuru
Yesterday, 14:01
Forum: Ask For Help
Topic: MsgBox and WinMove
Replies: 15
Views: 232

Re: MsgBox and WinMove

sorry, you are the experts I'm a layperson. Is it better to follow teadrinker code instead of FanatiGuru or teadrinker code could affect other MsgBoxes at other scripts? teadrinker's code is probably better. It is simpler to use. You put their function in your script and all MsgBox commands in that...
by FanaticGuru
Yesterday, 13:18
Forum: Ask For Help
Topic: MsgBox and WinMove
Replies: 15
Views: 232

Re: MsgBox and WinMove

One more example. Just add the function CBTProc() to your script, and then set coordinates of MsgBox like in the code below, if you need. MsgBox, This MessageBox will appear in the centre of screen, as usual MsgBox,, |x50 y70, This MessageBox will appear in coords x = 50 y = 70 without a title. Msg...
by FanaticGuru
Yesterday, 12:57
Forum: Ask For Help
Topic: Why won't my script run correctly?
Replies: 6
Views: 125

Re: Why won't my script run correctly?

The suggestion to use COM is intriguing, but I'm afraid it's way beyond my ability to write AutoHotkey scripts! Well it is not like I threw you to the wolves with just an off hand comment to use COM. I gave you the exact three lines of code that would cause Acrobat to do a scan. Fully understanding...
by FanaticGuru
22 Sep 2017, 11:24
Forum: Ask For Help
Topic: Why won't my script run correctly?
Replies: 6
Views: 125

Re: Why won't my script run correctly?

If you want to get fancy, you can try it through COM and skip all the navigating through the menus and tabbing to the right options. App := ComObjCreate("AcroExch.App") App.Show() App.MenuItemExecute("ScanPreset1") This will start Acrobat, make it visible, and do a scan using the...
by FanaticGuru
22 Sep 2017, 10:51
Forum: Ask For Help
Topic: MsgBox and WinMove
Replies: 15
Views: 232

Re: MsgBox and WinMove

#z:: MsgBox,,MEMO,Pray everyday Sleep 6000 WinActivate MEMO WinMove MEMO,,1155,220,255,580 return The problem is that as soon as the code encounters the MsgBox the thread pauses while the message is open. Once you hit OK the thread continues and tries to move the box after it is closed. The clunky ...
by FanaticGuru
20 Sep 2017, 13:04
Forum: Gaming
Topic: [Path of Exile] Auto Potion
Replies: 37
Views: 7416

Re: [Path of Exile] Auto Potion

Works on my computer also. Well it was working up till the latest update. Since then I cannot figure out the chain to get back to a static address. Previous working addresses: hp := poe.read(poe.baseaddress + 0x1311268, "UInt", 0xa10, 0x998, 0x9d8) maxHP := poe.read(poe.baseaddress + 0x13...
by FanaticGuru
18 Sep 2017, 13:35
Forum: Ask For Help
Topic: How to open Snipping Tool and a new snip when pressing #s
Replies: 2
Views: 71

Re: How to open Snipping Tool and a new snip when pressing #s

Below is a script I use with Snipping Tool to make it quicker and easier to use for me. I tried to accommodate different versions of Windows but not tested but on two computers. Some versions of Windows name the windows differently and the behavior of whether if automatically does "new" wh...
by FanaticGuru
13 Sep 2017, 15:49
Forum: Gaming
Topic: [Path of Exile] Auto Potion
Replies: 37
Views: 7416

Re: [Path of Exile] Auto Potion

Make sure classMemory.ahk is up-to-date (version 2.8). You need to launch the script via the 64 bit AHK exe i.e. run the script as 64 bits to allow 8 byte pointers to work. This works on my computer. f1:: if (A_ptrSize != 8) { msgbox "AHK needs to run as 64 bit!" ExitApp } if (_classmemor...
by FanaticGuru
06 Sep 2017, 15:54
Forum: Ask For Help
Topic: Outlook COM: Setting account to send from
Replies: 26
Views: 543

Re: Outlook COM: Setting account to send from

Do you think this can be converted to AHK code? Public Sub SetCustomFlag() Dim objMsg As Object ' GetCurrent Item function is athttp://slipstick.me/e8mio Set objMsg = GetCurrentItem() With objMsg ' due this week flag .MarkAsTask olMarkThisWeek ' sets a specific due date .TaskDueDate = Now + 3 .Flag...
by FanaticGuru
05 Sep 2017, 16:23
Forum: Ask For Help
Topic: How to keep leading 0s when pasting in excel Topic is solved
Replies: 7
Views: 180

Re: How to keep leading 0s when pasting in excel Topic is solved

Thank you both; just now had the time to try some of this. The first approach does not work for me, unfortunately; I seem to always end up with double apostrophes. The second approach seems a bit beyond me at the moment as I'm an AHK noob, but I will get back to it a bit later. It looks like in ord...
by FanaticGuru
05 Sep 2017, 15:45
Forum: Ask For Help
Topic: Using COM in Excel to Open Hyperlinks
Replies: 3
Views: 56

Re: Using COM in Excel to Open Hyperlinks

When I try hyper.links(1).follow I get the following error message I am not surprised that does not work. No where was hyper.links(1).follow mentioned or discussed. Computer coding is not like hand grenades, rarely is "close enough" going to get the job done. This code works for m...
by FanaticGuru
05 Sep 2017, 14:02
Forum: Ask For Help
Topic: Using COM in Excel to Open Hyperlinks
Replies: 3
Views: 56

Re: Using COM in Excel to Open Hyperlinks

Hi, I am trying to set up a macro that will go down a column of hyperlinks in Excel, run another macro on each hyperlink, and continue until there is nothing in the next row X1.Range("A" . Row).hyperlink.follow Is Hyperlink.follow the wrong way to do this or do I have another problem?? I ...
by FanaticGuru
05 Sep 2017, 13:54
Forum: Ask For Help
Topic: Selecting and numbering lines after specific word in adocument
Replies: 9
Views: 223

Re: Selecting and numbering lines after specific word in adocument

Fantastic. Really sorry for delayed feedback. Finally got a chance to try and it worked like a charm. May I bother you for a script which will only select everything after "conclusion:" instead of numbering it. Thanks. "Selecting" text is more problematic as it requires knowledg...
by FanaticGuru
01 Sep 2017, 12:06
Forum: Ask For Help
Topic: Outlook COM: Setting account to send from
Replies: 26
Views: 543

Re: Outlook COM: Setting account to send from

Could you tell me how to use the AHK to display the value of outlook properties? I think it might be possible to include the reminder property before sending the email. Thanks for taking your time for detailed explanations above. Really appreciate it. This code will let you see the "Subject&qu...
by FanaticGuru
31 Aug 2017, 19:27
Forum: Ask For Help
Topic: Outlook COM: Setting account to send from
Replies: 26
Views: 543

Re: Outlook COM: Setting account to send from

After further review creating and sending an email with follow up and task linked to it is fairly complicated. The problem is that an email cannot really have those properties set until after it is sent. It kind of looks like you are setting them in the email dialog when you are manual clicking thos...
by FanaticGuru
31 Aug 2017, 16:43
Forum: Ask For Help
Topic: [Word COM] Printing document--print more than 1 copy
Replies: 10
Views: 153

Re: [Word COM] Printing document--print more than 1 copy

Well after sending you on a wild goose chase with the ComObject. I actually ran some code and I can confirm on my system the below works as expected and prints 2 copies. printpath := A_Desktop "\Test\Blank.docx" ; blank word document to save toner oWord := ComObjCreate("Word.Applicati...
by FanaticGuru
31 Aug 2017, 14:18
Forum: Ask For Help
Topic: [Word COM] Printing document--print more than 1 copy
Replies: 10
Views: 153

Re: [Word COM] Printing document--print more than 1 copy

Interesting FanaticGuru . So I wonder why I thought this was working before. I am starting to doubt myself. Maybe it wasn't. It could have been working by accident. You were sending it parameters in slots 1 and 2 that were not the right types that were being processed in odd ways combined with it u...
by FanaticGuru
31 Aug 2017, 14:09
Forum: Ask For Help
Topic: [Word COM] Printing document--print more than 1 copy
Replies: 10
Views: 153

Re: [Word COM] Printing document--print more than 1 copy

Hmmm. That did more than just one... It printed 4², 16. Interestingly, this is what happened when I had a custom macro in Word, with the command Application.PrintOut(copies:=4) . This would also print 16. 3 would print 9, etc. So I wrote up this AHK COM code, and it worked, until now it onl...
by FanaticGuru
31 Aug 2017, 13:43
Forum: Ask For Help
Topic: [Word COM] Printing document--print more than 1 copy
Replies: 10
Views: 153

Re: [Word COM] Printing document--print more than 1 copy

What about: oFile.PrintOut(,,,,,,,4) This points out an important consideration when converting VBA to AHK. VBA allows named parameters, while with AHK every parameter has to be in its proper slot in the function call which can make for a lot of blank parameter slots when you only want to use one t...

Go to advanced search