-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
150 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
MyFunc(ByRef a, ByRef b) {} | ||
|
||
MyFunc(a, b) | ||
MyFunc(a, b), a = b ; Stripped | ||
MyFunc(a, b) ; Stripped | ||
|
||
; MyFunc(a, b), Ord(1) | ||
; MyFunc(a, b), MyFunc(a, b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
MyFunc(&a, &b) {} | ||
|
||
MyFunc(&a, &b) | ||
MyFunc(&a, &b), a = b ; Stripped | ||
MyFunc(&a, &b) ; Stripped | ||
|
||
; MyFunc(a, b), Ord(1) | ||
; MyFunc(a, b), MyFunc(a, b) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
F1:: MsgBox % """" ; " | ||
F2:: MsgBox % "abc""123" ; abc"123 | ||
F3:: MsgBox % "abc""123" MyFunc("", "123""abc") "" ; abc"123123"abc | ||
|
||
MyFunc(a, b) { | ||
return a b | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
F1::MsgBox("`"") ; " | ||
F2::MsgBox("abc`"123") ; abc"123 | ||
F3::MsgBox("abc`"123" MyFunc("", "123`"abc") "") ; abc"123123"abc | ||
|
||
MyFunc(a, b) { | ||
return a b | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var := DllCall("Func" | ||
, "Str", "ABC" ; Comment | ||
, "Str, "123" ; Comment | ||
, "Str", "DEF") ;Comment | ||
|
||
hCtrl := DllCall("CreateWindowEx" | ||
, "Uint", 0x200 ; WS_EX_CLIENTEDGE | ||
, "str", "HiEdit" ; ClassName | ||
, "str", "" ; This line causes the issue | ||
, "Uint", WS_CLIPCHILDREN | WS_CHILD | WS_VISIBLE | hStyle | ||
, "int", X ; Left | ||
, "int", Y ; Top | ||
, "int", W ; Width | ||
, "int", H ; Height | ||
, "Uint", HParent ; hWndParent | ||
, "Uint", MODULEID ; hMenu | ||
, "Uint", 0 ; hInstance | ||
, "Uint", 0, "Uint") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var := DllCall("Func" | ||
, "Str", "ABC" ; Comment | ||
, "Str, "123" ; Comment | ||
, "Str", "DEF") ;Comment | ||
|
||
hCtrl := DllCall("CreateWindowEx" | ||
, "Uint", 0x200 ; WS_EX_CLIENTEDGE | ||
, "str", "HiEdit" ; ClassName | ||
, "str", "" ; This line causes the issue | ||
, "Uint", WS_CLIPCHILDREN | WS_CHILD | WS_VISIBLE | hStyle | ||
, "int", X ; Left | ||
, "int", Y ; Top | ||
, "int", W ; Width | ||
, "int", H ; Height | ||
, "Uint", HParent ; hWndParent | ||
, "Uint", MODULEID ; hMenu | ||
, "Uint", 0 ; hInstance | ||
, "Uint", 0, "Uint") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
MyFunc() { | ||
Gui, Add, Text,, Gui | ||
Gui, Show, w150 | ||
} | ||
MyFunc() | ||
|
||
F1::Gui, Destroy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
MyFunc() { | ||
global ; V1toV2: Made function global | ||
myGui := Gui() | ||
myGui.Add("Text", , "Gui") | ||
myGui.Show("w150") | ||
} | ||
MyFunc() | ||
|
||
F1::myGui.Destroy() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Switch Var | ||
{ | ||
Case 1: MsgBox Test1 | ||
Case 2: | ||
MsgBox Test2 | ||
} | ||
IfMsgBox, Ok | ||
MsgBox | ||
|
||
Switch Var | ||
{ | ||
Case 1: | ||
MsgBox Test1 | ||
Case 2: | ||
MsgBox Test2 | ||
} | ||
IfMsgBox, Ok | ||
MsgBox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Switch Var | ||
{ | ||
Case 1: msgResult := MsgBox("Test1") | ||
Case 2: | ||
msgResult := MsgBox("Test2") | ||
} | ||
if (msgResult = "Ok") | ||
MsgBox() | ||
|
||
Switch Var | ||
{ | ||
Case 1: | ||
msgResult := MsgBox("Test1") | ||
Case 2: | ||
msgResult := MsgBox("Test2") | ||
} | ||
if (msgResult = "Ok") | ||
MsgBox() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
x := x = "" ? 0 : "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
x := x = "" ? 0 : "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
MyFunc() { | ||
static var = 1 | ||
static var1=1,var2,var3=3 | ||
MsgBox % var | ||
} | ||
MyFunc() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
MyFunc() { | ||
static var := 1 | ||
static var1:=1,var2,var3:=3 | ||
MsgBox(var) | ||
} | ||
MyFunc() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MyFunc(ByRef a, ByRef b) {} | ||
|
||
MyFunc(a, b) | ||
MyFunc(a, b), a = b ; Stripped | ||
MyFunc(a, b) ; Stripped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
MyFunc(&a, &b) {} | ||
|
||
MyFunc(&a, &b) | ||
MyFunc(&a, &b), a = b ; Stripped | ||
MyFunc(&a, &b) ; Stripped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ MyFunc() { | |
Return, Trim(ToReturn, "Error") | ||
} | ||
|
||
MsgBox % MyFunc() | ||
MsgBox % MyFunc() | ||
|
||
MsgBox("Return, Test") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ MyFunc() { | |
Return Trim(ToReturn, "Error") | ||
} | ||
|
||
MsgBox(MyFunc()) | ||
MsgBox(MyFunc()) | ||
|
||
MsgBox("Return, Test") |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.