Search found 77 matches

by Mipha
17 Feb 2020, 10:53
Forum: Ask for Help (v1)
Topic: how do I prevent #ifwinexist from disabling other hotkeys Topic is solved
Replies: 5
Views: 560

Re: how do I prevent #ifwinexist from disabling other hotkeys Topic is solved

It should be, hotkey if Hotkey, % "w", testkeys return testkeys: msgbox a return #ifwinactive, test ; my hotkeys for window "test" The line you replaced #ifwinactive, test with will never be executed and has no effect on the script. Cheers. After a bit more testing, that's what I noticed too. In th...
by Mipha
17 Feb 2020, 10:40
Forum: Ask for Help (v1)
Topic: how do I prevent #ifwinexist from disabling other hotkeys Topic is solved
Replies: 5
Views: 560

Re: how do I prevent #ifwinexist from disabling other hotkeys Topic is solved

Helgef wrote:
17 Feb 2020, 10:35
use hotkey if,
:arrow: src.

Cheers.

Code: Select all


Hotkey, % "w", testkeys
return

testkeys:
msgbox a
return

hotkey, ifwinactive, test
return
This works perfectly. Thank you!
by Mipha
17 Feb 2020, 10:29
Forum: Ask for Help (v1)
Topic: how do I prevent #ifwinexist from disabling other hotkeys Topic is solved
Replies: 5
Views: 560

how do I prevent #ifwinexist from disabling other hotkeys Topic is solved

Code: Select all

Hotkey, % "w", testkeys
return

testkeys:
msgbox a
return

#ifwinactive, test
return
With this script. Pressing W does not activate the testkeys part.
Is there away to change this up so that the hotkey works without removing the hotkey, % "w", testkeys part and the #ifwinactive part?
by Mipha
14 Oct 2019, 17:52
Forum: Ask for Help (v1)
Topic: Long integers?
Replies: 2
Views: 454

Re: Long integers?

I think you would need to save them as strings - to still do mathematical operations with them, you could use Avi's Maths.ahk library: https://aviaryan.com/ahk/functions/smaths (docs) https://github.com/aviaryan/autohotkey-scripts/blob/master/Functions/Maths.ahk (lib on github) https://autohotkey.c...
by Mipha
14 Oct 2019, 17:17
Forum: Ask for Help (v1)
Topic: Long integers?
Replies: 2
Views: 454

Long integers?

I am currently trying to make an incremental game in autohotkey. I intend to eventually use high numbers that go above the point where ahk's numbers screw up and go negative (which is around 1e18 I think). Is there a method that I can use to reach higher numbers and how would I go about implementing...
by Mipha
13 Sep 2019, 17:56
Forum: Tips and Tricks (v1)
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 148
Views: 159770

Re: [GUI] Use HTML and CSS for your GUIs!

The code seems fine overall except for the setAttribute() calls. They should change class instead, but dont use that. You can access the class with ".className" Also you gotta check if IE or whatever browser is running, that it supports "filter". The browser does not support filter. I've tried more...
by Mipha
13 Sep 2019, 05:46
Forum: Tips and Tricks (v1)
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 148
Views: 159770

Re: [GUI] Use HTML and CSS for your GUIs!

I have been stuck with this issue for the longest time and I'm seriously thinking that no good solution exists for this one. I am trying to change the color of an image inside a activeX gui. Here is my code #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Wa...
by Mipha
12 Dec 2018, 08:39
Forum: Ask for Help (v1)
Topic: navigating to a page disables font
Replies: 2
Views: 909

Re: navigating to a page disables font

TLM wrote:
11 Dec 2018, 23:37
setting the client version of ie to the latest usually works but I forget how...
What exactly do you mean with this? Do you mean this as a setting in ahk or something I'd have to put in the html code or ahk code?
by Mipha
11 Dec 2018, 13:53
Forum: Ask for Help (v1)
Topic: navigating to a page disables font
Replies: 2
Views: 909

navigating to a page disables font

When travelling to a html page. The font-face rule seems to stop working in the ahk script. Here's the example of the script I'm using. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode I...
by Mipha
09 Dec 2018, 11:47
Forum: Ask for Help (v1)
Topic: ActiveX font importing stops working randomly
Replies: 3
Views: 1096

