.ahk to .pmc

Advanced Macro Recorder/Editor.

Moderator: Pulover

Lucidd
Posts: 1
Joined: 23 Feb 2019, 11:25

.ahk to .pmc

23 Feb 2019, 11:54

How can I convert the .ahk file below?
How can I write the same in Pulover's Macro Creator?

Code: Select all

#NoEnv
SendMode Input
 
IniRead, Key1, Settings.ini, Settings, SuspendKey, Insert
IniWrite, %Key1%, Settings.ini, Settings, SuspendKey
Hotkey, %Key1%, ~$hkWrite
 
Gui Color, 0x000000
Gui Font, c0xB4BD02
TrayTip, Entity PUBX64Build, Now Running in the Background!, 2
Gui, Add, Text, x80 y75 w75 h20 +0x200 +center, Suspend:
Gui, Add, ComboBox, x80 y95 w120 vSuspend, Insert||XButton1|Delete|F1|F2|F3|F4|F5|TAB
Gui Add, ComboBox, x80 y40 w120 vRCT, 3||1|2|3|4|5|6|7
Gui, Add, Button, gSaveVal x80 y120, Save
Gui, Add, Button, gLoadVal x130 y120, Load
Gui Add, Text, x80 y16 w95 h23 +0x200 +center, Recoil Timing: 
Gui Show, w300 h150, Entity PUBX64 V1.0 (ALPHA)
 
~*$LButton::
Loop
{
GetKeyState, state, LButton, P
if state=u
break
Gui, Submit, nohide
mouseXY(0,RCT)
sleep, 5
}
return
 
mouseXY(x,y)
{
DllCall("mouse_event",int,1,int,x,int,y,uint,0,uint,0)
}
 
~$hkWrite:
Suspend, Permit
Suspend, Toggle
return
 
SaveVal:
IniDelete, Settings.ini, NoRecoil, RecoilTiming
IniRead, SaveVal1, Settings.ini, NoRecoil, RecoilTiming, %RCT%
IniWrite, %SaveVal1%, Settings.ini, NoRecoil, RecoilTiming
MsgBox, Saved Config
goSub ~$hkWrite
return
 
LoadVal:
IniRead, ReadVal1, Settings.ini, NoRecoil, RecoilTiming
IniWrite, %ReadVal1%, Settings.ini, NoRecoil, RecoilTiming
GuiControl, choosestring, RCT, %ReadVal1%
MsgBox, Loaded Config
goSub ~$hkWrite
return
 
GuiEscape:
GuiClose:
    ExitApp
mons3fa
Posts: 9
Joined: 20 May 2017, 19:33
Google: https://plus.google.com/+MoeRezai

Re: .ahk to .pmc

17 Oct 2020, 18:59

bump.
I would also like to know how to convert the GUI created in ahk and import it into PMC
“There is only one good, knowledge, and one evil, ignorance.”
“I cannot teach anybody anything. I can only make them think”
-Socrates
User avatar
Pulover
Posts: 449
Joined: 29 Sep 2013, 19:51
Location: Brazil
Contact:

Re: .ahk to .pmc

17 Oct 2020, 19:26

PMC doesn't have support for Gui commands. This goes beyond the scope and I have no intention of implementing it.
Rodolfo U. Batista
Pulover's Macro Creator - Automation Tool (Recorder & Script Writer)
mons3fa
Posts: 9
Joined: 20 May 2017, 19:33
Google: https://plus.google.com/+MoeRezai

Re: .ahk to .pmc

18 Oct 2020, 08:12

Thank you!
“There is only one good, knowledge, and one evil, ignorance.”
“I cannot teach anybody anything. I can only make them think”
-Socrates

Return to “Pulovers Macro Creator”

Who is online

Users browsing this forum: No registered users and 2 guests