Search found 9 matches

by rspai
02 Oct 2022, 17:34
Forum: Ask for Help (v1)
Topic: Controlsend nor working
Replies: 1
Views: 212

Controlsend nor working

^u:: ControlSend,,^!e,ahk_class PotPlayer Sleep, 1000 ControlSend,,f,ahk_class PotPlayer Return The above code sends the correct keystrokes to the Application (PotPlayer) The code below (without the Ctrl(^) in the Hotkey) sends only Alt+E to the Application u:: ControlSend,,^!e,ahk_class PotPlayer ...
by rspai
17 Oct 2021, 06:35
Forum: Ask for Help (v1)
Topic: Copying Excel range to another sheet
Replies: 1
Views: 295

Copying Excel range to another sheet

Xl := ComObjActive("Excel.Application") filename:= "D:\Selenium_Excel\FI_Data.xlsx" wbk:=XL.Workbooks.Open(filename) dws2:=wbk.sheets("BMData") tws:=wbk.Sheets("tempData") xlDown := -4121 xlUp := -4162 tws.Select copyrange:= tws.Range("B1", tws.Range("B1").End(xlDown)) dws2.Range("a1"):= copyrange....
by rspai
11 Apr 2021, 09:58
Forum: Ask for Help (v1)
Topic: Sending key when Mouse button clicked at certain point on screen Topic is solved
Replies: 2
Views: 165

Sending key when Mouse button clicked at certain point on screen Topic is solved

#IfWinActive ahk_class IrfanView LButton:: MouseGetPos,xpos, ypos If (ypos >170 and ypos <570) { Msgbox %ypos% Send, {Space} } #IfWinActive Return I have written the above code for sending the Space key when the Left Mouse button is clicked within a certain range on the Application window. It works...
by rspai
28 Jan 2020, 10:51
Forum: Ask for Help (v1)
Topic: Keep sending keys only if a window is Active Topic is solved
Replies: 5
Views: 646

Re: Keep sending keys only if a window is Active Topic is solved

cefay wrote:
28 Jan 2020, 05:05
lol. I showed you what you have to do to succeed. I won't do everything for you
Thanks
by rspai
27 Jan 2020, 21:52
Forum: Ask for Help (v1)
Topic: Keep sending keys only if a window is Active Topic is solved
Replies: 5
Views: 646

Re: Keep sending keys only if a window is Active Topic is solved

cefay wrote:
27 Jan 2020, 16:10
without testing:


SetTimer, Label, 400

Label:
if WinActive(ahk_class MediaplayerclassicW)
send x
return


Not working
by rspai
27 Jan 2020, 10:46
Forum: Ask for Help (v1)
Topic: Keep sending keys only if a window is Active Topic is solved
Replies: 5
Views: 646

Keep sending keys only if a window is Active Topic is solved

I want to keep sending the key "x" every 400 milli seconds if the Active Window is MediaPlayerClassicW
that is:

Code: Select all

#IfWinActive ahk_class MediaplayerclassicW
If a window other than Mediaplyerclassicw becomes Active, the key "x" should not be sent.

Thanks in advance for the help.
by rspai
08 Dec 2019, 02:57
Forum: Ask for Help (v1)
Topic: Press Button to send a key to specific application
Replies: 1
Views: 1200

Re: Press Button to send a key to specific application

Code: Select all

#SingleInstance,force
#d::
gui, add, button, x5 y30 h20 w70 gsub2, Next
Gui, Show
return



sub2:
Gui,Hide
{
send n	
}
sleep 200
Gui, Show
return
The above code sends the "n" key to the windows below the Gui Button named "next"
by rspai
08 Dec 2019, 02:11
Forum: Ask for Help (v1)
Topic: Press Button to send a key to specific application
Replies: 1
Views: 1200

Press Button to send a key to specific application

I have a Windows tablet and I dont want to use the on-screen keyboard but use a Gui button to send a key to a specific window. I am new to AutoHotkey. Hence, the requirement is a Gui button should be displayed on the screen. On pressing the button, the key "n" should be sent to the MediaPlayerClassi...
by rspai
15 Oct 2019, 04:04
Forum: Ask for Help (v1)
Topic: Run only when process is not running
Replies: 1
Views: 634

Run only when process is not running

I am a new to AHK. I want to run a playlist file (mpcpl file- test.mpcpl) if the MPC-Player( process "mpc-hc.exe") is not running. I am trying with the script below. It runs the playlist when mpc-hc.exe is running as well as when it is not running. Please help. !n:: If !ProcessExist("mpc-hc.exe") { ...

Go to advanced search