Search found 478 matches

by vsub
06 Jan 2021, 10:11
Forum: Ask For Help
Topic: Calculate time ahead Topic is solved
Replies: 4
Views: 83

Calculate time ahead Topic is solved

For example if now is 15:02:12 and I want to add 3380 seconds,how can a get what time it will be and if it is on the next day to also display it properly
by vsub
23 Aug 2020, 04:35
Forum: Ask For Help
Topic: I want to make Alt-Tap hotkey
Replies: 5
Views: 1771

Re: I want to make Alt-Tap hotkey

Numpad5::AtlTab
If the active window is a program that is running as admin,this(and any other hotkey)will not work unless you set autohotkey to run as admin
by vsub
18 Aug 2020, 13:07
Forum: Ask For Help
Topic: Script for arrow keys on a 60% keyboard Topic is solved
Replies: 6
Views: 1094

Re: Script for arrow keys on a 60% keyboard Topic is solved

This works but I don't really like the fact that I have to press multiple times to move the cursor(it doesn't work the same was as holding the arrow keys but since you want a different function when you hold the key,I don't think that's possible) ~LCtrl:: ~LShift:: ~LAlt:: Combo := SubStr(A_ThisHotk...
by vsub
18 Aug 2020, 11:50
Forum: Ask For Help
Topic: Script for arrow keys on a 60% keyboard Topic is solved
Replies: 6
Views: 1094

Re: Script for arrow keys on a 60% keyboard Topic is solved

$RAlt:: $RWin:: $RControl:: $RShift:: Key := SubStr(A_ThisHotkey,2) KeyWait,% Key,t1 ; Wait 1 second to trigger hold If ErrorLevel = 0 { If (Key = "RAlt") { Send,{Left} Return } If (Key = "RWin") { Send,{Down} Return } If (Key = "RControl") { Send,{Right} Return } If (Key = "RShift") { Send,{Up} Re...
by vsub
18 Aug 2020, 10:32
Forum: Ask For Help
Topic: Change Volume based on Mouse Position
Replies: 5
Views: 1344

Re: Change Volume based on Mouse Position

Yes it works but as I said the time between the last MouseGetPoS and the next is 500ms and in between that time,the mouse wheel can change the volume even if the actual mouse position is not below 1050 Here is an example 1.Move the mouse over the taskbar and leave it there for 1 or two seconds 2.Qui...
by vsub
17 Aug 2020, 12:28
Forum: Ask For Help
Topic: Change Volume based on Mouse Position
Replies: 5
Views: 1344

Re: Any idea how can I do this

1920x1080 but it doesn't really matter
I can use A_ScreenWidth and A_ScreenHeight

Below 1050 is when the mouse is over the taskbar
by vsub
17 Aug 2020, 11:53
Forum: Ask For Help
Topic: Change Volume based on Mouse Position
Replies: 5
Views: 1344

Change Volume based on Mouse Position

I have a timer that checks the mouse position every 500ms and do things if the mouse is at a specific position(bottom right) What I want is when I use the mouse wheel to check if the Y value is below 1050 and if it is,change the volume but if it's not,do nothing The problem is,if the Y value is belo...
by vsub
08 Jul 2020, 12:55
Forum: Ask For Help
Topic: Get window in Alt+Tab screen
Replies: 0
Views: 345

Get window in Alt+Tab screen

Is there is a way to get on which window I am clicking in the ^!Tab screen What I have been using is clicking on the window,get the active window id and use that id for the rest of the code My question is,is there is a way when I right click on some of those mini windows,to get the id of the window ...
by vsub
08 Jul 2020, 04:19
Forum: Ask For Help
Topic: Trouble With Set [Name] For Control Window
Replies: 6
Views: 2627

Re: Trouble With Set [Name] For Control Window

I may be wrong but I think you are looking for a gui,not splashimage Gui,+AlwaysOnTop +Resize Gui, Add, Picture, x0 y0 w260 h320 vImage,C:\Hikari Bot\Hikari Pictures\Hikari Aplication Parts\Chat Button.png Gui, Add, Button, x82 y339 w100 h30 vButton,MyButton Gui, Show, x127 y87 h379 w270,My Gui Wind...
by vsub
07 Jul 2020, 18:47
Forum: Ask For Help
Topic: Trouble With Set [Name] For Control Window
Replies: 6
Views: 2627

Re: Trouble With Set [Name] For Control Window

That code don't make much sense 1.You have a code that creates a gui with nothing but image(SplashImage style)and name that window "Button1" 2.Then you try to set ExStyle to some window with title "Google" 3.Then try to chance the name of the control that don't exist in the window with the title "Bu...
by vsub
07 Jul 2020, 05:54
Forum: Gaming
Topic: Key spammer
Replies: 1
Views: 642

Re: Key spammer

AHK can do everything you can do manually so yes
by vsub
06 Jul 2020, 05:11
Forum: Ask For Help
Topic: Show Desktop
Replies: 3
Views: 1481

Re: Show Desktop

When I press bottom left Ctrl key, I want it to minimize all windows and show Desktop. I tried this code below, and it does show desktop, but it seems to open a brand new desktop and all active programs seem to close down: CTRL::Send, #^d Any suggestions please? Thank you:) That's because the Ctrl+...
by vsub
04 Jul 2020, 09:10
Forum: Ask For Help
Topic: Key combination
Replies: 7
Views: 2324

Re: Key combination

Code: Select all

Joy1::
Joy2::
Joy3::
Joy4::
Joy5::
Joy6::
Joy7::
Joy8::
Joy9::
Joy10::
Joy11::
Joy12::
while GetKeyState(A_ThisHotkey, "P")
{
If ((A_ThisHotkey != "Joy1") && (GetKeyState("Joy1","P")))
  ToolTip,% "Joy1 & " A_ThisHotkey 
}
Return
by vsub
04 Jul 2020, 05:50
Forum: Ask For Help
Topic: Double click on window highlighted item
Replies: 1
Views: 595

Re: Double click on window highlighted item

On a selected item you can just send enter(some controls react to space)
by vsub
03 Jul 2020, 15:26
Forum: Ask For Help
Topic: Is it possible to break a loop\while with a hotkey
Replies: 3
Views: 713

Is it possible to break a loop\while with a hotkey

Without the need for the loop wait before the loop reaches a line that checks if a condition is met For example something random: Loop { Sleep,5000 Send,f Sleep,10000 Send,a } Can I run some kind of command that will tell that the loop need to stop without actually adding some "if" condition in the ...
by vsub
03 Jul 2020, 12:47
Forum: Ask For Help
Topic: Placing gui on client relative cordinates
Replies: 11
Views: 2497

Re: Placing gui on client relative cordinates

What I posted above places the gui window over notepad.exe always at the exact same position using the notepad window position when Notepad is the active window and I press F1
2020-07-03_184554.jpg
2020-07-03_184554.jpg (23.89 KiB) Viewed 669 times
by vsub
03 Jul 2020, 10:08
Forum: Ask For Help
Topic: Placing gui on client relative cordinates
Replies: 11
Views: 2497

Re: Placing gui on client relative cordinates

Sorry,there is a comma in the wrong place F1:: gui, +AlwaysOnTop Gui, -Border ; Removes Border Gui, Color, ControlColor,Black ; background from edit Gui, Color, Black ; Gui color gui, font, s15, MS Sans Serif ; 15-point MS Sans Serif WinGetPos,X,Y,,,ahk_exe notepad.exe Gui,Show,% "x" X +50 " y" Y +5...

Go to advanced search