Search found 1193 matches

by Scr1pter
07 May 2020, 16:42
Forum: Ask For Help
Topic: Resizing a gui not just on edges?
Replies: 2
Views: 266

Re: Resizing a gui not just on edges?

Thank you (again :) ) Well, it's a clever method but unfortunately it does not work for touch. I think the problem is that Windows does not accept touch as OnMessage(0x201, "WM_LBUTTONDOWN"). This means I will probably have to work with lbutton. However, I don't know what parameters to use: #if guiM...
by Scr1pter
07 May 2020, 16:36
Forum: Ask For Help
Topic: Gdip and Windows 10 screenshot tool Topic is solved
Replies: 2
Views: 253

Re: Gdip and Windows 10 screenshot tool Topic is solved

Thanks for your help. I replaced ClipWait, 1 by Sleep, 2000 , and there seems to be no problem anymore. Yes, I already tried the way with deleting the clipboard, but I received an error message. (Something like "could not write data to Clipboard") Anyway, it works after removing ClipWait. Cheers!
by Scr1pter
07 May 2020, 16:29
Forum: Ask For Help
Topic: Help with AHK script Topic is solved
Replies: 4
Views: 462

Re: Help with AHK script Topic is solved

You're welcome. Regarding your question, you can give this a try: F1:: numberMode = 1 return F2:: numberMode = 2 return #if numberMode = 1 1:: MsgBox, it works! numberMode = 0 return 2:: MsgBox, it still works! numberMode = 0 return F1:: a:: b:: numberMode = 0 return #if #if numberMode = 2 1:: MsgBo...
by Scr1pter
07 May 2020, 06:43
Forum: Ask For Help
Topic: Gdip and Windows 10 screenshot tool Topic is solved
Replies: 2
Views: 253

Gdip and Windows 10 screenshot tool Topic is solved

Hello guys, I'm trying to use Windows 10's screenshot tool together with gdip to take and save screenshots. My current script is very unreliable. I've noticed that it either saves nothing, or it's the previous taken screenshot. When I manually take screenshots (Alt+PrintScreen) and press F5, there i...
by Scr1pter
07 May 2020, 05:36
Forum: Ask For Help
Topic: Help with AHK script Topic is solved
Replies: 4
Views: 462

Re: Help with AHK script Topic is solved

Hi, You could use this way: F1:: numberMode := 1 return #if numberMode 1:: MsgBox, it works! return 2:: MsgBox, it still works! return F1:: a:: b:: numberMode := 0 return #if Replace the MsgBox, lines with your actual code (Run, ...) You can add more keys to cancel this mode, but I'm sure there is a...
by Scr1pter
06 May 2020, 12:29
Forum: Ich brauche Hilfe
Topic: Fenster wechseln WinExist
Replies: 15
Views: 1153

Re: Fenster wechseln WinExist

Und vergesst nicht, dass WinWaitActive auch hilfreich sein kann ;) Außerdem schließe ich mich BNOLIs (indirekten) Vorschlag an, dass man ruhig mal prüfen sollte, ob man auch auf Script-ebene arbeiten kann. Das hat jetzt auch nichts direkt mit diesem Beispiel zu tun. Reine Makros, die auf die Benutze...
by Scr1pter
04 May 2020, 17:09
Forum: Ask For Help
Topic: Resizing a gui not just on edges?
Replies: 2
Views: 266

Resizing a gui not just on edges?

Hello, This simple gui can be resized when clicking and dragging on any edge: F2:: Gui, Tr: +Resize +LastFound +AlwaysOnTop -Caption +ToolWindow +E0x20 Gui, Tr: Add, Picture, x0 y0 w550 h500, Testpic.png ; An image which has transparent background Gui, Tr: Show, x0 y0 w550 h500 NA, TestGui ; Shows g...
by Scr1pter
04 May 2020, 16:55
Forum: Ask For Help
Topic: GuiControl, Options? Topic is solved
Replies: 8
Views: 385

Re: GuiControl, Options? Topic is solved

Thank you, guys!

Cheers!
by Scr1pter
03 May 2020, 17:05
Forum: Ask For Help
Topic: GuiControl, Options? Topic is solved
Replies: 8
Views: 385

GuiControl, Options? Topic is solved

Hello, According to the tutorial it is possible to change the AHK options afterwards by using GuiControl. https://www.autohotkey.com/docs/commands/GuiControl.htm I tried different ways, but nothing happened when I pressed F3. How to code it properly? F1:: Gui, Color, feffff ; Color which should be r...
by Scr1pter
01 May 2020, 13:57
Forum: Ich brauche Hilfe
Topic: Fenster wechseln WinExist
Replies: 15
Views: 1153

Re: Fenster wechseln WinExist

Code: Select all

