Post by garry » 01 Mar 2019, 07:29
@LuckyJoe, nnnik , danke
hier noch ein Beispiel wie ich Euer script verwendet habe
Code: Select all
;-------- https://www.autohotkey.com/boards/viewtopic.php?f=9&t=60075 user : LuckyJoe , nnnik
;===================================================
;------- SEND.ahk < run this after receiver.ahk is created
/*
e4:="
(Ltrim Join_
Red-1-AAA
Green-2-BBB
Blue-3-CCC"
)
run,%a_scriptdir%\receiver.ahk First_Line 200 20 5 %e4%
return
*/
;===================================================
;====================================================================
;------- RECEIVER.ahk
If (A_Args.Length() = 0)
{
MsgBox, % "at least 1 parameter - break"
ExitApp
}
MyReceiver(A_Args*)
Return
;-----------
MyReceiver(P1:="", P2:="", P3:="", P4:="" ,P5:="")
{
;parameter-3 is GUI x-position
;parameter-4 is GUI y-position
global t1
transform,s,chr,32
Gui,1:Font,s12 cBlack, Lucida Console
Gui,add,text,vT1
stringreplace,p5,p5,_,`n,all
stringreplace,p5,p5,-,%s%,all
Gui, Add, Edit, x10 y1 r10 w600 ReadOnly ,Parameter-1=%P1%`nParameter-2=%P2%`nParameter-5=`n%P5%
Gui, Show, x%p3% y%p4%, Receiver
GuiControl,1:Focus,T1
return
GuiClose:
ExitApp
}
;======================= end receiver.ahk =============================
@LuckyJoe, nnnik , danke
hier noch ein Beispiel wie ich Euer script verwendet habe
[code];-------- https://www.autohotkey.com/boards/viewtopic.php?f=9&t=60075 user : LuckyJoe , nnnik
;===================================================
;------- SEND.ahk < run this after receiver.ahk is created
/*
e4:="
(Ltrim Join_
Red-1-AAA
Green-2-BBB
Blue-3-CCC"
)
run,%a_scriptdir%\receiver.ahk First_Line 200 20 5 %e4%
return
*/
;===================================================
;====================================================================
;------- RECEIVER.ahk
If (A_Args.Length() = 0)
{
MsgBox, % "at least 1 parameter - break"
ExitApp
}
MyReceiver(A_Args*)
Return
;-----------
MyReceiver(P1:="", P2:="", P3:="", P4:="" ,P5:="")
{
;parameter-3 is GUI x-position
;parameter-4 is GUI y-position
global t1
transform,s,chr,32
Gui,1:Font,s12 cBlack, Lucida Console
Gui,add,text,vT1
stringreplace,p5,p5,_,`n,all
stringreplace,p5,p5,-,%s%,all
Gui, Add, Edit, x10 y1 r10 w600 ReadOnly ,Parameter-1=%P1%`nParameter-2=%P2%`nParameter-5=`n%P5%
Gui, Show, x%p3% y%p4%, Receiver
GuiControl,1:Focus,T1
return
GuiClose:
ExitApp
}
;======================= end receiver.ahk =============================
[/code]