I am developing an open source desktop application in C++, and I need to run this AutoHotkey script inside C++ code ¿how can I make it? Acc_Caret := Acc_ObjectFromWindow(WinExist("A"), OBJID_CARET := 0xFFFFFFF8) Caret_Location := Acc_Location(Acc_Caret) x = %A_CaretX% y = %A_CaretY% WinGetPos, Xc, Yc,,, A msgbox, Act at %Xc%`,%Yc% msgbox % Caret_Location.x "`n" Caret_Location.y msgbox ..
Category : autohotkey
I have this little script in C++ for autohotkey software and I need both sleep number to be random, first from 700 to 900 and the second from 1800 to 2200. Anyone knows how to do it? Thanks! This is the script: F3::SetTimer, aLoop, % (on:=!on) ? "50" : "Off" aLoop: Click down Sleep, 1400 ..
Getting the error: Line Text: switch %randNumber% "Error: This line does not contain a recognized action" ;switches between one of the 6 user tabs RandomizeTabSwitcher(){ Random, randNumber, 1, 6 switch %randNumber% { case 1: return case 2: return case 3: return . . . } } Not sure what the issue is here when I’m ..
I need my script to run as admin, when either in editor or double clicking the script icon in explorer (Not at startup) I have tried using Run *RunAs "%A_ScriptFullPath%" It gets me there halfway but the UAC prompt breaks my scipts because I have to answer YES or NO. How can I prevent this ..
ControlSend,, test, ahk_exe notepad.exe The above works just fine but the following does not, it should englarge the text in notepad. ControlSend,, ^{+}, ahk_exe notepad.exe I have also, tried ControlSend,, {Control down}+{Control up}, ahk_exe notepad.exe I dont really care for notepad, I am just stuck with controlsend and I am trying understand it. Often it ..
Using Autohotkey, I’d like to send "ctrl+" to File Explorer, to auto adjust column width. Manually, it’s ctrl+ (the + in the numpad). I’m trying this but doesn’t work: #IfWinActive ahk_class CabinetWClass Send {^NumpadAdd} Return I’ve also tried: Send ^{NumpadAdd} Any ideas? Thank you. Source: Windows..
I have an AHK program with a hotkey #u but when when I try to launch it using an AHK script, it just opens the Windows Updates page (standard function of Windows + U). Script 1: #u:: ;script here return Script 2: send, #u How can I prevent Windows hotkey from taking over across scripts? ..
I would like to automatically run a batch file when a twitch user goes live. It seems like notifications can be in the form of email notification or browser notification. I’m looking at autohotkey but not sure if this is the solution. Is there a way to listen and detect some form of twitch notification ..
I need urgently an expert advise. I’m auto-pairing in Windows 7 / 10 custom Bluetooth device that consists of two parts – a Bluetooth module and a PS2 serial connector. The auto-pairing part is working fine. The problem is that once the device has been paired, Windows assigns a random COM Port for the device ..
I have searched all across the web but found no help for this issue. I am using HP folio 9470m EliteBook. A few months ago everything was working like charm but now i am facing a problem that any shortcut which needs combination of these key i-e for Terminal in Linux we have to press ..
Recent Comments