Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Show script A gui via script B?

$
0
0
Given the below two scripts, what is the preferred way for Script B to "Show" a GUI that was created in Script A?

CODE:

#SingleInstance
#Requires AutoHotkey v2+
; SCRIPT A
; show gui from other script?
myg := gui()
myg.add('text',,'My GUI')
!^+s::
{myg.show('w200 h200')
}


CODE:

#SingleInstance
#Requires AutoHotkey v2+
; SCRIPT B
; show gui in other script?
!^+o::
showOther(*)
{A_SendLevel++
send "!^+s"
A_SendLevel--
}


It actually does seem to work with this mini-example. In my larger project it is not working though.

Statistics: Posted by kunkel321 — 19 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles