Search found 15 matches

by Wanion
18 Mar 2019, 09:55
Forum: Ask For Help
Topic: ActiveX GIF margin and dimension discrepancy
Replies: 3
Views: 357

Re: ActiveX GIF margin and dimension discrepancy

Thank you my friend! Do you perhaps know what the 3rd and 4th parameters represent in this line? HTMLDoc.ExecWB(63, 2, 400, 0) I found enumeration for the first two and description for all here: https docs.microsoft.com /en-us/previous-versions/aa752117(v%3Dvs.85) Broken Link for safety but couldn't...
by Wanion
18 Mar 2019, 03:05
Forum: Ask For Help
Topic: ActiveX GIF margin and dimension discrepancy
Replies: 3
Views: 357

ActiveX GIF margin and dimension discrepancy

Hi, I'm trying to have animated GIF in GUI using ActiveX and for some reason the GIF itself is resized even though the control has the same dimensions as the GIF image. In addition there are margins in the control even though the GIF image has no margins. tmp_dir := "C:\Pictures" Gui RoboLoad: Margi...
by Wanion
12 Feb 2019, 06:39
Forum: Ask For Help
Topic: HMAC-256 printed using base64 encoding Topic is solved
Replies: 4
Views: 636

Re: HMAC-256 printed using base64 encoding Topic is solved

Thank you so much Teadrinker; you're the man :)
by Wanion
11 Feb 2019, 02:53
Forum: Ask For Help
Topic: HMAC-256 printed using base64 encoding Topic is solved
Replies: 4
Views: 636

HMAC-256 printed using base64 encoding Topic is solved

Hello, I'm trying to calculate HMAC-256 printed using base64 encoding. I cannot seem to be able to replicate this javascript code via COM scriptcontrol in ahk. LINK: https://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-languages/#js myInput := "Message" myK...
by Wanion
28 Jan 2019, 02:42
Forum: Ask For Help
Topic: GUI with command line? Topic is solved
Replies: 2
Views: 285

Re: GUI with command line? Topic is solved

I humbly bow to your superior skill.
May your offspring flourish.
:)
by Wanion
27 Jan 2019, 04:14
Forum: Ask For Help
Topic: GUI with command line? Topic is solved
Replies: 2
Views: 285

GUI with command line? Topic is solved

Hello, I would like to have a command line at the top of my gui where I would write something and PRESSING ENTER would submit it; execute relevant subroutine etc. Problem is I do not know how to have the keystroke do this. Only thing I came up with was to set the edit for two rows; which does not lo...
by Wanion
09 Jan 2019, 07:02
Forum: Ask For Help
Topic: HMAC-SHA256 base64 encoding
Replies: 1
Views: 366

Re: HMAC-SHA256 base64 encoding

I made the ugliest work-around in the world via Powershell.. it's not working normally because powershell has different syntax for double quotes and removes doubles spaces if I don't do the regex... so the function looks like this (so far) and presumably there might be more things powershell will no...
by Wanion
09 Jan 2019, 04:56
Forum: Ask For Help
Topic: HMAC-SHA256 base64 encoding
Replies: 1
Views: 366

HMAC-SHA256 base64 encoding

Hello, I've been googling for a day now and still wasn't able to find function that would generate correct HMAC-SHA256 base64 signature. I have input and key and need to get correct output. This example is taken from manual, verified with powershell. data= ( (request-target): post /v1/cases host: rm...
by Wanion
22 Oct 2018, 09:28
Forum: Ask For Help
Topic: Save page automatically
Replies: 0
Views: 380

Save page automatically

Hello, This code logs in, clicks on profile info, prints that page and logs out. (it will work only with actual credentials) (AHK script) URL := "https://autohotkey.com/boards/ucp.php" myusername := "USERNAME" pwd := "PASSWORD" WB := ComObjCreate("InternetExplorer.Application") WB.Navigate(URL) IELo...
by Wanion
02 Feb 2018, 11:16
Forum: Ask For Help
Topic: Coordinates mess (AHK) Topic is solved
Replies: 3
Views: 527

Re: Coordinates mess (AHK) Topic is solved

Thank you very much for the help guys, what I'm going to do is rewrite coordinates in my code with percentile values with this code for mapping: ^1:: XPRC := (A_ScreenWidth*0.001) YPRC := (A_ScreenHeight*0.001) CoordMode, Mouse, Screen MouseGetPos, xpos, ypos XPRCPos := (xpos/XPRC*0.001) YPRCPos := ...
by Wanion
01 Feb 2018, 11:54
Forum: Ask For Help
Topic: Coordinates mess (AHK) Topic is solved
Replies: 3
Views: 527

Coordinates mess (AHK) Topic is solved

Hello, I run an ahk script that relies a lot on mouse dragging and clicking. The problem is that when the script is running with another monitor, there are different x,y coordinates: I thought I can just ENVADD x,y: EnvAdd, x, +20 EnvAdd, y, +20 and every time in code simply add that x and y value t...
by Wanion
03 Sep 2017, 09:32
Forum: Ask For Help
Topic: Stopping a task and starting over
Replies: 1
Views: 384

Stopping a task and starting over

Hello, My current script has some hotkeys that perform for some time (e.g. 15 sec). The problem is that sometimes programs load for too long or for some reason the action is not performed correctly. I can see this let's say 5 sec in, and would like to have a way of stopping the current process. Paus...
by Wanion
22 Aug 2017, 12:13
Forum: Ask For Help
Topic: Comment pasting problem
Replies: 1
Views: 373

Comment pasting problem

Hello I use AHK to create common comments at my work so I was using classing "Send, bla bla bla" however when the comment is 2-3 lines long it seemed pointless to wait, as the program types each individual letter so I though I could use clipboard for this and also wanted to keep the current clipboar...
by Wanion
20 Jul 2017, 02:57
Forum: Ask For Help
Topic: Active shortcut using checkbox in GUI Topic is solved
Replies: 3
Views: 479

Re: Active shortcut using checkbox in GUI Topic is solved

Guest wrote:

Code: Select all

Gui 1:Add, CheckBox, w115 y+6 vACTIVEMODE gACTIVEMODE, Active mode
gui,Show
return

ACTIVEMODE:
	gui,Submit,NoHide
return

#If ACTIVEMODE

^!j::MsgBox,BUMBA

#If
Works like a charm. Thank you very much indeed :)
by Wanion
19 Jul 2017, 12:35
Forum: Ask For Help
Topic: Active shortcut using checkbox in GUI Topic is solved
Replies: 3
Views: 479

Active shortcut using checkbox in GUI Topic is solved

Hello, (complete amateur here) Could someone help me in how would I create a checkbox that when checked, certain hotkeys would be active and when unchecked pressing them would do nothing? Ideal scenario would be that pressing CTRL+ALT+J would trigger Msgbox only when the box is checked and do nothin...

Go to advanced search