F1::
WinActivate, ahk_class MozillaWindowClass ; Firefox in den Vordergrund bringen
return
Versuch es mal damit.

Grüße
by Scr1pter
30 Apr 2020, 14:27
Forum: Ask For Help
Topic: simulate keyboard press
Replies: 8
Views: 1688

Re: simulate keyboard press

Can you post the current ahk script? Both with Joy1 and with F8. Another plan would be to work with F13 till F24. I use that way for my Logitech gaming keyboard. The programmable G keys just fire combinations like F13+F14, AHK receives the input and executes the specified script. If the razor softwa...
by Scr1pter
30 Apr 2020, 04:52
Forum: Wish List
Topic: Labels and #if
Replies: 8
Views: 1322

Re: Labels and #if

Thank you for your honest words and the interesting code, swagfag!

Cheers!
by Scr1pter
29 Apr 2020, 11:35
Forum: Wish List
Topic: Labels and #if
Replies: 8
Views: 1322

Re: Labels and #if

ummm, you have the #ifs attached to regular labels, but thats wrong. they are only attached to hotkey labels. likely your code logic is wrong Uhm that's exactly what I wrote. "It's impossible to use #ifs in the main script, because AHK claims the duplicate label:" I know that the script, which I po...
by Scr1pter
29 Apr 2020, 06:47
Forum: Wish List
Topic: Labels and #if
Replies: 8
Views: 1322

Labels and #if

Hi, I really would like the possibility to use the same label in a script, placed in different #if blocks. For hotkey labels this already works. Here a simple example just to demonstrate how the test script basically works: ;Main Script_Labels #SingleInstance, Force #include Joystick_Functions.ahk S...
by Scr1pter
29 Apr 2020, 05:13
Forum: Ask For Help
Topic: simulate keyboard press
Replies: 8
Views: 1688

Re: simulate keyboard press

Hi and welcome, your idea sounds interesting, but I doubt it will work this way. Your Razer software will probably only accept hardware buttons. Does your Orbweaver have any Joystick buttons? (I've seen an analog stick). If yes, in worst case you could just use a joystick button as modifier and use ...
by Scr1pter
24 Apr 2020, 05:34
Forum: Ask For Help
Topic: Is Numpad Joystick Possible??? - AHK V1.1.32
Replies: 8
Views: 609

Re: Is Numpad Joystick Possible??? - AHK V1.1.32

Hello and welcome, You can try out this: #SingleInstance force speedX = 20 speedY = 20 Numpad8:: while GetKeyState("Numpad8", "P") ; While key is being hold down { MouseMove, 0, -speedY, 1, R } return Numpad6:: while GetKeyState("Numpad6", "P") ; While key is being hold down { MouseMove, speedX, 0, ...
by Scr1pter
22 Apr 2020, 19:31
Forum: Ich brauche Hilfe
Topic: Dateiinhalt richtig einfügen nach FileRead
Replies: 2
Views: 463

Re: Dateiinhalt richtig einfügen nach FileRead

Warum machst du kein Backup der Zwischenablage,
fügst den Block ein und stellst die Zwischenablage wieder her?
So würde ich es machen.

Gute Nacht
by Scr1pter
22 Apr 2020, 15:16
Forum: Ask For Help
Topic: Paste a saved image into a document
Replies: 3
Views: 213

Re: Paste a saved image into a document

Hi, I made something similar a while ago, by using gdip: #SingleInstance force #include Gdip_All.ahk F1:: picturePath = C:\Users\USER\Documents\AHK\picture.png ; Path to picture Read_In_Picture(picturePath) ; Grafik in die Zwischenablage kopieren return Read_In_Picture(picture) { pToken := Gdip_Star...
by Scr1pter
22 Apr 2020, 07:07
Forum: Ask For Help
Topic: Multiple Commands on 1 Script
Replies: 1
Views: 155

Re: Multiple Commands on 1 Script

Hi, I guess by "activate program" you mean to bring it in foreground/focus. You can use WinActivate and WinWaitActive for that. (Check the AHK documentation). https://www.autohotkey.com/docs/commands/WinActivate.htm If your cursor does not move quickly enough, you can add a 0. MouseMove, 817, 984, 0...
by Scr1pter
22 Apr 2020, 05:07
Forum: Ask For Help
Topic: Problems with MIDI input Topic is solved
Replies: 4
Views: 460

Re: Problems with MIDI input Topic is solved

Hallo, beim Kopieren des Codes aus Github haben beim Einfügen Zeichen gefehlt. Statt := war es nur = War also eigentlich nur ein Syntaxproblem. Viele Grüße Hello, After copy and pasting the code from Github some characters were missing. Instead of := it was only = So it was basically just a syntax e...

Go to advanced search