Search found 541 matches

by vsub
24 Jan 2024, 11:39
Forum: Ask for Help (v1)
Topic: if A or B button is clicked, it will show timer and decreased value Topic is solved
Replies: 1
Views: 71

Re: if A or B button is clicked, it will show timer and decreased value Topic is solved

I am not sure what the goal is but here is a quick example Gui, Add, Button, x12 y129 w100 h30 , A Gui, Add, Button, x122 y129 w100 h30 , B Gui, Add, Text, x42 y59 w110 h20 +Center, Gui, Show, x127 y87 h191 w255, New GUI Window Return ButtonA: Time = 31 ButtonB: Time = 31 ; change this if you actual...
by vsub
24 Jan 2024, 11:13
Forum: Ask for Help (v1)
Topic: Is it possible to execute code if I try to run the same scipt
Replies: 2
Views: 174

Is it possible to execute code if I try to run the same scipt

For example something simple like(when I run the script for the first time)
Run,"C:\Windows\System32\notepad.exe"

Then if I attempt to run the script again(double click on the ahk file),keep the current instance and execute something like
WinActivate,Untitled - Notepad
by vsub
17 Dec 2023, 07:18
Forum: Ask for Help (v1)
Topic: Cannot manupulate a window with admin rights
Replies: 3
Views: 270

Re: Cannot manupulate a window with admin rights

I don't have a script,as I said a simple command like WinMinimize,Untitled - Notepad does not work if Notepad is running as admin I run Notepad as admin,switch to the folder containing the script file with that single line and run it And the window is not minimize Then I try running the script again...
by vsub
17 Dec 2023, 06:39
Forum: Ask for Help (v1)
Topic: Cannot manupulate a window with admin rights
Replies: 3
Views: 270

Cannot manupulate a window with admin rights