Re: ActiveX font importing stops working randomly

Does seriously no one around here have any clue? Why do fonts in ahk have to be by far the most troublesome feature I ever had to work with :/
by Mipha
07 Dec 2018, 07:55
Forum: Ask for Help (v1)
Topic: ActiveX font importing stops working randomly
Replies: 3
Views: 1096

Re: ActiveX font importing stops working randomly

It has been over a day. Is there at least someone that knows a place where they know more about activeX so I can ask there?
by Mipha
06 Dec 2018, 03:55
Forum: Ask for Help (v1)
Topic: Simple AHK Macro
Replies: 1
Views: 650

Re: Simple AHK Macro

You can use send {up down} to press the up arrow down. You can then use send {up up} to release it and you can use sleep 2000 to wait 2 seconds. Combining these you can probably make the script you want too.
by Mipha
06 Dec 2018, 03:41
Forum: Ask for Help (v1)
Topic: ActiveX font importing stops working randomly
Replies: 3
Views: 1096

ActiveX font importing stops working randomly

I have tried to replicate this issue on a html file and I couldn't get it to replicate so this seems to only happen on activeX windows. Here is some code #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common ...
by Mipha
25 Nov 2018, 18:05
Forum: Ask for Help (v1)
Topic: disable right click menu on gui
Replies: 2
Views: 1070

disable right click menu on gui

gui, add, edit, h0 w0 gui, font, s10 gui +Border +lastfound mainmenuhighH := A_screenheight / 3 mainmenuhighW := A_screenwidth / 3 Gui, Add, ActiveX, x0 y0 w%mainmenuhighW% h%mainmenuhighH% vfeaturedoc, HtmlFile gui, show return Here is a simple gui. Pressing right click on this brings up this menu...
by Mipha
19 Nov 2018, 03:07
Forum: Ask for Help (v1)
Topic: Use custom font in activeX htmlfile Topic is solved
Replies: 40
Views: 8279

Re: Use custom font in activeX htmlfile Topic is solved

Have you tried this with Shell.Browser or Shell.Explorer? featuredoc.silent := true, featuredoc.Navigate("about:blank") While featuredoc.readystate != 4 or featuredoc.busy Sleep 10 featuredoc.document.write(html) where html is a variable containing the HTML code featured in your second codebox abov...
by Mipha
17 Nov 2018, 07:18
Forum: Ask for Help (v1)
Topic: navigate to a html file with a value
Replies: 0
Views: 676

navigate to a html file with a value

I actually already have a way to do this but I have trouble accessing the value in the html file ;inside the ahk script gui, add, edit, h0 w0 gui, font, s10 gui +Border -Caption +lastfound gui, color, EBAE02 WinSet, TransColor, EBAE02 winsettitle, Test script guiwidth := A_screenwidth / 1.5 guiheigh...
by Mipha
17 Nov 2018, 07:09
Forum: Ask for Help (v1)
Topic: Use custom font in activeX htmlfile Topic is solved
Replies: 40
Views: 8279

Re: Use custom font in activeX htmlfile Topic is solved

Maybe you could build a more complex CSS style with different values for each class/id and use different class or id for elements of each distinct layout. Dunno if I made myself clear. Something like this: <style type=text/css> myid1 { width: 50px; } myid2 { width: 100px; } </style> <body> <p id='m...
by Mipha
16 Nov 2018, 15:04
Forum: Ask for Help (v1)
Topic: Use custom font in activeX htmlfile Topic is solved
Replies: 40
Views: 8279

Re: Use custom font in activeX htmlfile Topic is solved

Well, a font should be uninstalled, not simply deleted - my bad. The zombie may go away upon reboot, or it may not. There are tutorials on the web for removing protected system fonts, in case this one fell into that category. Since you have to load the entire HTML file (from a path) in order for th...
by Mipha
15 Nov 2018, 08:34
Forum: Ask for Help (v1)
Topic: Use custom font in activeX htmlfile Topic is solved
Replies: 40
Views: 8279

Re: Use custom font in activeX htmlfile Topic is solved

Now would be a good time to say the F word. :( Importing a font would be best because then changing font color would be much simpler than manipulating image pixels through gdiplus or whatever else. I wonder if it'd work for ANY installed font. Because if it does, you can simply install the font in ...

Go to advanced search