Is this normal,I thought only hotkeys don't work when ahk is not running as admin but I cannot control even inactive windows from programs that are running as admin. I don't remember having this problem before(I have not done any scripts for a while and I am also still using ahk v1...those code chan...
by vsub
13 Jun 2023, 03:52
Forum: Ask for Help (v2)
Topic: How can I find a file with random name
Replies: 2
Views: 342

How can I find a file with random name

This is how the file name looks like A_YYYY "-" A_MM "-" A_DD "_" A_Hour A_Min A_Sec but the thing is when I run the scrip,the file may not exist yet or the time will be 1 or 2 seconds late and if it happens to be 59 seconds while ahk tries to look for the file but the time is already the next minut...
by vsub
21 Feb 2023, 10:41
Forum: Ask for Help (v1)
Topic: Why is AHK releasing the key? Topic is solved
Replies: 3
Views: 343

Re: Why is AHK releasing the key? Topic is solved

Ok I made it work the way I want so problem solved,thanks anyway

Code: Select all

XButton1::
Send,{LAlt Down}
Sleep,50
MouseMove,% X,% Y,0
SoundPlay,C:\Windows\Media\Windows Notify.wav,wait
Back:
Keywait,XButton1
Sleep,200
If GetKeyState("XButton1","P")
GoTo,Back
Else
{
Send,{LAlt Up}
MouseGetPos,X,Y
}
Return
by vsub
21 Feb 2023, 10:29
Forum: Ask for Help (v1)
Topic: Why is AHK releasing the key? Topic is solved
Replies: 3
Views: 343

Re: Why is AHK releasing the key? Topic is solved

I am holding the XButton1 and click LButton multiple times and this repeats 05 000 h d 0.00 XButton1 A4 038 i d 0.00 LAlt 01 000 d 0.13 LButton 05 000 s u 0.00 XButton1 This was with the first code The other one work better if I increase the sleep(it doesn't fail)
by vsub
21 Feb 2023, 09:55
Forum: Ask for Help (v1)
Topic: Why is AHK releasing the key? Topic is solved
Replies: 3
Views: 343

Why is AHK releasing the key? Topic is solved

I want to do this simple thing If I press and hold XButton1,it will send LAlt Down and keep it that way until I release the button but for some reason if I hold XButton1 and left click,AHK sends LAlt Up after that :? XButton1:: Send,{LAlt Down} Keywait,XButton1 Send,{LAlt Up} Return Edit:Ok this wor...
by vsub
17 Feb 2023, 17:20
Forum: Ask for Help (v1)
Topic: Cancel Keywait?
Replies: 3
Views: 304

Re: Cancel Keywait?

This is the situation In a game,moving the mouse moves the camera but if you press and hold the left alt,the mouse cursor will appear and you will be able to click on the screen menus Once you click once even if I am still holding Alt,the game will ignore it and switch to moving the camera with the ...
by vsub
17 Feb 2023, 16:35
Forum: Ask for Help (v1)
Topic: Cancel Keywait?
Replies: 3
Views: 304

Cancel Keywait?

1.Pressing XButton1 will send LAlt Down 2.The script will wait for me up to 10 seconds to press LButton and release it 3.If I press and release the button,this will send Alt Up 4.If the keywait times out,send LAlt Up 5.If the script is in the keywait phase and I press XButton1 again,this will cancel...
by vsub
09 Aug 2022, 11:40
Forum: Ask for Help (v1)
Topic: What would be the current method of show web page into a gui
Replies: 1
Views: 258

What would be the current method of show web page into a gui

Is it still by using activex or something that uses internet explorer(not something more modern like edge)
When I search google I find only couple of years old guides and they all suggest the same thing...a method to display a page with IE
by vsub
16 Jul 2022, 08:02
Forum: Ask for Help (v1)
Topic: Can a show a splash screen containing the clipboard Topic is solved
Replies: 3
Views: 599

Can a show a splash screen containing the clipboard Topic is solved

For example I press PrntScr and a splash screen appears showing me the screenshot
by vsub
19 Jun 2022, 08:21
Forum: Ask for Help (v1)
Topic: Block vertical mouse movement
Replies: 1
Views: 296

Block vertical mouse movement

Is it possible this to be done without constantly getting the mouse position and adjust it if it is at higher\lower y position For example I want to hold a hotkey and while holding the,the mouse y position will always be the same ~LCtrl:: MouseGetPoS,,Y While (GetKeyState("LCtrl","P")) { MouseGetPoS...
by vsub
08 May 2022, 16:41
Forum: Ask for Help (v1)
Topic: Sort multiline variable based on the first dot of each line
Replies: 12
Views: 903

Re: Sort multiline variable based on the first dot of each line

It's just links,I will try all of the suggestions tomorrow,thanks
by vsub
08 May 2022, 07:51
Forum: Ask for Help (v1)
Topic: Sort multiline variable based on the first dot of each line
Replies: 12
Views: 903

Sort multiline variable based on the first dot of each line

For example
1.2.5
2.1.6
9.4.9.1
1.3.7.8

and the result will be
2.1.6
1.2.5
1.3.7.8
9.4.9.1

The text before the first dot will be random
by vsub
20 Apr 2022, 10:26
Forum: Ask for Help (v1)
Topic: Can I get a link title with AHK
Replies: 8
Views: 936

Re: Can I get a link title with AHK

@AHKStudent works but why am I also getting a msg box saying
"You need a new app to open this about link"
by vsub
20 Apr 2022, 09:59
Forum: Ask for Help (v1)
Topic: Can I get a link title with AHK
Replies: 8
Views: 936

Can I get a link title with AHK

For example I am pointing at some random youtube link,right click and copy the link
Is there is some way to get that link title with AHK without opening it in some browser and copying the titlebar or downloading the html file and searching for the title
by vsub
02 Apr 2022, 08:03
Forum: Ask for Help (v1)
Topic: Can I automate this process(adding program to windows firewall) Topic is solved
Replies: 5
Views: 865

Re: Can I automate this process(adding program to windows firewall) Topic is solved

Ok that was useful the actually command that controls the inbound and outbound is "dir=" with in or out
I did not find a way to add them to both unless I run the command twice
by vsub
02 Apr 2022, 07:19
Forum: Ask for Help (v1)
Topic: Can I automate this process(adding program to windows firewall) Topic is solved
Replies: 5
Views: 865

Re: Can I automate this process(adding program to windows firewall) Topic is solved

And what will happen when I use the run command with that code?
Nothing,the program will be added to the Inbound list ONLY and I want to add the program to both lists

Please read my post again

Go to advanced search